Remove AuthKey.live, which didn't work anyway.

This commit is contained in:
Ian Gulliver
2014-05-30 17:02:21 -07:00
parent 14ba801e09
commit d68b1ba942

View File

@@ -26,7 +26,6 @@ class BadSignature(Exception):
class AuthKey(db.Model): class AuthKey(db.Model):
auth_key = db.ByteStringProperty(required=True) auth_key = db.ByteStringProperty(required=True)
live = db.BooleanProperty(required=True, default=True)
_KEY_CHARS = string.ascii_letters + string.digits _KEY_CHARS = string.ascii_letters + string.digits
@@ -37,7 +36,7 @@ def GetAuthKey():
if _AUTH_KEY: if _AUTH_KEY:
return _AUTH_KEY[0] return _AUTH_KEY[0]
auth_keys = AuthKey.all().filter('live =', True).fetch(1) auth_keys = AuthKey.all().fetch(1)
if auth_keys: if auth_keys:
auth_key = auth_keys[0].auth_key auth_key = auth_keys[0].auth_key
else: else: