Skip to content

Commit

Permalink
fix: [website] Compare with the creation_timestamp and not current time.
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Jan 22, 2025
1 parent a8b1646 commit 40828e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/web/api/v1/sighting.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def post(self) -> Tuple[ResultType, int]:
and Sighting.query.filter(
Sighting.vulnerability.ilike(sighting["vulnerability"]),
Sighting.source == sighting["source"],
func.date(Sighting.creation_timestamp) == func.date(current_time),
func.date(Sighting.creation_timestamp) == func.date(sighting["creation_timestamp"]),
).count()
!= 0
):
Expand Down

0 comments on commit 40828e4

Please sign in to comment.