From 92ca08c1edb839db37a9a16cfcfacb7fe1c79816 Mon Sep 17 00:00:00 2001 From: spitkov Date: Sat, 5 Oct 2024 20:29:58 +0200 Subject: [PATCH] fix that anonymous pastebins returned user None instead of Anonymous --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index aa77674..8cef54b 100644 --- a/app.py +++ b/app.py @@ -668,7 +668,7 @@ def upload_pastebin(): vanity = shortuuid.uuid()[:8] print(f"Generated vanity: {vanity}") - user_id = current_user.id if current_user.is_authenticated else None + user_id = current_user.id if current_user.is_authenticated else Anonymous print(f"User ID: {user_id}") db = get_db()