Skip to content

Commit

Permalink
Fix tests and black
Browse files Browse the repository at this point in the history
  • Loading branch information
harminius committed Nov 21, 2024
1 parent f01790f commit 7a19a03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions server/mergin/sync/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,9 +741,7 @@ def __init__(
latest_files_map = {
fh.path: fh.id
for fh in FileHistory.query.filter(
FileHistory.id.in_(
self.project.latest_project_files.file_history_ids
)
FileHistory.id.in_(self.project.latest_project_files.file_history_ids)
).all()
}

Expand Down
2 changes: 1 addition & 1 deletion server/mergin/tests/test_db_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def test_remove_project(client, diff_project):
LatestProjectFiles.query.filter_by(project_id=project_id)
.first()
.file_history_ids
is None
== []
)

# try to remove the deleted project
Expand Down

0 comments on commit 7a19a03

Please sign in to comment.