mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 15:26:13 +01:00
bug fix: in wp manager
This commit is contained in:
@@ -981,6 +981,7 @@ Automatic backup failed for %s on %s.
|
|||||||
try:
|
try:
|
||||||
allRemoteBackupsiteobj = RemoteBackupsites.objects.filter(owner=config.pk)
|
allRemoteBackupsiteobj = RemoteBackupsites.objects.filter(owner=config.pk)
|
||||||
for i in allRemoteBackupsiteobj:
|
for i in allRemoteBackupsiteobj:
|
||||||
|
try:
|
||||||
backupsiteID = i.WPsites
|
backupsiteID = i.WPsites
|
||||||
wpsite = WPSites.objects.get(pk=backupsiteID)
|
wpsite = WPSites.objects.get(pk=backupsiteID)
|
||||||
AdminID = wpsite.owner.admin_id
|
AdminID = wpsite.owner.admin_id
|
||||||
@@ -1213,6 +1214,8 @@ Automatic backup failed for %s on %s.
|
|||||||
obj = RemoteBackupSchedule.objects.get(pk=config.id)
|
obj = RemoteBackupSchedule.objects.get(pk=config.id)
|
||||||
obj.lastrun = time.time()
|
obj.lastrun = time.time()
|
||||||
obj.save()
|
obj.save()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
except BaseException as msg:
|
except BaseException as msg:
|
||||||
print("Error in Sites:%s" % str(msg))
|
print("Error in Sites:%s" % str(msg))
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -311,11 +311,14 @@ class WebsiteManager:
|
|||||||
allRemoteBackupsites = RemoteBackupsites.objects.filter(owner=RemoteBackupScheduleobj)
|
allRemoteBackupsites = RemoteBackupsites.objects.filter(owner=RemoteBackupScheduleobj)
|
||||||
Data['RemoteBackupsites'] = []
|
Data['RemoteBackupsites'] = []
|
||||||
for i in allRemoteBackupsites:
|
for i in allRemoteBackupsites:
|
||||||
|
try:
|
||||||
wpsite = WPSites.objects.get(pk=i.WPsites)
|
wpsite = WPSites.objects.get(pk=i.WPsites)
|
||||||
Data['RemoteBackupsites'].append({
|
Data['RemoteBackupsites'].append({
|
||||||
'id': i.pk,
|
'id': i.pk,
|
||||||
'Title': wpsite.title,
|
'Title': wpsite.title,
|
||||||
})
|
})
|
||||||
|
except:
|
||||||
|
pass
|
||||||
proc = httpProc(request, 'websiteFunctions/AddRemoteBackupSite.html',
|
proc = httpProc(request, 'websiteFunctions/AddRemoteBackupSite.html',
|
||||||
Data, 'createWebsite')
|
Data, 'createWebsite')
|
||||||
return proc.render()
|
return proc.render()
|
||||||
|
|||||||
Reference in New Issue
Block a user