Skip to content

Commit

Permalink
Spectrum type default value fix
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed May 4, 2021
1 parent b474d09 commit fe842aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mp_api/routes/xas/query_operator.py
Expand Up @@ -18,7 +18,7 @@ def query(
query = {
"edge": edge.value if edge else None,
"absorbing_element": str(absorbing_element) if absorbing_element else None,
"spectrum_type": str(spectrum_type.value),
"spectrum_type": str(spectrum_type.value) if spectrum_type else None,
}
query = {k: v for k, v in query.items() if v}

Expand Down

0 comments on commit fe842aa

Please sign in to comment.