Skip to content

Commit

Permalink
fix: Typing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed Jun 10, 2024
1 parent f07d3bd commit 1fb4d16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions posthog/api/app_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ def get_batch_export_runs_app_metrics_queryset(self, batch_export_id: str):
for run in runs:
if current_day is None:
current_day = run.day
dates.append(current_day.strftime("%Y-%m-%d"))
dates.append(run.day.strftime("%Y-%m-%d"))
successes.append(0)
failures.append(0)

elif current_day < run.day:
current_day = run.day
dates.append(current_day.strftime("%Y-%m-%d"))
dates.append(run.day.strftime("%Y-%m-%d"))
successes.append(0)
failures.append(0)

Expand Down
2 changes: 1 addition & 1 deletion posthog/batch_exports/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def fetch_batch_export_run_count(
"""

try:
return sync_execute(clickhouse_query)[0][0] # type: ignore
return sync_execute(clickhouse_query)[0][0]
except Exception:
return 0

Expand Down

0 comments on commit 1fb4d16

Please sign in to comment.