Skip to content

Commit b95f9e6

Browse files
authored
Merge pull request #2627 from sebix/fix-2323
fix asn database age check
2 parents c2cc657 + c14bff4 commit b95f9e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intelmq/bots/experts/asn_lookup/expert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def check(parameters):
8080

8181
# Check the age of the database file
8282
# use local time zone for both time operations
83-
if datetime.now() - datetime.fromtimestamp(database_path.stat().st_mtime) < timedelta(weeks=1):
83+
if datetime.now() - datetime.fromtimestamp(database_path.stat().st_mtime) > timedelta(weeks=1):
8484
return [["warning", f"Database ({database_path!s}) is older than one week. Check the auto update, see: https://docs.intelmq.org/latest/user/bots/#asn-lookup."]]
8585

8686
@classmethod

0 commit comments

Comments
 (0)