Skip to content

Commit

Permalink
admin notice update
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Aug 15, 2024
1 parent 813578c commit 6233003
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plogical/httpProc.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ def render(self):
if self.data == None:
self.data = {}

from IncBackups.models import OneClickBackups
if OneClickBackups.objects.filter(owner=admin).count() == 0:
self.data['backupDisplay'] = 1
else:
self.data['backupDisplay'] = 0

### Onboarding checks

if currentACL['admin']:
Expand Down Expand Up @@ -77,12 +83,6 @@ def render(self):
except:
pass

from IncBackups.models import OneClickBackups
if OneClickBackups.objects.filter(owner=admin).count() == 0:
self.data['backupDisplay'] = 1
else:
self.data['backupDisplay'] = 0


ACLManager.GetServiceStatus(self.data)

Expand Down

0 comments on commit 6233003

Please sign in to comment.