Add a way to fetch our current profile ID.

This commit is contained in:
Ian Gulliver
2014-05-16 19:03:33 +03:00
parent 5e63eb9ae6
commit 64e16e7ec1
2 changed files with 26 additions and 0 deletions

2
api.py
View File

@@ -35,11 +35,13 @@ def CreateChannel(google_user, client, args):
if google_user:
events.append({
'event_type': 'login',
'profile': str(client.parent_key()),
'google_user': google_user.email(),
})
else:
events.append({
'event_type': 'logout',
'profile': str(client.parent_key()),
})
return {