Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
encyclopedia-physics-engine
Commits
3b3b99f0
Commit
3b3b99f0
authored
May 02, 2019
by
Markus Scheidgen
Browse files
Fixed bad python.
parent
d639b30e
Changes
1
Hide whitespace changes
Inline
Side-by-side
rest-api-service/app/api_v1_0/routes.py
View file @
3b3b99f0
...
...
@@ -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
element
reformat_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
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment