diff --git a/core/diyanet.py b/core/diyanet.py index 7e8768f..6e73f2f 100644 --- a/core/diyanet.py +++ b/core/diyanet.py @@ -6,7 +6,7 @@ import httpx from bs4 import BeautifulSoup from pydantic import BaseModel -_http = httpx.AsyncClient() +_http = httpx.AsyncClient(timeout=20, follow_redirects=True) class PrayerTimes(BaseModel): diff --git a/core/diyanetdb.py b/core/diyanetdb.py index 8e84fa3..494016b 100644 --- a/core/diyanetdb.py +++ b/core/diyanetdb.py @@ -7,7 +7,7 @@ from pydantic import BaseModel from app import config -_http = httpx.AsyncClient() +_http = httpx.AsyncClient(timeout=20, follow_redirects=True) class Location(BaseModel):