jsonjsdb 0.8.0__tar.gz → 0.8.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {jsonjsdb-0.8.0 → jsonjsdb-0.8.2}/PKG-INFO +1 -1
- {jsonjsdb-0.8.0 → jsonjsdb-0.8.2}/pyproject.toml +1 -1
- {jsonjsdb-0.8.0 → jsonjsdb-0.8.2}/src/jsonjsdb/evolution.py +6 -14
- {jsonjsdb-0.8.0 → jsonjsdb-0.8.2}/src/jsonjsdb/writer.py +2 -1
- {jsonjsdb-0.8.0 → jsonjsdb-0.8.2}/.gitignore +0 -0
- {jsonjsdb-0.8.0 → jsonjsdb-0.8.2}/LICENSE +0 -0
- {jsonjsdb-0.8.0 → jsonjsdb-0.8.2}/README.md +0 -0
- {jsonjsdb-0.8.0 → jsonjsdb-0.8.2}/src/jsonjsdb/__init__.py +0 -0
- {jsonjsdb-0.8.0 → jsonjsdb-0.8.2}/src/jsonjsdb/database.py +0 -0
- {jsonjsdb-0.8.0 → jsonjsdb-0.8.2}/src/jsonjsdb/loader.py +0 -0
- {jsonjsdb-0.8.0 → jsonjsdb-0.8.2}/src/jsonjsdb/py.typed +0 -0
- {jsonjsdb-0.8.0 → jsonjsdb-0.8.2}/src/jsonjsdb/table.py +0 -0
- {jsonjsdb-0.8.0 → jsonjsdb-0.8.2}/src/jsonjsdb/types.py +0 -0
|
@@ -215,12 +215,8 @@ def compare_datasets(
|
|
|
215
215
|
if has_composite_id
|
|
216
216
|
else entity_id
|
|
217
217
|
),
|
|
218
|
-
parent_entity_id=
|
|
219
|
-
|
|
220
|
-
if has_composite_id
|
|
221
|
-
else parent_id
|
|
222
|
-
),
|
|
223
|
-
parent_entity=None if has_composite_id else parent_entity,
|
|
218
|
+
parent_entity_id=parent_id,
|
|
219
|
+
parent_entity=parent_entity,
|
|
224
220
|
variable=variable,
|
|
225
221
|
old_value=old_value,
|
|
226
222
|
new_value=new_value,
|
|
@@ -240,10 +236,8 @@ def compare_datasets(
|
|
|
240
236
|
entity_id=(
|
|
241
237
|
_standardize_id(str(entity_id)) if has_composite_id else entity_id
|
|
242
238
|
),
|
|
243
|
-
parent_entity_id=
|
|
244
|
-
|
|
245
|
-
),
|
|
246
|
-
parent_entity=None if has_composite_id else parent_entity,
|
|
239
|
+
parent_entity_id=parent_id,
|
|
240
|
+
parent_entity=parent_entity,
|
|
247
241
|
variable=None,
|
|
248
242
|
old_value=None,
|
|
249
243
|
new_value=None,
|
|
@@ -263,10 +257,8 @@ def compare_datasets(
|
|
|
263
257
|
entity_id=(
|
|
264
258
|
_standardize_id(str(entity_id)) if has_composite_id else entity_id
|
|
265
259
|
),
|
|
266
|
-
parent_entity_id=
|
|
267
|
-
|
|
268
|
-
),
|
|
269
|
-
parent_entity=None if has_composite_id else parent_entity,
|
|
260
|
+
parent_entity_id=parent_id,
|
|
261
|
+
parent_entity=parent_entity,
|
|
270
262
|
variable=None,
|
|
271
263
|
old_value=None,
|
|
272
264
|
new_value=None,
|
|
@@ -49,7 +49,8 @@ def write_table_index(
|
|
|
49
49
|
write_js: If True, also write __table__.json.js (default: True)
|
|
50
50
|
"""
|
|
51
51
|
now = timestamp if timestamp is not None else int(time.time())
|
|
52
|
-
|
|
52
|
+
all_tables = sorted(tables) + ["__table__"]
|
|
53
|
+
df = pl.DataFrame([{"name": name, "last_modif": now} for name in all_tables])
|
|
53
54
|
|
|
54
55
|
write_table_json(df, path)
|
|
55
56
|
if write_js:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|