Skip to content

Commit

Permalink
pylint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jxio committed Mar 14, 2024
1 parent 976c98c commit e6f03a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jobs/payment-jobs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-e git+https://github.com/bcgov/sbc-common-components.git@5807c201b057875f9061f60b408ab765ebaa4235#egg=sbc_common_components&subdirectory=python
-e git+https://github.com/bcgov/sbc-pay.git@e0bc6979b761347b32628a28fa1489e919e5d806#egg=pay_api&subdirectory=pay-api
-e git+https://github.com/Jxio/sbc-pay.git@7bb0a0a09649355f3c54739731c986e8b8865202#egg=pay_api&subdirectory=pay-api
-e git+https://github.com/thorwolpert/flask-jwt-oidc.git@40cc811ccf70e838c5f7522fe8d83b7e58853539#egg=flask_jwt_oidc
Flask-Caching==2.1.0
Flask-Cors==4.0.0
Expand Down
3 changes: 1 addition & 2 deletions jobs/payment-jobs/tasks/ejv_partner_distribution_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def _get_partners_by_batch_type(cls, batch_type) -> List[CorpTypeModel]:
filter(DistributionCodeLinkModel.distribution_code_id.in_(fee_distribution_codes)).all()

return db.session.query(CorpTypeModel).filter(CorpTypeModel.code.in_(corp_type_codes)).all()

@classmethod
def _process_items(cls, items, ejv_header_model, sequence, link_type):
for item in items:
Expand All @@ -351,4 +351,3 @@ def _process_items(cls, items, ejv_header_model, sequence, link_type):
sequence += 1
item.disbursement_status_code = DisbursementStatus.UPLOADED.value
return sequence

2 changes: 1 addition & 1 deletion jobs/payment-jobs/tasks/ejv_payment_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def _create_ejv_file_for_gov_account(cls, batch_type: str): # pylint:disable=to
for inv in invoices:
current_app.logger.debug(f'Creating EJV Invoice Link for invoice id: {inv.id}')
# Create Ejv file link and flush
ejv_invoice_link = EjvLinkModel(link_id=inv.id, link_type='invoice', ejv_header_id=ejv_header_model.id,
ejv_invoice_link = EjvLinkModel(link_id=inv.id, link_type='invoice', ejv_header_id=ejv_header_model.id,
disbursement_status_code=DisbursementStatus.UPLOADED.value,
sequence=sequence)
db.session.add(ejv_invoice_link)
Expand Down

0 comments on commit e6f03a8

Please sign in to comment.