ktmud removed a comment on pull request #10070: URL: https://github.com/apache/incubator-superset/pull/10070#issuecomment-645150700
@john-bodley Just tested locally and this works: ```diff diff --git a/superset/views/core.py b/superset/views/core.py index e1739721..b323e3a0 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -2658,17 +2658,14 @@ class Superset(BaseSupersetView): return json_success(json.dumps(datasource.data)) @has_access_api - @expose("/queries/<last_updated_ms>") - def queries(self, last_updated_ms: str) -> FlaskResponse: + @expose("/queries/<int:last_updated_ms>") + @expose("/queries/<float:last_updated_ms>") + def queries(self, last_updated_ms: Union[int, float]) -> FlaskResponse: """ Get the updated queries. :param last_updated_ms: unix time, milliseconds """ - last_updated_ms_int = int(float(last_updated_ms)) if last_updated_ms else 0 - return self.queries_exec(last_updated_ms_int) - - def queries_exec(self, last_updated_ms: int) -> FlaskResponse: stats_logger.incr("queries") if not g.user.get_id(): return json_error_response( ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org