performance - not splitting again and again with new line

This commit is contained in:
David Bures
2024-06-26 13:00:38 -07:00
parent 436d42a72f
commit 4d92cf83a7
-1
View File
@@ -103,7 +103,6 @@ def get_weather(lat=0, lon=0, unit=0):
# shrink the text
line = replace_weather(row.text)
# only grab a few days of weather
print(f"weather: {index}")
weather += line + "\n"
if index >= DAYS_OF_WEATHER-1:
break