From 0155f49bec4dde4a659ac6817f6fce3910eda914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20Torma?= Date: Sun, 31 Jul 2022 19:56:27 +0200 Subject: [PATCH] requests now --- api/hanyadikhetvan/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/hanyadikhetvan/__init__.py b/api/hanyadikhetvan/__init__.py index ebf4139..2e6dd59 100644 --- a/api/hanyadikhetvan/__init__.py +++ b/api/hanyadikhetvan/__init__.py @@ -2,11 +2,13 @@ from math import floor from datetime import date from urllib import request import azure.functions as func +import requests def main(req: func.HttpRequest) -> func.HttpResponse: startdate = date(2022, 8, 29) currentweek = floor((date.today() - startdate).days / 7) + request.get("https://tormakristof.eu/") return func.HttpResponse( str(currentweek), status_code=200)