mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-04-19 00:45:16 +00:00
Update notification fix
This commit is contained in:
parent
abeafa228c
commit
d1e436683d
@ -10,6 +10,9 @@ def tag_webadmin_version():
|
||||
if webadmin_settings.current_version != settings.WIREGUARD_WEBADMIN_VERSION:
|
||||
webadmin_settings.current_version = settings.WIREGUARD_WEBADMIN_VERSION
|
||||
webadmin_settings.save()
|
||||
if webadmin_settings.current_version == webadmin_settings.latest_version:
|
||||
webadmin_settings.update_available = False
|
||||
webadmin_settings.save()
|
||||
return {
|
||||
'current_version': settings.WIREGUARD_WEBADMIN_VERSION / 10000,
|
||||
'latest_version': webadmin_settings.latest_version / 10000,
|
||||
|
Loading…
x
Reference in New Issue
Block a user