nucliadb 6.1.0.post2567__py3-none-any.whl → 6.1.0.post2569__py3-none-any.whl
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.
- nucliadb/ingest/orm/resource.py +9 -1
- {nucliadb-6.1.0.post2567.dist-info → nucliadb-6.1.0.post2569.dist-info}/METADATA +5 -5
- {nucliadb-6.1.0.post2567.dist-info → nucliadb-6.1.0.post2569.dist-info}/RECORD +7 -7
- {nucliadb-6.1.0.post2567.dist-info → nucliadb-6.1.0.post2569.dist-info}/WHEEL +0 -0
- {nucliadb-6.1.0.post2567.dist-info → nucliadb-6.1.0.post2569.dist-info}/entry_points.txt +0 -0
- {nucliadb-6.1.0.post2567.dist-info → nucliadb-6.1.0.post2569.dist-info}/top_level.txt +0 -0
- {nucliadb-6.1.0.post2567.dist-info → nucliadb-6.1.0.post2569.dist-info}/zip-safe +0 -0
nucliadb/ingest/orm/resource.py
CHANGED
@@ -1160,12 +1160,20 @@ def add_field_classifications(basic: PBBasic, fcmw: FieldComputedMetadataWrapper
|
|
1160
1160
|
"""
|
1161
1161
|
Returns whether some new field classifications were added
|
1162
1162
|
"""
|
1163
|
-
if len(fcmw.metadata.metadata.classifications) == 0
|
1163
|
+
if len(fcmw.metadata.metadata.classifications) == 0 and all(
|
1164
|
+
len(split.classifications) == 0 for split in fcmw.metadata.split_metadata.values()
|
1165
|
+
):
|
1164
1166
|
return False
|
1167
|
+
|
1165
1168
|
remove_field_classifications(basic, [fcmw.field])
|
1166
1169
|
fcfs = FieldClassifications()
|
1167
1170
|
fcfs.field.CopyFrom(fcmw.field)
|
1168
1171
|
fcfs.classifications.extend(fcmw.metadata.metadata.classifications)
|
1172
|
+
|
1173
|
+
for split_id, split in fcmw.metadata.split_metadata.items():
|
1174
|
+
if split_id not in fcmw.metadata.deleted_splits:
|
1175
|
+
fcfs.classifications.extend(split.classifications)
|
1176
|
+
|
1169
1177
|
basic.computedmetadata.field_classifications.append(fcfs)
|
1170
1178
|
return True
|
1171
1179
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nucliadb
|
3
|
-
Version: 6.1.0.
|
3
|
+
Version: 6.1.0.post2569
|
4
4
|
Home-page: https://docs.nuclia.dev/docs/management/nucliadb/intro
|
5
5
|
Author: NucliaDB Community
|
6
6
|
Author-email: nucliadb@nuclia.com
|
@@ -22,10 +22,10 @@ Classifier: Programming Language :: Python :: 3.12
|
|
22
22
|
Classifier: Programming Language :: Python :: 3 :: Only
|
23
23
|
Requires-Python: >=3.9, <4
|
24
24
|
Description-Content-Type: text/markdown
|
25
|
-
Requires-Dist: nucliadb-telemetry[all]>=6.1.0.
|
26
|
-
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.1.0.
|
27
|
-
Requires-Dist: nucliadb-protos>=6.1.0.
|
28
|
-
Requires-Dist: nucliadb-models>=6.1.0.
|
25
|
+
Requires-Dist: nucliadb-telemetry[all]>=6.1.0.post2569
|
26
|
+
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.1.0.post2569
|
27
|
+
Requires-Dist: nucliadb-protos>=6.1.0.post2569
|
28
|
+
Requires-Dist: nucliadb-models>=6.1.0.post2569
|
29
29
|
Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
|
30
30
|
Requires-Dist: nucliadb-node-binding>=2.26.0
|
31
31
|
Requires-Dist: uvicorn
|
@@ -137,7 +137,7 @@ nucliadb/ingest/orm/entities.py,sha256=xWhp_JXxHjUJ-m3I08tLqkpIrThHH0LJDvIVgK4q7
|
|
137
137
|
nucliadb/ingest/orm/exceptions.py,sha256=k4Esv4NtL4TrGTcsQpwrSfDhPQpiYcRbB1SpYmBX5MY,1432
|
138
138
|
nucliadb/ingest/orm/knowledgebox.py,sha256=hKKqvZUG4tdPO3Z29_qvz5-dcX5_X2x5pkNQhDGnR7Q,22746
|
139
139
|
nucliadb/ingest/orm/metrics.py,sha256=OkwMSPKLZcKba0ZTwtTiIxwBgaLMX5ydhGieKvi2y7E,1096
|
140
|
-
nucliadb/ingest/orm/resource.py,sha256=
|
140
|
+
nucliadb/ingest/orm/resource.py,sha256=cW_19P2grUOY255pZXvgF13SEyPCy_e8JMogIRqWXxA,53772
|
141
141
|
nucliadb/ingest/orm/utils.py,sha256=vCe_9UxHu26JDFGLwQ0wH-XyzJIpQCTK-Ow9dtZR5Vg,2716
|
142
142
|
nucliadb/ingest/orm/processor/__init__.py,sha256=Aqd9wCNTvggkMkCY3WvoI8spdr94Jnqk-0iq9XpLs18,922
|
143
143
|
nucliadb/ingest/orm/processor/auditing.py,sha256=TeYhXGJRyQ7ROytbb2u8R0fIh_FYi3HgTu3S1ribY3U,4623
|
@@ -331,9 +331,9 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
|
|
331
331
|
nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
|
332
332
|
nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
|
333
333
|
nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
|
334
|
-
nucliadb-6.1.0.
|
335
|
-
nucliadb-6.1.0.
|
336
|
-
nucliadb-6.1.0.
|
337
|
-
nucliadb-6.1.0.
|
338
|
-
nucliadb-6.1.0.
|
339
|
-
nucliadb-6.1.0.
|
334
|
+
nucliadb-6.1.0.post2569.dist-info/METADATA,sha256=GihpVul4JuZqZqWnHBzux0uuvhrPTNslEXW_1TjmqvY,4390
|
335
|
+
nucliadb-6.1.0.post2569.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
336
|
+
nucliadb-6.1.0.post2569.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
|
337
|
+
nucliadb-6.1.0.post2569.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
|
338
|
+
nucliadb-6.1.0.post2569.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
339
|
+
nucliadb-6.1.0.post2569.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|