Skip to content

Commit 82bf4b2

Browse files
committed
rename function
1 parent 1cb9eeb commit 82bf4b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/mergin/sync/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def workspace(self):
135135
project_workspace = current_app.ws_handler.get(self.workspace_id)
136136
return project_workspace
137137

138-
def get_latest_file_history_ids(self) -> List[int]:
138+
def get_latest_files_cache(self) -> List[int]:
139139
"""Get latest file history ids either from cached table or calculate them on the fly"""
140140
if self.latest_project_files.file_history_ids is not None:
141141
return self.latest_project_files.file_history_ids
@@ -1468,7 +1468,7 @@ def __init__(
14681468
latest_files_map = {
14691469
fh.path: fh.id
14701470
for fh in FileHistory.query.filter(
1471-
FileHistory.id.in_(self.project.get_latest_file_history_ids())
1471+
FileHistory.id.in_(self.project.get_latest_files_cache())
14721472
).all()
14731473
}
14741474

0 commit comments

Comments
 (0)