get list of file, it should be rethinked

This commit is contained in:
dm
2025-08-26 16:53:53 +03:00
parent 4ea7d44954
commit 82671319e4
2 changed files with 28 additions and 15 deletions

2
db.py
View File

@@ -82,7 +82,7 @@ def add_file(filename: str, content_type, size: int, hash):
url += f".{new_file.extension}"
return url
if __name__ == "__main__":
for i in get_all_files():
print(f"{i.id} {i.name}.{i.extension} ({i.hash}) {i.content_type} {i.size}")