Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions helpers/reports.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
from collections import namedtuple

from shared.config import get_config
from shared.yaml import UserYaml

from services.yaml.reader import read_yaml_field

null = namedtuple("_", ["totals"])(None)


def get_totals_from_file_in_reports(report, path):
return report.get(path, null).totals
file = report.get(path)
return file.totals if file else None


def delete_archive_setting(commit_yaml: UserYaml | dict) -> bool:
Expand Down