All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			
		
			
				
	
	
		
			15 lines
		
	
	
		
			399 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			399 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from math import floor
 | 
						|
from datetime import date
 | 
						|
from urllib import request
 | 
						|
import azure.functions as func
 | 
						|
import requests
 | 
						|
 | 
						|
 | 
						|
def main(req: func.HttpRequest) -> func.HttpResponse:
 | 
						|
    startdate = date(2022, 8, 29)
 | 
						|
    currentweek = floor((date.today() - startdate).days / 7)
 | 
						|
    request.get("https://tormakristof.eu/")
 | 
						|
    return func.HttpResponse(
 | 
						|
        str(currentweek),
 | 
						|
        status_code=200)
 |