feat: check and notify users of new versions

checks are done against github's API with one request every 12 hours
This commit is contained in:
Herculino Trotta
2025-07-27 01:28:27 -03:00
parent d7a4e79321
commit 76822224a0
6 changed files with 82 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
from django.apps import AppConfig
from django.core.cache import cache
class CommonConfig(AppConfig):
@@ -18,3 +19,7 @@ class CommonConfig(AppConfig):
admin.site.unregister(SocialAccount)
admin.site.unregister(SocialApp)
admin.site.unregister(SocialToken)
# Delete the cache for update checks to prevent false-positives when the app is restarted
# this will be recreated by the check_for_updates task
cache.delete("update_check")