We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d90a2ea commit 541476aCopy full SHA for 541476a
spotbot.py
@@ -50,7 +50,7 @@ def is_entity_recent(entity):
50
return False
51
ent_time = entity.metadata['timestamp']
52
cur_time = datetime.datetime.now(datetime.timezone.utc)
53
- lookback_seconds = os.getenv('LOOKBACK_SECONDS', 7200)
+ lookback_seconds = int(os.getenv('LOOKBACK_SECONDS', 7200))
54
return (cur_time - ent_time).total_seconds() < lookback_seconds
55
56
def call_target(content, messageId=None):
0 commit comments