documente_shared 0.1.90__py3-none-any.whl → 0.1.92__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 documente_shared might be problematic. Click here for more details.
- documente_shared/domain/entities/processing_case.py +15 -0
- {documente_shared-0.1.90.dist-info → documente_shared-0.1.92.dist-info}/METADATA +1 -1
- {documente_shared-0.1.90.dist-info → documente_shared-0.1.92.dist-info}/RECORD +4 -4
- {documente_shared-0.1.90.dist-info → documente_shared-0.1.92.dist-info}/WHEEL +0 -0
|
@@ -57,6 +57,7 @@ class ProcessingCase(object):
|
|
|
57
57
|
|
|
58
58
|
def deleted(self):
|
|
59
59
|
self.status = ProcessingStatus.DELETED
|
|
60
|
+
|
|
60
61
|
|
|
61
62
|
def __eq__(self, other: 'ProcessingCase') -> bool:
|
|
62
63
|
if not other:
|
|
@@ -102,6 +103,20 @@ class ProcessingCase(object):
|
|
|
102
103
|
]
|
|
103
104
|
return persist_data
|
|
104
105
|
|
|
106
|
+
@property
|
|
107
|
+
def procesable_items(self) -> List[ProcessingCaseItem]:
|
|
108
|
+
return [
|
|
109
|
+
item for item in self.items
|
|
110
|
+
if item.status in [
|
|
111
|
+
ProcessingStatus.PENDING,
|
|
112
|
+
ProcessingStatus.ENQUEUED,
|
|
113
|
+
]
|
|
114
|
+
]
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def has_procesable_items(self) -> bool:
|
|
118
|
+
return len(self.procesable_items) > 0
|
|
119
|
+
|
|
105
120
|
@classmethod
|
|
106
121
|
def from_dict(cls, data: dict) -> 'ProcessingCase':
|
|
107
122
|
return cls(
|
|
@@ -15,7 +15,7 @@ documente_shared/domain/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
|
|
|
15
15
|
documente_shared/domain/entities/document.py,sha256=AthTUyA-QZE3WAT7lMoKVr_Z8mO_3qERuCnZge0DTLQ,12595
|
|
16
16
|
documente_shared/domain/entities/document_metadata.py,sha256=ygyFIC5qwxlm8DUM5kvVFny9zJfPQS8vNLM2br5XsQ8,2353
|
|
17
17
|
documente_shared/domain/entities/in_memory_result.py,sha256=0sLNUrovKFQx4M-E9e4DrAiVgch2i4AKA-9BQBRaeI8,1482
|
|
18
|
-
documente_shared/domain/entities/processing_case.py,sha256=
|
|
18
|
+
documente_shared/domain/entities/processing_case.py,sha256=3zq70K9bMhhWDX-r2sGDDzcSj8dkfE0Vp_2G9YLKTBE,5349
|
|
19
19
|
documente_shared/domain/entities/processing_case_filters.py,sha256=harKyu7QEuL1bI_Z8_UxkVCMo5r9vHeNHyi_Ja07vjs,1953
|
|
20
20
|
documente_shared/domain/entities/processing_case_item.py,sha256=U_g99AJdlRRJpJ0NPfmXzlr2x04l5hc53oNLxx_Q7XQ,9734
|
|
21
21
|
documente_shared/domain/entities/processing_case_item_filters.py,sha256=R_AvDCB496Lww1qn2OwtltqULKE3IpcJB0ejnmRkg7Q,2009
|
|
@@ -48,6 +48,6 @@ documente_shared/infrastructure/services/http_scaling.py,sha256=cIo-61nfIwbtO86E
|
|
|
48
48
|
documente_shared/infrastructure/sqs_queue.py,sha256=KZWeHZ9zmXmrxoNpOQX7GEdDhZ1knbPXgwSwFwJblGg,1504
|
|
49
49
|
documente_shared/presentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
50
50
|
documente_shared/presentation/presenters.py,sha256=GGAEwefmjCIVepsUA2oZOVLxXbhhiISPM0Jgt6dT6O0,423
|
|
51
|
-
documente_shared-0.1.
|
|
52
|
-
documente_shared-0.1.
|
|
53
|
-
documente_shared-0.1.
|
|
51
|
+
documente_shared-0.1.92.dist-info/METADATA,sha256=BS6MCzhVgiZcUQN6mHTElvYKrun2avuFinp_OKb7RcM,920
|
|
52
|
+
documente_shared-0.1.92.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
53
|
+
documente_shared-0.1.92.dist-info/RECORD,,
|
|
File without changes
|