mirror of
https://github.com/borgbase/vorta
synced 2024-12-21 23:33:13 +00:00
Fix detecting whether sources are configured (#1613)
Fixes #1463. This makes the code count the database rows for the current profile only. Previously one could run a backup without any sources when one had sources configured in a different profile. * src/vorta/borg/create.py (BorgCreateJob.prepare)
This commit is contained in:
parent
618a1fe278
commit
a00ed62e49
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ def prepare(cls, profile):
|
|||
else:
|
||||
ret['ok'] = False # Set back to False, so we can do our own checks here.
|
||||
|
||||
n_backup_folders = SourceFileModel.select().count()
|
||||
n_backup_folders = SourceFileModel.select().where(SourceFileModel.profile == profile).count()
|
||||
|
||||
# cmd options like `--paths-from-command` require a command
|
||||
# that is appended to the arguments
|
||||
|
|
Loading…
Reference in a new issue