Pass now to get_data()
This commit is contained in:
		
							parent
							
								
									aa0ac49152
								
							
						
					
					
						commit
						9f3042d72e
					
				| 
						 | 
				
			
			@ -15,9 +15,9 @@ app.debug = True
 | 
			
		|||
@app.route("/")
 | 
			
		||||
def index() -> str:
 | 
			
		||||
    """Index page."""
 | 
			
		||||
    data = get_data()
 | 
			
		||||
    now = datetime.now()
 | 
			
		||||
    today = now.date()
 | 
			
		||||
    data = get_data(now)
 | 
			
		||||
    now_utc = datetime.now(timezone.utc)
 | 
			
		||||
 | 
			
		||||
    def days_hours(when: datetime) -> str:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue