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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jsonjsdb
3
- Version: 0.8.0
3
+ Version: 0.8.2
4
4
  Summary: Python library for JSONJS database loading
5
5
  Project-URL: Homepage, https://github.com/datannur/jsonjsdb
6
6
  Project-URL: Repository, https://github.com/datannur/jsonjsdb
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "jsonjsdb"
7
- version = "0.8.0"
7
+ version = "0.8.2"
8
8
  description = "Python library for JSONJS database loading"
9
9
  authors = [{ name = "datannur" }]
10
10
  readme = "README.md"
@@ -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
- str(entity_id).split("---")[0]
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
- str(entity_id).split("---")[0] if has_composite_id else parent_id
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
- str(entity_id).split("---")[0] if has_composite_id else parent_id
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
- df = pl.DataFrame([{"name": name, "last_modif": now} for name in sorted(tables)])
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