Skip to content

Commit af85aa6

Browse files
committed
renamed vars
1 parent 9adcbdd commit af85aa6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tgbot_weather/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
@dp.message_handler(commands=['start'])
2020
async def process_start_command(message: types.Message):
21-
greeting = f"Првиет, {message.from_user.first_name}!\nКак пододка?"
21+
greeting = f"Првиет, {message.from_user.first_name}!\nКак погодка?"
2222
await message.reply(greeting)
2323

2424

tgbot_weather/weather_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ def get_api_url(lat, lon):
1111
api_key_file = open('/Users/narek/.pass/.openweather')
1212
api_key = api_key_file.read().rstrip('\n')
1313

14-
api_path = "https://api.openweathermap.org/data/2.5/weather"
14+
api_host = "https://api.openweathermap.org/data/2.5/weather"
1515
api_params = f"units=metric&lat={lat}&lon={lon}&appid={api_key}"
16-
api_url = f"{api_path}?{api_params}"
16+
api_url = f"{api_host}?{api_params}"
1717

1818
return api_url
1919

0 commit comments

Comments
 (0)