##// END OF EJS Templates
auth-tokens: order tokens by creation id.
marcink -
r1508:7a6b1bb9 default
parent child Browse files
Show More
@@ -85,6 +85,8 b' class AuthTokenModel(BaseModel):'
85 user_auth_tokens = user_auth_tokens\
85 user_auth_tokens = user_auth_tokens\
86 .filter(or_(UserApiKeys.expires == -1,
86 .filter(or_(UserApiKeys.expires == -1,
87 UserApiKeys.expires >= time.time()))
87 UserApiKeys.expires >= time.time()))
88 user_auth_tokens = user_auth_tokens.order_by(
89 UserApiKeys.user_api_key_id)
88 return user_auth_tokens
90 return user_auth_tokens
89
91
90 def get_auth_token(self, auth_token):
92 def get_auth_token(self, auth_token):
General Comments 0
You need to be logged in to leave comments. Login now