feat(tasks:check_for_updates): add env variable to disable checking

This commit is contained in:
Herculino Trotta
2025-08-06 16:58:58 -03:00
parent b1178198e9
commit a544dc4943
4 changed files with 18 additions and 18 deletions

View File

@@ -90,6 +90,9 @@ def reset_demo_data(timestamp=None):
name="check_for_updates",
)
def check_for_updates(timestamp=None):
if not settings.CHECK_FOR_UPDATES:
return "CHECK_FOR_UPDATES is disabled"
url = "https://api.github.com/repos/eitchtee/WYGIWYH/releases/latest"
try: