Skip to content

Commit

Permalink
syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Dec 3, 2024
1 parent 568aa33 commit 9be3f86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "malcolm-test"
version = "0.6.2"
version = "0.6.3"
authors = [
{ name="Seth Grover", email="[email protected]" },
]
Expand Down
6 changes: 4 additions & 2 deletions src/maltest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,13 +720,15 @@ def WaitForLastEventTime(

if (
isinstance(dataSourceStats, dict)
and dataSourceStats
and ("sources" in dataSourceStats)
and isinstance(dataSourceStats["sources"], dict)
and dataSourceStats["sources"]
and all(
(
(datetime.now(timezone.utc) - datetime.fromisoformat(timestamp)).total_seconds()
> lastDocIngestAge
)
for timestamp in dataSourceStats.values()
for timestamp in dataSourceStats["sources"].values()
)
):
# We received a dict of host.name -> event.ingested, it has
Expand Down

0 comments on commit 9be3f86

Please sign in to comment.