Skip to content

Commit

Permalink
Merge pull request #89 from lyft/small_fix_view
Browse files Browse the repository at this point in the history
Fix parameter
  • Loading branch information
Beto Dealmeida authored Dec 10, 2019
2 parents ab0c5b0 + 83abab2 commit 6625d51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/views/lyft.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,12 @@ def sql_json(self):
@event_logger.log_this
@expose("/queries/<last_updated_ms>")
def queries(self, last_updated_ms):
last_updated_ms_int = int(float(last_updated_ms)) if last_updated_ms else 0
try:
self.authorize()
except (UserDontExistException, SupersetException) as e:
return json_error_response("{}".format(e))
return self.queries_exec(last_updated_ms)
return self.queries_exec(last_updated_ms_int)

@event_logger.log_this
@expose("/results/<key>")
Expand Down

0 comments on commit 6625d51

Please sign in to comment.