@@ -126,11 +126,11 @@ def set_api_key(key):
126126
127127class request ():
128128 def weather (lat , lon ):
129- response = requests .get (f'https://api.openweathermap.org/data/3.0/onecall?lat={ lat } &lon={ lon } &units={ constants .units } &lang={ constants .system_locale } &appid={ os . environ . get ( "WEATHER_TOKEN" ) } ' )
129+ response = requests .get (f'https://api.openweathermap.org/data/3.0/onecall?lat={ lat } &lon={ lon } &units={ constants .units } &lang={ constants .system_locale } &appid=fe717eebc0eb0b5d9a534b6f6146bc15 ' )
130130 return response .json ()
131131
132132 def pollution (lat , lon ):
133- response = requests .get (f'http://api.openweathermap.org/data/2.5/air_pollution?lat={ lat } &lon={ lon } &units={ constants .units } &lang={ constants .system_locale } &appid={ os . environ . get ( "WEATHER_TOKEN" ) } ' )
133+ response = requests .get (f'http://api.openweathermap.org/data/2.5/air_pollution?lat={ lat } &lon={ lon } &units={ constants .units } &lang={ constants .system_locale } &appid=fe717eebc0eb0b5d9a534b6f6146bc15 ' )
134134 return response .json ()
135135
136136row_list = []
@@ -297,18 +297,18 @@ def get_search_result(searchbar, preferenesgroup, self, reverse_query):
297297 lat = reverse_query [0 ].get_text ()
298298 lon = reverse_query [1 ].get_text ()
299299
300- geocoding = requests .get (f'http://api.openweathermap.org/geo/1.0/reverse?lat={ lat } &lon={ lon } &limit={ global_variables .get_max_search_cities ()} &appid={ global_variables . get_api_key () } ' )
300+ geocoding = requests .get (f'http://api.openweathermap.org/geo/1.0/reverse?lat={ lat } &lon={ lon } &limit={ global_variables .get_max_search_cities ()} &appid=fe717eebc0eb0b5d9a534b6f6146bc15 ' )
301301 data = geocoding .json ()
302302
303303 elif type (reverse_query ) == bool :
304304 place_to_search = searchbar .get_text ()
305- geocoding = requests .get (f'http://api.openweathermap.org/geo/1.0/direct?q={ place_to_search } &limit={ global_variables .get_max_search_cities ()} &appid={ global_variables . get_api_key () } ' )
305+ geocoding = requests .get (f'http://api.openweathermap.org/geo/1.0/direct?q={ place_to_search } &limit={ global_variables .get_max_search_cities ()} &appid=fe717eebc0eb0b5d9a534b6f6146bc15 ' )
306306 data = geocoding .json ()
307307 if place_to_search == "" :
308308 return
309309 elif type (reverse_query ) == str :
310310 place_to_search = self
311- geocoding = requests .get (f'http://api.openweathermap.org/geo/1.0/direct?q={ place_to_search } &limit=1&appid={ global_variables . get_api_key () } ' )
311+ geocoding = requests .get (f'http://api.openweathermap.org/geo/1.0/direct?q={ place_to_search } &limit=1&appid=fe717eebc0eb0b5d9a534b6f6146bc15 ' )
312312 city = geocoding .json ()
313313 if len (city ) == 0 :
314314 location = f'Ferrara - IT (44.8372737; 11.6186451)'
0 commit comments