Fix more name errors
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user