This commit is contained in:
parent
a006eb48db
commit
67b139fbee
@ -1,11 +1,13 @@
|
|||||||
from math import floor
|
from math import floor
|
||||||
from datetime import date
|
from datetime import date
|
||||||
|
from urllib import request
|
||||||
import azure.functions as func
|
import azure.functions as func
|
||||||
|
|
||||||
|
|
||||||
def main(req: func.HttpRequest) -> func.HttpResponse:
|
def main(req: func.HttpRequest) -> func.HttpResponse:
|
||||||
startdate = date(2022, 8, 29)
|
startdate = date(2022, 8, 29)
|
||||||
currentweek = floor((date.today() - startdate).days / 7)
|
currentweek = floor((date.today() - startdate).days / 7)
|
||||||
|
request.get("https://tormakristof.eu/")
|
||||||
return func.HttpResponse(
|
return func.HttpResponse(
|
||||||
str(currentweek),
|
str(currentweek),
|
||||||
status_code=200)
|
status_code=200)
|
||||||
|
2
api/requirements.txt
Normal file
2
api/requirements.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
azure-functions
|
||||||
|
requests
|
Loading…
Reference in New Issue
Block a user