generate longer file_ids and retry if they is a collison in the database
Build and Push Docker Container / build-and-push (push) Successful in 1m31s

This commit is contained in:
2025-10-25 15:45:13 +02:00
parent 85407ad86f
commit fe4526bfe0
4 changed files with 41 additions and 32 deletions
-3
View File
@@ -1,4 +1,3 @@
from my_modules.file_helper_functions import generate_short_id
from my_modules.decoratory.header import login_required
from quart import Blueprint, request, jsonify, current_app
@@ -134,7 +133,6 @@ async def api_upload(user):
file_size_pretty = format_size(size_bytes)
await current_app.edgedb.add_file(
file_id=generate_short_id(),
file_name=fname,
file_size=file_size_pretty,
note=note,
@@ -157,7 +155,6 @@ async def api_upload(user):
file_size_pretty = format_size(size_bytes)
await current_app.edgedb.add_file(
file_id=generate_short_id(),
file_name=fname,
file_size=file_size_pretty,
note=note,