Skip to content

Commit

Permalink
fix missing languages
Browse files Browse the repository at this point in the history
  • Loading branch information
mzuenni committed Jan 10, 2025
1 parent 28fcb06 commit f157bb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def _read_settings(self):
try:
yamldata = read_yaml_settings(yaml_path)
except ruamel.yaml.scanner.ScannerError:
fatal('Make sure problem.yaml does not contain any more {% ... %}.')
fatal(f'Make sure {self.name}/problem.yaml does not contain any more {{% ... %}}.')
else:
yamldata = read_yaml_settings(yaml_path)

Expand Down
3 changes: 2 additions & 1 deletion bin/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def problem_stats(problems):
if config['name'] in names:
globs = config['files'].split() or []
paths += [f'submissions/accepted/{glob}' for glob in globs]
stats.append((column, list(set(paths)), 1))
if paths:
stats.append((column, list(set(paths)), 1))

headers = ['problem', *(h[0] for h in stats), ' comment']
cumulative = [0] * (len(stats))
Expand Down

0 comments on commit f157bb3

Please sign in to comment.