Skip to content

Commit

Permalink
enable negative days for simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
ladrians committed Aug 27, 2024
1 parent a9acdbb commit fbec74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion saia_ingest/command_line/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def handle_ingest(
start_time = time.time()
config_file = config

if days is not None and days > 0:
if days is not None:
timestamp = datetime.now(timezone.utc) - timedelta(days=days)
elif timestamp is not None:
timestamp = datetime.fromisoformat(timestamp).replace(tzinfo=timezone.utc)
Expand Down

0 comments on commit fbec74e

Please sign in to comment.