the script

This commit is contained in:
Q
2023-08-19 21:10:45 +03:00
parent cfee5287d5
commit 7b0c9d0ad2
3 changed files with 277 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ def db_get_files():
SELECT token,name,added,expires,downloads,max_downloads
FROM files
WHERE expires > ? and (downloads < max_downloads or max_downloads = -1)
ORDER BY added
""",
(time.time(),),
)