Skip to content

Commit

Permalink
fix: use dict .items() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyvy-vi committed Jul 10, 2021
1 parent 844a7f2 commit 873dd08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/cogs/utils/embeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def weather_embed(loc, q, author):
weather_data['\nDescription'] = w_obj['description']

col = weather_embed_color(str(w_obj['id']))
weather_data = [f'**{field}**: {weather_data[field]}' for field in weather_data]
weather_data = [f'**{field}**: {data}' for field, data in weather_data.items()]
embed = Embed(title='Weather',
description=f'displaying weather of {loc}',
color=col)
Expand Down

0 comments on commit 873dd08

Please sign in to comment.