We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cb9eeb commit 82bf4b2Copy full SHA for 82bf4b2
1 file changed
server/mergin/sync/models.py
@@ -135,7 +135,7 @@ def workspace(self):
135
project_workspace = current_app.ws_handler.get(self.workspace_id)
136
return project_workspace
137
138
- def get_latest_file_history_ids(self) -> List[int]:
+ def get_latest_files_cache(self) -> List[int]:
139
"""Get latest file history ids either from cached table or calculate them on the fly"""
140
if self.latest_project_files.file_history_ids is not None:
141
return self.latest_project_files.file_history_ids
@@ -1468,7 +1468,7 @@ def __init__(
1468
latest_files_map = {
1469
fh.path: fh.id
1470
for fh in FileHistory.query.filter(
1471
- FileHistory.id.in_(self.project.get_latest_file_history_ids())
+ FileHistory.id.in_(self.project.get_latest_files_cache())
1472
).all()
1473
}
1474
0 commit comments