mirror of
https://github.com/jackeilles/xygt.git
synced 2024-11-21 14:22:39 +01:00
fix custom url, i think i was drunk writing this section
This commit is contained in:
parent
e37ff4392b
commit
7ecf3c4caf
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ def uploadFile(file, ip, userid, filename, id, retention):
|
|||
while True: # Loop to find an available file ID
|
||||
id = randomHex() # Prevent conflicts if 2 of the same get made
|
||||
if Config.files.find_one({'id': id}) is None:
|
||||
filename = id
|
||||
id = filename
|
||||
break
|
||||
|
||||
if userid == None:
|
||||
|
|
Loading…
Reference in a new issue