From 5782c20b4b087b19cc69fe763707c5e508067f5b Mon Sep 17 00:00:00 2001 From: Justus Ojala Date: Tue, 23 Sep 2025 08:08:39 +0300 Subject: [PATCH] Fix more name errors --- webapp/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/views.py b/webapp/views.py index 0c4efa7..d2188ab 100644 --- a/webapp/views.py +++ b/webapp/views.py @@ -210,13 +210,13 @@ class SignupViewSet(ModelViewSet): print("Checking", submitKey) # Remove expired keys from dict (older than 1 h) # A key that expires as the function is called is considered valid - print("Keys", submit_keys) + print("Keys", SignupViewSet.submit_keys) SignupViewSet.submit_keys = { key: time for key, time in SignupViewSet.submit_keys.items() if time + 3600 >= current_time } - print("After", submit_keys) + print("After", SignupViewSet.submit_keys) if submitKey not in SignupViewSet.submit_keys: # Key is unique; valid SignupViewSet.submit_keys[submitKey] = current_time return True