Skip to content

Commit

Permalink
chore(metrics): remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Sep 27, 2024
1 parent aeb74cb commit 392942c
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,6 @@ def get_slice_query_context(slice, query_contexts, extra_filters=None):
"filters": extra_filters
}

if extra_filters:
for query in query_context["queries"]:
query["filters"] += extra_filters

return query_context


Expand Down Expand Up @@ -273,7 +269,7 @@ def get_query_log_from_clickhouse(report, query_contexts, print_sql, fail_on_err
result_rows=chart_result.get("result_rows"),
rowcount=query["rowcount"],
filters=query["applied_filters"],
sql=chart_result['sql'] if print_sql else '',
sql=chart_result['sql'] if print_sql else '',
)
)
logger.info(report_str)
Expand Down

0 comments on commit 392942c

Please sign in to comment.