Select correct source folders. Fixes #23

This commit is contained in:
Manu 2018-11-21 22:23:32 +08:00
parent 55ff2b0352
commit 7221fdb95d
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class BorgCreateThread(BorgThread):
# Add repo url and source dirs. # Add repo url and source dirs.
cmd.append(f'{profile.repo.url}::{platform.node()}-{dt.now().isoformat()}') cmd.append(f'{profile.repo.url}::{platform.node()}-{dt.now().isoformat()}')
for f in SourceDirModel.select(): for f in SourceDirModel.select().where(SourceDirModel.profile == profile.id):
cmd.append(f.dir) cmd.append(f.dir)
ret['message'] = 'Starting backup..' ret['message'] = 'Starting backup..'