Skip to content

Commit

Permalink
Correctly iterate over the nutritrion dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandgeider committed Nov 15, 2015
1 parent ffe8f35 commit 2c52c3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wger/nutrition/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ def get_nutritional_values(self, use_metric=True):

# If necessary, convert weight units
if not use_metric:
for key, value in nutritional_info.iteritems():
for key, value in nutritional_info.items():

# Energy is not a weight!
if key == 'energy':
Expand Down
1 change: 1 addition & 0 deletions wger/software/templates/changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ <h4>2015-XX-XX</h4>
</li>
<li>
Other improvements and bugfixes
<a href="https://github.com/rolandgeider/wger/issues/242">#242</a>
<a href="https://github.com/rolandgeider/wger/issues/238">#238</a>
<a href="https://github.com/rolandgeider/wger/issues/236">#236</a>
<a href="https://github.com/rolandgeider/wger/issues/206">#206</a>
Expand Down

0 comments on commit 2c52c3d

Please sign in to comment.