Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ insert_final_newline = true
charset = utf-8
end_of_line = lf

[*.{yaml,yml}]
indent_size = 2

[*.bat]
indent_style = tab
end_of_line = crlf
Expand Down
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ repos:
- id: debug-statements
- id: end-of-file-fixer
exclude: '^.+?\.json$'
- repo: https://github.com/PyCQA/flake8
rev: 7.1.2
hooks:
- id: flake8
additional_dependencies: ['flake8-print==5.0.0']
- repo: https://github.com/asottile/reorder_python_imports
rev: v1.4.0
hooks:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

List of the most important changes for each release.

## 0.8.9
- Removes debugging print statements
- Adds flake8 linting

## 0.8.8
- Adds support for Python 3.14

Expand Down
2 changes: 1 addition & 1 deletion morango/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.8.8"
__version__ = "0.8.9"
2 changes: 0 additions & 2 deletions morango/models/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,6 @@ def _deserialize_store_model(self, fk_cache, defer_fks=False, sync_filter=None):
klass_model.syncing_objects.filter(id=self.id).delete()
return None, deferred_fks
else:
if sync_filter:
print("Has filter", sync_filter)
# load model into memory
app_model = klass_model.deserialize(json.loads(self.serialized), sync_filter=sync_filter)
app_model._morango_source_id = self.source_id
Expand Down
1 change: 0 additions & 1 deletion morango/sync/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,6 @@ def _deserialize_from_store(profile, skip_erroring=False, filter=None):
lambda x, y: x | y,
[Q(partition__startswith=prefix) for prefix in filter],
)
print("prefix_condition: ", prefix_condition)
store_models = store_models.filter(prefix_condition)

# if requested, skip any records that previously errored, to be faster
Expand Down
Loading