Skip to content
Snippets Groups Projects
Commit 5e5d5980 authored by Martin Mareš's avatar Martin Mareš
Browse files

Zobecněné body: Bugfix parseru

parent 24f1fa9c
No related branches found
No related tags found
1 merge request!134Prázdné protokoly
......@@ -167,7 +167,7 @@ def parse_gen_points(
) -> Tuple[GPAction, Optional[decimal.Decimal], Optional[str]]:
"""Zobecnění parse_points(). Naparsuje generalizované body používané při editaci.
Vrátí typ hodnocení (GPAction), body (decimal.Decimal nebo None) a případný error."""
gen_points = gen_points.upper()
gen_points = gen_points.upper() if gen_points is not None else None
if gen_points is None or gen_points == 'X':
return GPAction.no_solution, None, None
elif gen_points == "" or gen_points == '?':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment