#5: Sending status code in the website error notification
This commit is contained in:
		
							parent
							
								
									a1aed9f721
								
							
						
					
					
						commit
						898a0ba42d
					
				
							
								
								
									
										4
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								main.py
									
									
									
									
									
								
							| 
						 | 
					@ -36,8 +36,8 @@ def runPings():
 | 
				
			||||||
		else:
 | 
							else:
 | 
				
			||||||
			resTuple = (website['website_id'], False, statusCode)
 | 
								resTuple = (website['website_id'], False, statusCode)
 | 
				
			||||||
			telegram.sendMessage(users[website['admin_id']]['telegram_id'], (
 | 
								telegram.sendMessage(users[website['admin_id']]['telegram_id'], (
 | 
				
			||||||
				'Your website {} ({}) is not reachable at the moment. Maybe give it a check.'
 | 
									'Your website {} ({}) is not reachable at the moment (Code {}). Maybe give it a check.'
 | 
				
			||||||
			).format(website['name'], website['url']))
 | 
								).format(website['name'], website['url'], statusCode))
 | 
				
			||||||
		websitePingResults.append(resTuple)
 | 
							websitePingResults.append(resTuple)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	cur = conn.cursor()
 | 
						cur = conn.cursor()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user