mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Lint
This commit is contained in:
parent
d55e7c9e64
commit
c037f1d1af
@ -98,10 +98,12 @@ def migrate(migrator: Migrator, database, **kwargs):
|
||||
# Fetch the related server entry from the Servers table
|
||||
server = Servers.get(Servers.server_id == backup.server_id)
|
||||
|
||||
# Create a new backup entry with data from the old backup entry and related server
|
||||
# Create a new backup entry with data from the
|
||||
# old backup entry and related server
|
||||
NewBackups.create(
|
||||
backup_name="Default",
|
||||
backup_location=server.backup_path, # Set backup_location equal to backup_path
|
||||
# Set backup_location equal to backup_path
|
||||
backup_location=server.backup_path,
|
||||
excluded_dirs=backup.excluded_dirs,
|
||||
max_backups=backup.max_backups,
|
||||
server_id=server.server_id,
|
||||
|
Loading…
Reference in New Issue
Block a user