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:
Ian Gulliver
2015-12-24 15:26:43 -08:00
parent b90d3d7b44
commit 30a3e89bfc
3 changed files with 8 additions and 6 deletions

2
api.py
View File

@@ -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,