remotebackupdone

This commit is contained in:
Hassan Hashmi
2022-06-27 16:58:37 +05:00
parent 62ebc1120c
commit d297fa6bdb
4 changed files with 52 additions and 2 deletions

View File

@@ -102,6 +102,8 @@
<th style="padding: 18px; color: white; width: 161px; font-size: 12px;">Website
</th>
<th style="padding: 18px; color: white; width: 161px; font-size: 12px;">Type
</th>
<th style="padding: 18px; color: white; width: 161px; font-size: 12px;">Backup Destination
</th>
<th style="padding: 18px; color: white; width: 161px; font-size: 12px;">Action
</th>
@@ -124,6 +126,9 @@
<td style="padding: 13px;">
{{ sub.Backuptype }}
</td>
<td style="padding: 13px;">
{{ sub.BackupDestination }}
</td>
<td style="padding: 13px;">
<a href="{% url 'RestoreHome' %}?BackupID={{ sub.id }}"

View File

@@ -349,6 +349,7 @@ class WebsiteManager:
config = sub.config
conf = json.loads(config)
Backuptype = conf['Backuptype']
BackupDestination = conf['BackupDestination']
except:
Backuptype = "Backup type not exists"
@@ -356,7 +357,8 @@ class WebsiteManager:
Data['job'].append({
'id': sub.id,
'title': web,
'Backuptype': Backuptype
'Backuptype': Backuptype,
'BackupDestination': BackupDestination
})