Skip to content

Commit

Permalink
Update the incoming formatter to match the update to the google play …
Browse files Browse the repository at this point in the history
…library

library was updated in phone release v2.2.0
We really need to resolve
e-mission/e-mission-data-collection#80

This is basically the only thing we have to change in the formatters
and it is very annoying to have to keep doing it.
  • Loading branch information
shankari committed Jul 4, 2017
1 parent 7f7f96c commit 3dc3e60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions emission/net/usercache/formatters/android/motion_activity.py
Expand Up @@ -20,6 +20,8 @@ def format(entry):
data.type = ecwa.MotionTypes(entry.data.agb).value
elif 'zzaEg' in entry.data:
data.type = ecwa.MotionTypes(entry.data.zzaEg).value
elif 'zzbjA' in entry.data:
data.type = ecwa.MotionTypes(entry.data.zzbjA).value
elif 'ajO' in entry.data:
data.type = ecwa.MotionTypes(entry.data.ajO).value
else:
Expand All @@ -30,6 +32,8 @@ def format(entry):
data.confidence = entry.data.agc
elif 'zzaEh' in entry.data:
data.confidence = entry.data.zzaEh
elif 'zzbjB' in entry.data:
data.confidence = entry.data.zzbjB
elif 'ajP' in entry.data:
data.confidence = entry.data.ajP
else:
Expand Down

0 comments on commit 3dc3e60

Please sign in to comment.