Skip to content

Commit

Permalink
database.files:FilesDB.all_files - format SQL select statement
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Nov 6, 2024
1 parent 81f7bdb commit 0c3db11
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions acacore/database/files_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ def __init__(
BaseFile,
"files_all",
f"""
select uuid, checksum, relative_path, is_binary, size, puid, signature, warning from {self.original_files.name}
union
select uuid, checksum, relative_path, is_binary, size, puid, signature, warning from {self.master_files.name}
union
select uuid, checksum, relative_path, is_binary, size, puid, signature, warning from {self.access_files.name}
union
select uuid, checksum, relative_path, is_binary, size, puid, signature, warning from {self.statutory_files.name}
""",
select uuid, checksum, relative_path, is_binary, size, puid, signature, warning from {self.original_files.name}
union
select uuid, checksum, relative_path, is_binary, size, puid, signature, warning from {self.master_files.name}
union
select uuid, checksum, relative_path, is_binary, size, puid, signature, warning from {self.access_files.name}
union
select uuid, checksum, relative_path, is_binary, size, puid, signature, warning from {self.statutory_files.name}
""",
ignore=["root"],
)

Expand Down

0 comments on commit 0c3db11

Please sign in to comment.