🔧 Add env variable for time signature (#4650)
This commit is contained in:
parent
e852a21634
commit
f40743183e
5 changed files with 13 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ class ToolFileManager:
|
|||
return False
|
||||
|
||||
current_time = int(time.time())
|
||||
return current_time - int(timestamp) <= 300 # expired after 5 minutes
|
||||
return current_time - int(timestamp) <= current_app.config.get('FILES_ACCESS_TIMEOUT')
|
||||
|
||||
@staticmethod
|
||||
def create_file_by_raw(user_id: str, tenant_id: str,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue