Skip to content

Commit

Permalink
fixed a bug where the user was unable to insert classifications for s…
Browse files Browse the repository at this point in the history
…pecific schemes
  • Loading branch information
MarvinDo committed Nov 2, 2023
1 parent 6472921 commit 59686a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/frontend_celery/webapp/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ <h4>Overview</h4>

<div class="bst bsb">
<h4>Changelog</h4>
<div class="underline">v 1.4.1 (02.11.2023)</div>
<div>
Bugfixes:
<ul>
<li>Fixed a bug where the user was unable to insert classifications by the new ClinGen criteria</li>
</ul>
</div>
<div class="underline">v 1.4 (27.10.2023)</div>
<div>
General changes:
Expand Down
3 changes: 1 addition & 2 deletions src/frontend_celery/webapp/variant/variant_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,9 @@ def extract_criteria_from_request(request_obj, scheme_id, conn: Connection):
# criteria dict from the extract criteria request function is the input
def get_scheme_class(criteria_dict, scheme_type):
all_criteria_strengths = []
keyval = 'strength'
if scheme_type == 'task-force':
keyval = 'criterium_name'
elif scheme_type == 'acmg':
keyval = 'strength'
for key in criteria_dict:
all_criteria_strengths.append(criteria_dict[key][keyval])
all_criteria_string = '+'.join(all_criteria_strengths)
Expand Down

0 comments on commit 59686a4

Please sign in to comment.