Skip to content

Commit

Permalink
Fix parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida committed Dec 10, 2019
1 parent ab0c5b0 commit 83abab2
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 83abab2

Please sign in to comment.