functionapp-hanyadikhetvan-.../hanyadikhetvan/__init__.py
Torma Kristóf c1bb9fce4f
All checks were successful
continuous-integration/drone/push Build is passing
update start
2022-06-08 23:06:07 +02:00

12 lines
312 B
Python

from math import floor
from datetime import date
import azure.functions as func
def main(req: func.HttpRequest) -> func.HttpResponse:
startdate = date(2022, 8, 29)
currentweek = floor((date.today() - startdate).days / 7)
return func.HttpResponse(
str(currentweek),
status_code=200)