Skip to content

Commit

Permalink
fixed default action in GA event (used for "fetch_all" for instance)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirloon committed Jul 6, 2016
1 parent ee5c17b commit 23386b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions biothings/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ def ga_event_object(self, endpoint, action, data):
ret['action'] = '_'.join([endpoint, self.ga_event_for_get_action])
elif action == 'POST':
ret['action'] = '_'.join([endpoint, self.ga_event_for_post_action])
else:
ret['action'] = action
if data:
ret['label'] = list(data.keys()).pop()
ret['value'] = list(data.values()).pop()
Expand Down

0 comments on commit 23386b4

Please sign in to comment.