Skip to content

Commit

Permalink
Merge pull request #17 from DCSO/fix/initial_setup
Browse files Browse the repository at this point in the history
fix initial setup
  • Loading branch information
hannahw0 authored Jan 31, 2024
2 parents 53a3bc3 + 0585c92 commit 0ea9eb8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bin/tie2index.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,15 @@ def fetch_iocs() -> NoReturn:
os.path.dirname(__file__), "../local/timestamp.json"
)

if fetcher.state["updated_at_since"] == 0:
if (
fetcher.state["updated_at_since"] == "0"
or fetcher.state["updated_at_since"] == 0
):
# check if we had a starting timestamp configured, and use that instead
if SETUP["tie"]["updated_at_since"] != 0:
if (
SETUP["tie"]["updated_at_since"] != "0"
and SETUP["tie"]["updated_at_since"] != 0
):
logger.info(
"restart fetching IoCs that were updated since {}".format(
SETUP["tie"]["updated_at_since"]
Expand Down

0 comments on commit 0ea9eb8

Please sign in to comment.