From 958fe4996c4ceac0c881f43b0fb79cbbb3d4916e Mon Sep 17 00:00:00 2001 From: Abdussamet Kocak Date: Sun, 27 Feb 2022 15:43:24 +0300 Subject: [PATCH] fix: Increase timeouts --- core/diyanet.py | 2 +- core/diyanetdb.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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):