2022-05-21 22:53:54 +02:00
|
|
|
from math import floor
|
|
|
|
from datetime import date
|
2022-07-31 19:32:13 +02:00
|
|
|
from urllib import request
|
2022-05-21 22:53:54 +02:00
|
|
|
import azure.functions as func
|
2022-07-31 19:56:27 +02:00
|
|
|
import requests
|
2022-05-21 22:53:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
def main(req: func.HttpRequest) -> func.HttpResponse:
|
2022-06-08 23:05:37 +02:00
|
|
|
startdate = date(2022, 8, 29)
|
2022-05-21 22:53:54 +02:00
|
|
|
currentweek = floor((date.today() - startdate).days / 7)
|
2022-07-31 20:20:20 +02:00
|
|
|
requests.get("https://tormakristof.eu/")
|
2022-05-21 22:53:54 +02:00
|
|
|
return func.HttpResponse(
|
|
|
|
str(currentweek),
|
|
|
|
status_code=200)
|