staticwebapp-hhv-tormakrist.../api/hanyadikhetvan/__init__.py
Kristóf Torma dde07e1009
All checks were successful
continuous-integration/drone/push Build is passing
fuck me
2022-07-31 20:22:50 +02:00

13 lines
339 B
Python

from math import floor
from datetime import date
from urllib import request
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)