Skip to content

Commit 3e34f8d

Browse files
committed
fix fstring
1 parent 82229c8 commit 3e34f8d

File tree

1 file changed

+2
-2
lines changed
  • Xteink_X4_Examples/Xteink_X4_Weather

1 file changed

+2
-2
lines changed

Xteink_X4_Examples/Xteink_X4_Weather/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ def update_today(data):
148148
w = data["daily"]["weather_code"][0]
149149
today_icon[0] = next(i for i, t in enumerate(WMO_CODE_TO_ICON) if w in t)
150150
# temperatures
151-
today_temp.text = f"H: {temperature_text(data["daily"]["temperature_2m_max"][0])} "
152-
today_temp.text += f"L: {temperature_text(data["daily"]["temperature_2m_min"][0])}"
151+
today_temp.text = f"H: {temperature_text(data['daily']['temperature_2m_max'][0])} "
152+
today_temp.text += f"L: {temperature_text(data['daily']['temperature_2m_min'][0])}"
153153
# sunrise/set
154154
sr = time.localtime(data["daily"]["sunrise"][0] + data["utc_offset_seconds"])
155155
ss = time.localtime(data["daily"]["sunset"][0] + data["utc_offset_seconds"])

0 commit comments

Comments
 (0)