Skip to content

Commit

Permalink
Merge pull request #410 from PanDAWMS/tania_dev
Browse files Browse the repository at this point in the history
report | fix typo errors
  • Loading branch information
tkorchug authored Nov 21, 2024
2 parents b3f28c9 + 4b10315 commit 6120c2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/reports/ErrorClassificationReport.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, query=None):
query[timeparamname + '__castdate__range'] = query['modificationtime__castdate__range']
del query['modificationtime__castdate__range']
self.query_errors = copy.deepcopy(query)
self.extra_query = '(' + ' or '.join([f'({k['error']} is not null and {k['error']} > 0)' for k in list(const.JOB_ERROR_CATEGORIES)]) + ')'
self.extra_query = "(" + " or ".join([f"({k['error']} is not null and {k['error']} > 0)" for k in list(const.JOB_ERROR_CATEGORIES)]) + ")"
self.jobs = []
_logger.debug(self.query_jobs, self.query_errors, self.extra_query)

Expand Down Expand Up @@ -49,7 +49,7 @@ def prepare_report(self):
for j in self.jobs:
for k in list(const.JOB_ERROR_CATEGORIES):
if k['error'] in j and j[k['error']] is not None and j[k['error']] != '' and int(j[k['error']]) > 0:
error_category = f'{k['name']}:{j[k['error']]}'
error_category = f"{k['name']}:{j[k['error']]}"
if error_category not in error_code_dist:
error_code_dist[error_category] = 0
error_code_dist[error_category] += 1
Expand Down

0 comments on commit 6120c2a

Please sign in to comment.