Skip to content

Commit

Permalink
database.files_db - format
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Dec 18, 2024
1 parent bd7021c commit d3b619a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions acacore/database/files_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ def __init__(
"log_paths",
f"""
select coalesce(fo.relative_path, fm.relative_path, fa.relative_path, fs.relative_path) as file_relative_path, l.* from {self.log.name} l
left join {self.original_files.name} fo on l.file_type = 'original' and fo.uuid = l.file_uuid
left join {self.master_files.name} fm on l.file_type = 'master' and fm.uuid = l.file_uuid
left join {self.access_files.name} fa on l.file_type = 'access' and fa.uuid = l.file_uuid
left join {self.original_files.name} fo on l.file_type = 'original' and fo.uuid = l.file_uuid
left join {self.master_files.name} fm on l.file_type = 'master' and fm.uuid = l.file_uuid
left join {self.access_files.name} fa on l.file_type = 'access' and fa.uuid = l.file_uuid
left join {self.statutory_files.name} fs on l.file_type = 'statutory' and fs.uuid = l.file_uuid
""",
)
Expand Down

0 comments on commit d3b619a

Please sign in to comment.