Make sure file names get randomized during processing
This commit is contained in:
parent
c462c2228c
commit
c6bd9b1252
4
main.py
4
main.py
|
@ -42,8 +42,8 @@ def validDocument(mime_type):
|
||||||
]
|
]
|
||||||
return mime_type in valid_mime_types
|
return mime_type in valid_mime_types
|
||||||
|
|
||||||
async def downloadDocument(file_id, file_name):
|
async def downloadDocument(file_id, sourceDocumentName):
|
||||||
filepath = await (app.download_media(file_id, file_name=file_name))
|
filepath = await (app.download_media(file_id, file_name=sourceDocumentName))
|
||||||
return filepath
|
return filepath
|
||||||
|
|
||||||
def unoCheck(): # Check if unoserver even exists
|
def unoCheck(): # Check if unoserver even exists
|
||||||
|
|
Loading…
Reference in New Issue