mirror of
https://github.com/jackeilles/xygt.git
synced 2024-11-25 00:02: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
|
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:
|
||||||
|
|
Loading…
Reference in a new issue