Skip to content

Commit

Permalink
Small lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 committed May 31, 2024
1 parent dcaf68d commit 2a3214a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
8 changes: 0 additions & 8 deletions bcol-api/src/bcol_api/utils/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,3 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""Bring in the Tracer."""
# from sbc_common_components.tracing.api_tracer import ApiTracer
# from sbc_common_components.tracing.api_tracing import ApiTracing


# initialize tracer
# API_TRACER = ApiTracer('BCOL API Services')
# tracing = ApiTracing( # pylint: disable=invalid-name; lower case name as used by convention in most Flask apps
# API_TRACER.tracer)
2 changes: 1 addition & 1 deletion pay-api/src/pay_api/services/statement_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def update_statement_settings(auth_account_id: str, frequency: str):

max_frequency = StatementSettings._find_longest_frequency(current_statements_settings.frequency, frequency)
last_date = StatementSettings._get_end_of(max_frequency)
current_statements_settings.to_date = last_date # TODO Should be date not date time?
current_statements_settings.to_date = last_date
current_statements_settings.save()

new_statements_settings = StatementSettingsModel(frequency=frequency,
Expand Down
4 changes: 2 additions & 2 deletions report-api/src/api/utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ def setup_logging(conf):
"""Create the services logger."""
if conf and path.isfile(conf):
logging.config.fileConfig(conf)
print(f'Configure logging, from conf:{conf}', file=sys.stdout)
print(f'Configure logging, from conf: {conf}', file=sys.stdout)
else:
print(f'Unable to configure logging, attempted conf:{conf}', file=sys.stderr)
print(f'Unable to configure logging, attempted conf: {conf}', file=sys.stderr)

0 comments on commit 2a3214a

Please sign in to comment.