Seconds/minutes/hours/days between checks form field upgrade from 'minutes' only (#512)

This commit is contained in:
dgtlmoon
2022-04-24 16:56:32 +02:00
committed by GitHub
parent 1e8aa6158b
commit 9e708810d1
20 changed files with 227 additions and 207 deletions

View File

@@ -164,8 +164,8 @@ class perform_site_check():
else:
fetched_md5 = hashlib.md5(stripped_text_from_html).hexdigest()
# On the first run of a site, watch['previous_md5'] will be an empty string, set it the current one.
if not len(watch['previous_md5']):
# On the first run of a site, watch['previous_md5'] will be None, set it the current one.
if not watch.get('previous_md5'):
watch['previous_md5'] = fetched_md5
update_obj["previous_md5"] = fetched_md5