Skip to content

Commit

Permalink
Syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jsantner committed Jun 14, 2018
1 parent 0231f2a commit e07c89a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyked/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ def _validate_isvalid_quantity(self, isvalid_quantity, field, value):
"""
if type(value[0]) is str:
values = value[0].split()
if temp in values for temp in ['degC', 'degF', 'celsius', 'fahrenheit']:
if any([temp in values for temp in
['degC', 'degF', 'celsius', 'fahrenheit']]):
value_alt = [float(values[0])] + values[1:]
quantity = Q_(*value_alt)
else:
Expand Down

0 comments on commit e07c89a

Please sign in to comment.