feat(chalice): added support for android events
This commit is contained in:
parent
1efc757eb4
commit
f7d9f18681
1 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ def get_by_id2_pg(project_id, session_id, context: schemas.CurrentContext, full_
|
|||
if data is not None:
|
||||
data = helper.dict_to_camel_case(data)
|
||||
if full_data:
|
||||
if data["platform"] == 'ios':
|
||||
if data["platform"] == 'ios' or data["platform"] == 'android':
|
||||
data['events'] = events_ios.get_by_sessionId(project_id=project_id, session_id=session_id)
|
||||
for e in data['events']:
|
||||
if e["type"].endswith("_IOS"):
|
||||
|
|
@ -165,7 +165,7 @@ def get_events(project_id, session_id):
|
|||
if s_data is not None:
|
||||
s_data = helper.dict_to_camel_case(s_data)
|
||||
data = {}
|
||||
if s_data["platform"] == 'ios':
|
||||
if s_data["platform"] == 'ios' or data["platform"] == 'android':
|
||||
data['events'] = events_ios.get_by_sessionId(project_id=project_id, session_id=session_id)
|
||||
for e in data['events']:
|
||||
if e["type"].endswith("_IOS"):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue