Skip to content

Commit

Permalink
fix: Return inside context manager
Browse files Browse the repository at this point in the history
Co-authored-by: Brett Hoerner <[email protected]>
  • Loading branch information
tomasfarias and bretthoerner authored Mar 20, 2024
1 parent e27439a commit 852648d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/temporal/batch_exports/postgres_batch_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ async def flush_to_postgres():
if pg_file.tell() > 0:
await flush_to_postgres()

return pg_file.records_total
return pg_file.records_total


@workflow.defn(name="postgres-export")
Expand Down

0 comments on commit 852648d

Please sign in to comment.