Skip to content

Commit 57b5630

Browse files
Update weather.py
1 parent bb69c29 commit 57b5630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

weather application/weather.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def weather_report(self):
2020
messagebox.showerror('Error','City Not Found !!')
2121
else:
2222
self.location['text'] = self.data['name'] + "," + self.data['sys']['country']
23-
self.c = self.data['main']['temp_max'] - 273.15
23+
self.c = int(self.data['main']['temp_max'] - 273.15)
2424
self.f = self.c*9/5+32
2525
self.weather['text'] = self.data['weather'][0]['main']
2626
self.weather['font'] = ('verdana',20,'bold')

0 commit comments

Comments
 (0)