Fix more name errors

This commit is contained in:
Justus Ojala
2025-09-23 08:08:39 +03:00
parent 167b0bfabf
commit 5782c20b4b
+2 -2
View File
@@ -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