Skip to content

Commit

Permalink
database:files_db - use aliases and variables for tables in _HistoryP…
Browse files Browse the repository at this point in the history
…aths declaration
  • Loading branch information
MatteoCampinoti94 committed Dec 8, 2023
1 parent d1d5bb7 commit fa41546
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acacore/database/files_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ def __init__(
self.history,
HistoryEntryPath,
select_columns=[
SelectColumn("Files.relative_path", str, "relative_path"),
SelectColumn("F.relative_path", str, "relative_path"),
*model_to_columns(HistoryEntry),
],
joins=["left join Files on History.UUID = Files.uuid"],
joins=[f"left join {self.files.name} F on {self.files.name}.UUID = F.uuid"],
)
self.identification_warnings = self.create_view(
"_IdentificationWarnings",
Expand Down

0 comments on commit fa41546

Please sign in to comment.