fix: poetry lock

This commit is contained in:
Jonathan Kössler 2024-07-30 10:45:37 +02:00
parent f3d0f24ea6
commit 50b7a877e9
3 changed files with 295 additions and 499 deletions

View File

@ -249,4 +249,4 @@ this workaround.
```
3. Manually adjust import statements in the generated files to match the package structure, e.g.:
`import EntryData_pb2 as EntryData__pb2` -> `import pyinfra.proto.EntryData_pb2 as EntryData__pb2`.
This does not work automatically because the generated files are not in the same directory as the proto files.
This does not work automatically because the generated files are not in the same directory as the proto files.

788
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -39,7 +39,7 @@ class DossierIdFileIdUploadPayload(BaseModel):
@property
def responseFilePath(self):
return f"{self.dossierId}/{self.fileId}.{self.responseFileExtension}"
class TenantIdDossierIdFileIdUploadPayload(BaseModel):
tenantId: str
@ -140,7 +140,7 @@ def upload_data_as_specified_in_message(storage: Storage, raw_payload: dict, dat
try:
if "tenantId" in raw_payload and "dossierId" in raw_payload:
payload = TenantIdDossierIdFileIdUploadPayload(**raw_payload)
elif "tenantId" not in raw_payload and "dossierId" in raw_payload:
elif "tenantId" not in raw_payload and "dossierId" in raw_payload:
payload = DossierIdFileIdUploadPayload(**raw_payload)
else:
payload = TargetResponseFilePathUploadPayload(**raw_payload)