Skip to content

Commit 541476a

Browse files
committed
must cast lookback as int
1 parent d90a2ea commit 541476a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spotbot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def is_entity_recent(entity):
5050
return False
5151
ent_time = entity.metadata['timestamp']
5252
cur_time = datetime.datetime.now(datetime.timezone.utc)
53-
lookback_seconds = os.getenv('LOOKBACK_SECONDS', 7200)
53+
lookback_seconds = int(os.getenv('LOOKBACK_SECONDS', 7200))
5454
return (cur_time - ent_time).total_seconds() < lookback_seconds
5555

5656
def call_target(content, messageId=None):

0 commit comments

Comments
 (0)