nucliadb 6.2.1.post3217__py3-none-any.whl → 6.2.1.post3229__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 +7 -0
- {nucliadb-6.2.1.post3217.dist-info → nucliadb-6.2.1.post3229.dist-info}/METADATA +5 -5
- {nucliadb-6.2.1.post3217.dist-info → nucliadb-6.2.1.post3229.dist-info}/RECORD +7 -7
- {nucliadb-6.2.1.post3217.dist-info → nucliadb-6.2.1.post3229.dist-info}/WHEEL +0 -0
- {nucliadb-6.2.1.post3217.dist-info → nucliadb-6.2.1.post3229.dist-info}/entry_points.txt +0 -0
- {nucliadb-6.2.1.post3217.dist-info → nucliadb-6.2.1.post3229.dist-info}/top_level.txt +0 -0
- {nucliadb-6.2.1.post3217.dist-info → nucliadb-6.2.1.post3229.dist-info}/zip-safe +0 -0
nucliadb/ingest/orm/resource.py
CHANGED
@@ -620,6 +620,9 @@ class Resource:
|
|
620
620
|
for question_answers in message.question_answers:
|
621
621
|
await self._apply_question_answers(question_answers)
|
622
622
|
|
623
|
+
for field_id in message.delete_question_answers:
|
624
|
+
await self._delete_question_answers(field_id)
|
625
|
+
|
623
626
|
for extracted_text in message.extracted_text:
|
624
627
|
await self._apply_extracted_text(extracted_text)
|
625
628
|
|
@@ -687,6 +690,10 @@ class Resource:
|
|
687
690
|
field_obj = await self.get_field(field.field, field.field_type, load=False)
|
688
691
|
await field_obj.set_question_answers(question_answers)
|
689
692
|
|
693
|
+
async def _delete_question_answers(self, field_id: FieldID):
|
694
|
+
field_obj = await self.get_field(field_id.field, field_id.field_type, load=False)
|
695
|
+
await field_obj.delete_question_answers()
|
696
|
+
|
690
697
|
async def _apply_link_extracted_data(self, link_extracted_data: LinkExtractedData):
|
691
698
|
assert self.basic is not None
|
692
699
|
field_link: Link = await self.get_field(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: nucliadb
|
3
|
-
Version: 6.2.1.
|
3
|
+
Version: 6.2.1.post3229
|
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.2.1.
|
26
|
-
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.2.1.
|
27
|
-
Requires-Dist: nucliadb-protos>=6.2.1.
|
28
|
-
Requires-Dist: nucliadb-models>=6.2.1.
|
25
|
+
Requires-Dist: nucliadb-telemetry[all]>=6.2.1.post3229
|
26
|
+
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.2.1.post3229
|
27
|
+
Requires-Dist: nucliadb-protos>=6.2.1.post3229
|
28
|
+
Requires-Dist: nucliadb-models>=6.2.1.post3229
|
29
29
|
Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
|
30
30
|
Requires-Dist: nuclia-models>=0.24.2
|
31
31
|
Requires-Dist: uvicorn
|
@@ -133,7 +133,7 @@ nucliadb/ingest/orm/entities.py,sha256=sBhg8eahsWVwO34KoAJV2YRix4Uw5GINx3srJWxRC
|
|
133
133
|
nucliadb/ingest/orm/exceptions.py,sha256=k4Esv4NtL4TrGTcsQpwrSfDhPQpiYcRbB1SpYmBX5MY,1432
|
134
134
|
nucliadb/ingest/orm/knowledgebox.py,sha256=IGOPvBR1qXqDxE5DeiOdYCLdPgjzOVVpsASJ2zYvWwQ,23651
|
135
135
|
nucliadb/ingest/orm/metrics.py,sha256=OkwMSPKLZcKba0ZTwtTiIxwBgaLMX5ydhGieKvi2y7E,1096
|
136
|
-
nucliadb/ingest/orm/resource.py,sha256=
|
136
|
+
nucliadb/ingest/orm/resource.py,sha256=u1iiq0qkMPmvOD9pgNxjgm98pFSsfQ09_T28bxbQNNw,44992
|
137
137
|
nucliadb/ingest/orm/utils.py,sha256=vCe_9UxHu26JDFGLwQ0wH-XyzJIpQCTK-Ow9dtZR5Vg,2716
|
138
138
|
nucliadb/ingest/orm/processor/__init__.py,sha256=Aqd9wCNTvggkMkCY3WvoI8spdr94Jnqk-0iq9XpLs18,922
|
139
139
|
nucliadb/ingest/orm/processor/auditing.py,sha256=TeYhXGJRyQ7ROytbb2u8R0fIh_FYi3HgTu3S1ribY3U,4623
|
@@ -332,9 +332,9 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
|
|
332
332
|
nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
|
333
333
|
nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
|
334
334
|
nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
|
335
|
-
nucliadb-6.2.1.
|
336
|
-
nucliadb-6.2.1.
|
337
|
-
nucliadb-6.2.1.
|
338
|
-
nucliadb-6.2.1.
|
339
|
-
nucliadb-6.2.1.
|
340
|
-
nucliadb-6.2.1.
|
335
|
+
nucliadb-6.2.1.post3229.dist-info/METADATA,sha256=Q_af9LYsLGbsYCTrh4hkXZtDHHZmm9VZmk6TZdUu_4Q,4603
|
336
|
+
nucliadb-6.2.1.post3229.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
337
|
+
nucliadb-6.2.1.post3229.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
|
338
|
+
nucliadb-6.2.1.post3229.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
|
339
|
+
nucliadb-6.2.1.post3229.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
340
|
+
nucliadb-6.2.1.post3229.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|