ds-caselaw-marklogic-api-client 31.2.0__py3-none-any.whl → 32.0.0__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.

Potentially problematic release.


This version of ds-caselaw-marklogic-api-client might be problematic. Click here for more details.

@@ -347,18 +347,13 @@ class Document:
347
347
  """
348
348
  Request enrichment of a document, if it's sensible to do so.
349
349
  """
350
- if self.can_enrich:
350
+ if self.enriched_recently is False:
351
+ print("Enrichment requested")
351
352
  self.force_enrich()
352
353
  return True
354
+ print("Enrichment not requested as document was enriched recently")
353
355
  return False
354
356
 
355
- @cached_property
356
- def can_enrich(self) -> bool:
357
- """
358
- Is it sensible to enrich this document?
359
- """
360
- return (self.enriched_recently is False) and self.validates_against_schema
361
-
362
357
  @cached_property
363
358
  def enriched_recently(self) -> bool:
364
359
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ds-caselaw-marklogic-api-client
3
- Version: 31.2.0
3
+ Version: 32.0.0
4
4
  Summary: An API client for interacting with the underlying data in Find Caselaw.
5
5
  Home-page: https://github.com/nationalarchives/ds-caselaw-custom-api-client
6
6
  Keywords: national archives,caselaw
@@ -7,7 +7,7 @@ caselawclient/errors.py,sha256=JC16fEGq_MRJX-_KFzfINCV2Cqx8o6OWOt3C16rQd84,3142
7
7
  caselawclient/factories.py,sha256=BzxG7rBprmszxS1U1jsyBKaMSSm22RFmFK1nQSOZJlw,6812
8
8
  caselawclient/identifier_resolution.py,sha256=BKj7k8ca6b8ZpeoOk2uHYqprOOp9aN5qEB7PWvfJmSw,2439
9
9
  caselawclient/models/__init__.py,sha256=kd23EUpvaC7aLHdgk8farqKAQEx3lf7RvNT2jEatvlg,68
10
- caselawclient/models/documents/__init__.py,sha256=hmO7PuXl3PkD_AXoW2bz4hRmyvj0Ivh3QvF4pDGPCvU,19089
10
+ caselawclient/models/documents/__init__.py,sha256=J5lUpL7XiBYA3mRiDsjc8McUzkhxcdSVS3nlrIUWpAI,19012
11
11
  caselawclient/models/documents/body.py,sha256=mhPOV1cOF3RJr69UzNPlo1KrzePaj7KDPYi1exP06L0,5880
12
12
  caselawclient/models/documents/exceptions.py,sha256=Mz1P8uNqf5w6uLnRwJt6xK7efsVqtd5VA-WXUUH7QLk,285
13
13
  caselawclient/models/documents/statuses.py,sha256=Cp4dTQmJOtsU41EJcxy5dV1841pGD2PNWH0VrkDEv4Q,579
@@ -80,7 +80,7 @@ caselawclient/xquery/validate_document.xqy,sha256=PgaDcnqCRJPIVqfmWsNlXmCLNKd21q
80
80
  caselawclient/xquery/xslt.xqy,sha256=w57wNijH3dkwHkpKeAxqjlghVflQwo8cq6jS_sm-erM,199
81
81
  caselawclient/xquery/xslt_transform.xqy,sha256=cccaFiGkCcvSfDv007UriZ3I4ak2nTLP1trRZdbOoS8,2462
82
82
  caselawclient/xquery_type_dicts.py,sha256=mkpvJcqgKhDi7xkW9RLGIoXIzrpcmLSkg_B1zP8CWWk,6358
83
- ds_caselaw_marklogic_api_client-31.2.0.dist-info/LICENSE.md,sha256=fGMzyyLuQW-IAXUeDSCrRdsYW536aEWThdbpCjo6ZKg,1108
84
- ds_caselaw_marklogic_api_client-31.2.0.dist-info/METADATA,sha256=HNAET2YVbjajtXPpugLs70YeF_xXgM8NbIIEmcAJYU8,4251
85
- ds_caselaw_marklogic_api_client-31.2.0.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
86
- ds_caselaw_marklogic_api_client-31.2.0.dist-info/RECORD,,
83
+ ds_caselaw_marklogic_api_client-32.0.0.dist-info/LICENSE.md,sha256=fGMzyyLuQW-IAXUeDSCrRdsYW536aEWThdbpCjo6ZKg,1108
84
+ ds_caselaw_marklogic_api_client-32.0.0.dist-info/METADATA,sha256=HeIQpEv7f-NciSntkOJER1_Br9gpaaevWbHDnr9fG7k,4251
85
+ ds_caselaw_marklogic_api_client-32.0.0.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
86
+ ds_caselaw_marklogic_api_client-32.0.0.dist-info/RECORD,,