Skip to content

Commit

Permalink
Pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PSNAppz committed Nov 20, 2024
1 parent adbaa8c commit 34e7de7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ def id_generation_request_worker(registrant_id: str):

# Update res_partner.ref_id with the MOSIP Generated ID
res_partner = (
session.query(ResPartner)
.filter(ResPartner.id == registrant_id)
.first()
session.query(ResPartner).filter(ResPartner.id == registrant_id).first()
)

if not res_partner:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ def id_generation_update_worker(registrant_id: str):

# Fetch res_partner to get the UIN
res_partner = (
session.query(ResPartner)
.filter(ResPartner.id == registrant_id)
.first()
session.query(ResPartner).filter(ResPartner.id == registrant_id).first()
)

if not res_partner or not res_partner.ref_id:
Expand Down

0 comments on commit 34e7de7

Please sign in to comment.