Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Commit ecddf87

Browse files
committed
feat: add unit test class for Util_Functions.py
1 parent 34aaa77 commit ecddf87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/API Based Weather Report/Util_Functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def convert_temperature(str_temperature_kelvin, temperature_unit):
6060
"""
6161
# Convert strings to integers
6262
try:
63-
temperature_k = int(str_temperature_kelvin)
63+
temperature_k = float(str_temperature_kelvin)
6464
except ValueError:
6565
return "API temperature data format error!"
6666

0 commit comments

Comments
 (0)