Skip to content

Commit

Permalink
parsing logic for datetime input
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-webber committed Jun 4, 2024
1 parent 2dd8396 commit 7b9c329
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/filter_advisories.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ def main():
advisories = read_advisories("advisories.json")

# Define the current version to compare against
# Set default last run date to the year 2000 if not provided
if len(sys.argv) < 3:
# Set default last run date to the year 2000 if not provided or is blank
if (not sys.argv[2].strip()) or (len(sys.argv) < 3):
last_run_datetime_str = "2000-01-01T00:00:00Z"
else:
last_run_datetime_str: str = sys.argv[2].strip()
Expand Down

0 comments on commit 7b9c329

Please sign in to comment.