Make sure file names get randomized during processing

This commit is contained in:
neko 2025-01-28 10:08:09 +05:00
parent c462c2228c
commit c6bd9b1252
1 changed files with 2 additions and 2 deletions

View File

@ -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