check every 8 hours instead

This commit is contained in:
2025-07-02 03:11:53 -05:00
parent 71bc0a606b
commit 1af3dfd5b2

View File

@ -7,7 +7,7 @@ from munch import DefaultMunch
from globals import *
now = dt.now(tz.utc)
six_hours_ago = now - timedelta(hours=6)
eight_hours_ago = now - timedelta(hours=8)
for repo_link in repo_links.split(','):
result = get(repo_link)
@ -15,7 +15,7 @@ for repo_link in repo_links.split(','):
if result.reason == 'OK':
last = DefaultMunch.fromDict(parse(result.text)).entries[0]
timechk = mktime(last.published_parsed or last.updated_parsed)
if timechk > dt.timestamp(six_hours_ago):
if timechk > dt.timestamp(eight_hours_ago):
if ('prerelease' not in last.title.lower() and 'beta' not in last.title.lower()):
notify(0, f'new release for {entity}: {last.title} - {last.link}')
else: