This commit is contained in:
11
api/hanyadikhetvan/__init__.py
Normal file
11
api/hanyadikhetvan/__init__.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from math import floor
|
||||
from datetime import date
|
||||
import azure.functions as func
|
||||
|
||||
|
||||
def main(req: func.HttpRequest) -> func.HttpResponse:
|
||||
startdate = date(2022, 2, 6)
|
||||
currentweek = floor((date.today() - startdate).days / 7)
|
||||
return func.HttpResponse(
|
||||
str(currentweek),
|
||||
status_code=200)
|
||||
Reference in New Issue
Block a user