Commit 3b3b99f0 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed bad python.

parent d639b30e
......@@ -192,7 +192,7 @@ def get_materials(page, per_page):
user_elements = search_by.get('element')
elements = None
if user_formula is not None:
parts = [element if elementreformat_user_formula(user_formula)
parts = reformat_user_formula(user_formula)
parts = [part if _atom_label_with_number.match(part) else '%s1' % part for part in parts]
if exclusive:
match_query['formula_reduced_keyword'] = dict(query="".join(sort_elements(elements)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment