fix custom url, i think i was drunk writing this section

This commit is contained in:
Jack Eilles 2023-12-26 20:21:41 +00:00
parent e37ff4392b
commit 7ecf3c4caf

View file

@ -17,7 +17,7 @@ def uploadFile(file, ip, userid, filename, id, retention):
while True: # Loop to find an available file ID while True: # Loop to find an available file ID
id = randomHex() # Prevent conflicts if 2 of the same get made id = randomHex() # Prevent conflicts if 2 of the same get made
if Config.files.find_one({'id': id}) is None: if Config.files.find_one({'id': id}) is None:
filename = id id = filename
break break
if userid == None: if userid == None: