Skip to content

Commit

Permalink
fix: Stop using dictionary unpacking for single members to fix failin…
Browse files Browse the repository at this point in the history
…g tests

Refs: OPMONDEV-181
  • Loading branch information
melbeltagy committed May 14, 2024
1 parent 77c4738 commit 3ec4841
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions anonymizer_module/metrics_statistics/statistics_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def collect_statistics(settings: dict, logger: Logger, output_only: bool = False

statistics: StatisticalData = {
**requests_counts,
**{'member_count': json.dumps(member_counts)},
**{'service_count': len(services)},
**{'service_request_count': json.dumps(services_counts)}
'member_count': json.dumps(member_counts),
'service_count': len(services),
'service_request_count': json.dumps(services_counts)
}
if output_only:
logger.info('Metrics statistical data:\n\n%s', pformat(statistics, indent=2, width=2))
Expand Down

0 comments on commit 3ec4841

Please sign in to comment.