Skip to content
This repository has been archived by the owner on Oct 22, 2022. It is now read-only.

Commit

Permalink
Fix wrong formatting in common storage
Browse files Browse the repository at this point in the history
  • Loading branch information
mazdakb committed Jun 10, 2018
1 parent b72e640 commit 83373cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def random_file_name(filename: str) -> str:
:param filename: str
:return: str
"""
return f'{replace_with}.{filename.split(".")[-1]}'
return f'{secrets.token_urlsafe(16)}.{filename.split(".")[-1]}'


def replace_file_name(filename: str, replace_with: str) -> str:
Expand Down

0 comments on commit 83373cb

Please sign in to comment.