Skip to content

Commit

Permalink
798 config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinasKen committed Sep 17, 2024
1 parent c5ba214 commit be44d58
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ Improvements:

.. _#781: https://github.com/atviriduomenys/spinta/issues/781

- Changed `manifests.default.backend` config value from `''` to `'default'`. Now if nothing is set, default backend will be
`MemoryBackend` instead of nothing (`#798`_).

.. _#798: https://github.com/atviriduomenys/spinta/issues/798

Bug fixes:

- Fixed `_srid` routing error, when using negative float values as coordinates (`#781`_).
Expand All @@ -21,6 +26,8 @@ Bug fixes:

.. _#737: https://github.com/atviriduomenys/spinta/issues/737

- Fixed some errors when trying to access api endpoints, while server is running with default config settings (`#798`_).

0.1.71 (2024-09-12)
===================

Expand Down
5 changes: 5 additions & 0 deletions spinta/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,11 @@ def reload_backend_metadata(context, manifest, backend):
pass


@commands.reload_backend_metadata.register(Context, Manifest, type(None))
def reload_backend_metadata(context, manifest, backend):
pass


def _check_if_nan(value: Any) -> bool:
# Check for nan values, IEEE 754 defines that comparing with nan always returns false
if value != value:
Expand Down
2 changes: 1 addition & 1 deletion spinta/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
'manifests': {
'default': {
'type': 'memory',
'backend': '',
'backend': 'default',
'mode': 'internal',
'keymap': '',
},
Expand Down

0 comments on commit be44d58

Please sign in to comment.