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
Build and Push Docker Container / build-and-push (push) Successful in 1m31s
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user