| 
						
						
							
								
							
						
						
					 | 
					@ -35,6 +35,7 @@ class WebPushService(): | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        # Setting the application instance         | 
					 | 
					 | 
					        # Setting the application instance         | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        self.app = app | 
					 | 
					 | 
					        self.app = app | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        self.app.add_url_rule('/web-push/regenerate_vapid', view_func=self.regenerate_vapid, methods=['POST']) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        # Setting the database URI for the application | 
					 | 
					 | 
					        # Setting the database URI for the application | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        db_uri = os.getenv('SQLALCHEMY_DATABASE_URI', 'sqlite:////app/instance/data/webpush.db') | 
					 | 
					 | 
					        db_uri = os.getenv('SQLALCHEMY_DATABASE_URI', 'sqlite:////app/instance/data/webpush.db') | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -194,9 +195,7 @@ class WebPushService(): | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            time.sleep(24 * 60 * 60) | 
					 | 
					 | 
					            time.sleep(24 * 60 * 60) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    @staticmethod | 
					 | 
					 | 
					    def regenerate_vapid(self) -> Tuple[str, int]: | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
					    @app.route('/web-push/regenerate_vapid', methods=['POST']) | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    def regenerate_vapid() -> Tuple[str, int]: | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        """ | 
					 | 
					 | 
					        """ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        Endpoint to regenerate VAPID keys. | 
					 | 
					 | 
					        Endpoint to regenerate VAPID keys. | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |