From d3b619a0aa5a8cf79ced900b74c3cf325c665724 Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Wed, 18 Dec 2024 14:50:57 +0100 Subject: [PATCH] database.files_db - format --- acacore/database/files_db.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acacore/database/files_db.py b/acacore/database/files_db.py index 8eebf25..dda4b20 100644 --- a/acacore/database/files_db.py +++ b/acacore/database/files_db.py @@ -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 """, )