Fix run_report.py

This commit is contained in:
Bartekfiolek 2023-11-30 21:30:32 +01:00
parent b01415db32
commit 47c34989bc

View File

@ -81,7 +81,7 @@ def execute_all_tasks(tasks):
def get_task_points(dir):
with open(Path(dir, 'description.txt')) as f_in:
with open(Path(dir, 'description.txt'), encoding='utf-8') as f_in:
lines = f_in.readlines()
points = int([x for x in lines if x.startswith('POINTS')][0].split(' ')[-1].rstrip())
return points