This commit is contained in:
parent
1bed5ed592
commit
dde07e1009
@ -2,13 +2,11 @@ from math import floor
|
|||||||
from datetime import date
|
from datetime import date
|
||||||
from urllib import request
|
from urllib import request
|
||||||
import azure.functions as func
|
import azure.functions as func
|
||||||
import requests
|
|
||||||
|
|
||||||
|
|
||||||
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)
|
||||||
requests.get("https://tormakristof.eu/")
|
|
||||||
return func.HttpResponse(
|
return func.HttpResponse(
|
||||||
str(currentweek),
|
str(currentweek),
|
||||||
status_code=200)
|
status_code=200)
|
||||||
|
@ -1,2 +1 @@
|
|||||||
azure-functions
|
azure-functions
|
||||||
requests
|
|
Loading…
Reference in New Issue
Block a user