Fix several cases of assuming that a Profile always has a numeric ID, rather than a named key, which is untrue.
This commit is contained in:
2
api.py
2
api.py
@@ -228,7 +228,7 @@ class APIWrapper(webapp2.RequestHandler):
|
||||
@session.session_required
|
||||
def post(self):
|
||||
profile_str = str(
|
||||
models.Client.profile.get_value_for_datastore(self.client).id())
|
||||
models.Client.profile.get_value_for_datastore(self.client).id_or_name())
|
||||
ret = {
|
||||
'status': 'ok',
|
||||
'profile': profile_str,
|
||||
|
||||
Reference in New Issue
Block a user