Skip to content

Commit

Permalink
23034 fix config issues (bcgov#3006)
Browse files Browse the repository at this point in the history
* 23034 fix config issues

* fix lint issue
  • Loading branch information
kzdev420 authored Sep 25, 2024
1 parent c3f12ff commit be7dbf5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions jobs/involuntary-dissolutions/involuntary_dissolutions.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,7 @@ def stage_1_process(app: Flask): # pylint: disable=redefined-outer-name,too-man

# get first NUM_DISSOLUTIONS_ALLOWED number of businesses
num_dissolutions_allowed = Configuration.find_by_name(config_name='NUM_DISSOLUTIONS_ALLOWED').val
app.logger.debug(f'it is good before calling InvoluntaryDissolutionService: {num_dissolutions_allowed}')
businesses_eligible = InvoluntaryDissolutionService.get_businesses_eligible(num_dissolutions_allowed)
app.logger.debug(f'it is good before calling InvoluntaryDissolutionService: {businesses_eligible}')

# get the MAX_DISSOLUTIONS_ALLOWED number of businesses
max_dissolutions_allowed = Configuration.find_by_name(config_name='MAX_DISSOLUTIONS_ALLOWED').val
Expand Down Expand Up @@ -381,8 +379,6 @@ async def run(application: Flask, qsm: QueueService): # pylint: disable=redefin
with application.app_context():
flag_on = flags.is_on('enable-involuntary-dissolution')
application.logger.debug(f'enable-involuntary-dissolution flag on: {flag_on}')
auth_url = application.config.get('AUTH_SVC_URL')
application.logger.debug(f'Get the AUTH_URL from the config: {auth_url}')
if flag_on:
# check if batch can be run today
stage_1_valid, stage_2_valid, stage_3_valid = check_run_schedule()
Expand Down
2 changes: 0 additions & 2 deletions legal-api/src/legal_api/services/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,6 @@ def get_account_by_affiliated_identifier(cls, identifier: str):
def get_affiliations(cls, account: int):
"""Affiliate a business to an account."""
auth_url = current_app.config.get('AUTH_SVC_URL')
current_app.logger.debug(f'AUTH_SVC_URL: {auth_url}')

account_svc_affiliate_url = f'{auth_url}/orgs/{account}/affiliations'

token = cls.get_bearer_token()
Expand Down
2 changes: 0 additions & 2 deletions legal-api/src/legal_api/services/involuntary_dissolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"""This provides the service for involuntary dissolution."""
from dataclasses import dataclass
from typing import Final, Tuple
from flask import current_app

from sqlalchemy import and_, exists, func, not_, or_, select, text
from sqlalchemy.orm import aliased
Expand Down Expand Up @@ -320,7 +319,6 @@ def _get_filtered_entities(accounts):

for org_id in accounts:
entities = AccountService.get_affiliations(int(org_id))
current_app.logger.debug(f'after call the Auth_api: {entities}')

for entity in entities:
identifier = entity.get('businessIdentifier')
Expand Down

0 comments on commit be7dbf5

Please sign in to comment.