mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-07 17:32:52 +02:00
Update locationdata.py
This commit is contained in:
@@ -99,10 +99,6 @@ def get_weather(lat=0, lon=0):
|
||||
weather += line + "\n"
|
||||
#trim off last newline
|
||||
weather = weather[:-1]
|
||||
#trim to 200 characters and trim to the last space
|
||||
if len(weather) > 200:
|
||||
weather = weather[:200]
|
||||
weather = weather[:weather.rfind(" ")]
|
||||
|
||||
return weather
|
||||
|
||||
|
||||
Reference in New Issue
Block a user