|
@@ -93,7 +93,7 @@ def main():
|
|
|
time_out_k = False
|
|
time_out_k = False
|
|
|
logging.warning(server_day_obj.cityid)
|
|
logging.warning(server_day_obj.cityid)
|
|
|
server_day_url = f"http://v0.yiketianqi.com/api?unescape=1&version=v91&appid=69334222&appsecret=2ME6U58N&cityid={server_day_obj.cityid}&ext=hours,aqi,life"
|
|
server_day_url = f"http://v0.yiketianqi.com/api?unescape=1&version=v91&appid=69334222&appsecret=2ME6U58N&cityid={server_day_obj.cityid}&ext=hours,aqi,life"
|
|
|
- server_day_response = requests.get(server_day_url, headers=headers, timeout=5)
|
|
|
|
|
|
|
+ server_day_response = requests.get(server_day_url, headers=headers, timeout=10)
|
|
|
server_ct += 1
|
|
server_ct += 1
|
|
|
try:
|
|
try:
|
|
|
if server_day_response.status_code == 200:
|
|
if server_day_response.status_code == 200:
|