Skip to content

Commit 44c0fcf

Browse files
committed
πŸ› fix: κ³„μ•½μ„œ PDF buyer sign λ³€μˆ˜λͺ… μˆ˜μ •
1 parent 5136ab3 commit 44c0fcf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

β€Žapp/main.pyβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ class SaveFinalContractDTO(BaseModel):
589589
owner_sign1_base64: Optional[str] = Field(None, alias="ownerSign1Base64", description="μž„λŒ€μΈ μ„œλͺ…1 Base64 (λ―Έλ‚©μ„ΈκΈˆ μžˆμ„ λ•Œ)")
590590
owner_sign2_base64: Optional[str] = Field(None, alias="ownerSign2Base64", description="μž„λŒ€μΈ μ„œλͺ…2 (μ„ μˆœμœ„ ν™•μ •μΌμž μžˆμ„ λ•Œ)")
591591
owner_sign3_base64: Optional[str] = Field(None, alias="ownerSign3Base64", description="μž„λŒ€μΈ μ„œλͺ…3 (κΈ°λ³Έ)")
592-
buyer_sign1_base64: Optional[str] = Field(None, alias="buyerSign1Base64", description="μž„μ°¨μΈ μ„œλͺ… Base64")
592+
buyer_sign_base64: Optional[str] = Field(None, alias="buyerSignBase64", description="μž„μ°¨μΈ μ„œλͺ… Base64")
593593

594594
model_config = ConfigDict(populate_by_name=True)
595595

@@ -2193,8 +2193,8 @@ def safe_b64decode(b64_string):
21932193
logger.info("Decoded owner signature 3 (main)")
21942194

21952195
# μž„μ°¨μΈ μ„œλͺ…
2196-
if contract_data.buyer_sign1_base64:
2197-
decoded = safe_b64decode(contract_data.buyer_sign1_base64)
2196+
if contract_data.buyer_sign_base64:
2197+
decoded = safe_b64decode(contract_data.buyer_sign_base64)
21982198
if decoded:
21992199
images['buyerSign1'] = decoded
22002200
logger.info("Decoded buyer signature 1")

β€Žcontract/pdf_replacer.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ def _prepare_replacements(self, contract_data: Dict[str, Any]) -> Dict[str, Unio
749749
"${ownerSign1}": "" if has_tax_arrears else "", # λ―Έλ‚© μ„ΈκΈˆ μžˆμ„ λ•Œλ§Œ μ„œλͺ…1 (μ΄λ―Έμ§€λ‘œ λŒ€μ²΄)
750750
"${ownerSign2}": "" if has_prior_fixed_date else "", # μ„ μˆœμœ„ ν™•μ •μΌμž μžˆμ„ λ•Œλ§Œ μ„œλͺ…2 (μ΄λ―Έμ§€λ‘œ λŒ€μ²΄)
751751
"${ownerSign3}": "", # κΈ°λ³Έ μ„œλͺ…3 (μ΄λ―Έμ§€λ‘œ λŒ€μ²΄)
752-
"${buyerSign1}": "", # μž„μ°¨μΈ μ„œλͺ… (μ΄λ―Έμ§€λ‘œ λŒ€μ²΄)
752+
"${buyerSign}": "", # μž„μ°¨μΈ μ„œλͺ… (μ΄λ―Έμ§€λ‘œ λŒ€μ²΄)
753753
})
754754

755755
return replacements

0 commit comments

Comments
Β (0)