fix: Add a temp proxy

This commit is contained in:
2022-02-27 15:51:22 +03:00
parent 15b76871cf
commit 71f6298708
+3 -1
View File
@@ -1,6 +1,7 @@
import pprint
from datetime import datetime
from typing import List
from urllib.parse import quote
import httpx
from aiocache import cached, Cache
@@ -37,7 +38,8 @@ async def parse_prayer_times(url: str) -> List[PrayerTimes]:
def make_location_url(location_id: int) -> str:
return f'https://namazvakitleri.diyanet.gov.tr/en-US/{location_id}'
url = f'https://namazvakitleri.diyanet.gov.tr/en-US/{location_id}'
return f'https://proxy.abdusco.workers.dev?url={quote(url)}'
async def get_prayer_times(location_id: int) -> List[PrayerTimes]: