Skip to content

Commit

Permalink
Filter for ignored files in Suprsync query (#583)
Browse files Browse the repository at this point in the history
* Suprsync don't try to copy ignored files

* bugfix

* Ignore flake8 warning in filter

---------

Co-authored-by: Brian Koopman <[email protected]>
  • Loading branch information
2 people authored and d-hoshino2626 committed Apr 12, 2024
1 parent 2d3b023 commit 1bd114c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion socs/db/suprsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ def get_copyable_files(self, archive_name, session=None,
query = session.query(SupRsyncFile).filter(
SupRsyncFile.removed == None, # noqa: E711
SupRsyncFile.archive_name == archive_name,
SupRsyncFile.failed_copy_attempts < max_copy_attempts
SupRsyncFile.failed_copy_attempts < max_copy_attempts,
SupRsyncFile.ignore == False, # noqa: E712
)

files = []
Expand Down

0 comments on commit 1bd114c

Please sign in to comment.