staticwebapp-hhv-tormakrist.../api/hanyadikhetvan/__init__.py
Torma Kristóf 490f36d178
All checks were successful
continuous-integration/drone/push Build is passing
update start date in functions
2022-05-22 12:48:45 +02:00

12 lines
311 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, 2, 7)
currentweek = floor((date.today() - startdate).days / 7)
return func.HttpResponse(
str(currentweek),
status_code=200)