documente_shared 0.1.33__py3-none-any.whl → 0.1.35__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/document_process.py +4 -1
- {documente_shared-0.1.33.dist-info → documente_shared-0.1.35.dist-info}/METADATA +1 -1
- {documente_shared-0.1.33.dist-info → documente_shared-0.1.35.dist-info}/RECORD +4 -4
- {documente_shared-0.1.33.dist-info → documente_shared-0.1.35.dist-info}/WHEEL +0 -0
|
@@ -34,6 +34,7 @@ class DocumentProcess(object):
|
|
|
34
34
|
enqueued_at: Optional[datetime] = None
|
|
35
35
|
started_at: Optional[datetime] = None
|
|
36
36
|
failed_at: Optional[datetime] = None
|
|
37
|
+
failed_reason: Optional[str] = None
|
|
37
38
|
completed_at: Optional[datetime] = None
|
|
38
39
|
metadata_items: Optional[List[DocumentProcessMetadata]] = None
|
|
39
40
|
|
|
@@ -137,6 +138,7 @@ class DocumentProcess(object):
|
|
|
137
138
|
'enqueued_at': self.enqueued_at.isoformat() if self.enqueued_at else None,
|
|
138
139
|
'started_at': self.started_at.isoformat() if self.started_at else None,
|
|
139
140
|
'failed_at': self.failed_at.isoformat() if self.failed_at else None,
|
|
141
|
+
'failed_reason': self.failed_reason,
|
|
140
142
|
'completed_at': self.completed_at.isoformat() if self.completed_at else None,
|
|
141
143
|
'metadata_items': [metadata.to_dict for metadata in self.metadata_items],
|
|
142
144
|
}
|
|
@@ -156,7 +158,7 @@ class DocumentProcess(object):
|
|
|
156
158
|
'status', 'metadata', 'file_path', 'file_bytes', 'category', 'sub_category',
|
|
157
159
|
'processed_csv_path', 'processed_csv_bytes', 'processed_xlsx_path', 'processed_metadata_path',
|
|
158
160
|
'processed_xlsx_bytes', 'processing_time', 'uploaded_at',
|
|
159
|
-
'enqueued_at', 'started_at', 'failed_at', 'completed_at',
|
|
161
|
+
'enqueued_at', 'started_at', 'failed_at', 'failed_reason', 'completed_at',
|
|
160
162
|
]
|
|
161
163
|
for _property in instance_properties:
|
|
162
164
|
property_value = getattr(new_instance, _property)
|
|
@@ -190,6 +192,7 @@ class DocumentProcess(object):
|
|
|
190
192
|
enqueued_at=get_datetime_from_data(input_datetime=data.get('enqueued_at')),
|
|
191
193
|
started_at=get_datetime_from_data(input_datetime=data.get('started_at')),
|
|
192
194
|
failed_at=get_datetime_from_data(input_datetime=data.get('failed_at')),
|
|
195
|
+
failed_reason=data.get('failed_reason'),
|
|
193
196
|
completed_at=get_datetime_from_data(input_datetime=data.get('completed_at')),
|
|
194
197
|
metadata_items=[
|
|
195
198
|
DocumentProcessMetadata.from_dict(metadata)
|
|
@@ -5,7 +5,7 @@ documente_shared/application/time_utils.py,sha256=XDH27cKgoTFO8ad1JgrxKaeT7sZ1fd
|
|
|
5
5
|
documente_shared/domain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
documente_shared/domain/base_enum.py,sha256=DojAfn-zQdtjtImeHUpBzE6TBTm07XrbMOdW3h8RVd8,1449
|
|
7
7
|
documente_shared/domain/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
-
documente_shared/domain/entities/document_process.py,sha256=
|
|
8
|
+
documente_shared/domain/entities/document_process.py,sha256=WtDz1WMVVgn2FvmTDRnQNVLl90Sp06P-ta4p8RTddfQ,7436
|
|
9
9
|
documente_shared/domain/entities/document_process_metadata.py,sha256=rBHkDkoKwrxReKtXIScU1vrCO_6bg2LwWhrtXMcQ8TA,2351
|
|
10
10
|
documente_shared/domain/enums.py,sha256=s3bFDkpplWvJWNpUwPOkC9a3OYUYsx8uTusN_FrzNQk,463
|
|
11
11
|
documente_shared/domain/repositories.py,sha256=KEYbJKsfrRkJBCIjXQA3S5jdNqE5lUcQuvHiZig4B6M,526
|
|
@@ -14,6 +14,6 @@ documente_shared/infrastructure/dynamo_repositories.py,sha256=WVyubQO8pUwm_y6VYU
|
|
|
14
14
|
documente_shared/infrastructure/dynamo_table.py,sha256=Lod8vwUCGX65SNH_8hvlpG6rRUYb4jfZqoFHD1YloAA,2096
|
|
15
15
|
documente_shared/infrastructure/s3_bucket.py,sha256=Nf4bHSC3TJeaKvOQSVtV1hG8dWqEZZnA-JWU0PNTw24,1940
|
|
16
16
|
documente_shared/infrastructure/sqs_queue.py,sha256=PSiTAnjXvQ-W-9mzLpH2UjbQJTvYkMiaxNaMecF-cR4,1505
|
|
17
|
-
documente_shared-0.1.
|
|
18
|
-
documente_shared-0.1.
|
|
19
|
-
documente_shared-0.1.
|
|
17
|
+
documente_shared-0.1.35.dist-info/METADATA,sha256=G_XmvO8Sciyg2UqOFU1YsXw-kPnDacy8Ih2fspFIOdI,640
|
|
18
|
+
documente_shared-0.1.35.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
19
|
+
documente_shared-0.1.35.dist-info/RECORD,,
|
|
File without changes
|