fix: Add a temp proxy

master
Abdussamet Kocak 4 years ago
parent 15b76871cf
commit 71f6298708

@ -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]:

Loading…
Cancel
Save