Remove useless out
This commit is contained in:
		
							
								
								
									
										3
									
								
								dwmbar
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								dwmbar
									
									
									
									
									
								
							| @ -99,7 +99,6 @@ async def weather(): | |||||||
| 	CITY='Tyumen' | 	CITY='Tyumen' | ||||||
|  |  | ||||||
| 	while True: | 	while True: | ||||||
| 		print('w s') |  | ||||||
| 		i = requests.get(f"https://wttr.in/{CITY}?format=%c").text.strip() #.encode('utf-8')[0:3].decode('utf-8') | 		i = requests.get(f"https://wttr.in/{CITY}?format=%c").text.strip() #.encode('utf-8')[0:3].decode('utf-8') | ||||||
| 		t = requests.get(f"https://wttr.in/{CITY}?format=%t").text.strip() | 		t = requests.get(f"https://wttr.in/{CITY}?format=%t").text.strip() | ||||||
| 		w = requests.get(f"https://wttr.in/{CITY}?format=j2").json()['current_condition'][0]['windspeedKmph'].strip() | 		w = requests.get(f"https://wttr.in/{CITY}?format=j2").json()['current_condition'][0]['windspeedKmph'].strip() | ||||||
| @ -108,7 +107,7 @@ async def weather(): | |||||||
| 			weather = f"^b{COLOR2}^^c{COLOR1}^ {w} km/h ^b{COLOR1}^^c{COLOR2}^ {i} ^c{COLOR1}^^b{COLOR2}^ {t} ^d^" | 			weather = f"^b{COLOR2}^^c{COLOR1}^ {w} km/h ^b{COLOR1}^^c{COLOR2}^ {i} ^c{COLOR1}^^b{COLOR2}^ {t} ^d^" | ||||||
| 		else: | 		else: | ||||||
| 			weather = f"[{w} km/h | {i} | {t}]" | 			weather = f"[{w} km/h | {i} | {t}]" | ||||||
| 		print('w e') |  | ||||||
| 		await asyncio.sleep(60 * 30) | 		await asyncio.sleep(60 * 30) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user