Add a way to fetch our current profile ID.
This commit is contained in:
2
api.py
2
api.py
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user