remove api proxy
This commit is contained in:
1
main.py
1
main.py
@@ -30,7 +30,6 @@ to_date = today + timedelta(days=5)
|
|||||||
|
|
||||||
def get_blackouts(bill_id) -> list:
|
def get_blackouts(bill_id) -> list:
|
||||||
url = "https://uiapi2.saapa.ir/api/ebills/PlannedBlackoutsReport"
|
url = "https://uiapi2.saapa.ir/api/ebills/PlannedBlackoutsReport"
|
||||||
url = "https://abat-lms.rodad.net/PlannedBlackoutsReport"
|
|
||||||
headers = {
|
headers = {
|
||||||
'accept': 'application/json',
|
'accept': 'application/json',
|
||||||
"Authorization": f"Bearer {BARGHEMAN_TOKEN}",
|
"Authorization": f"Bearer {BARGHEMAN_TOKEN}",
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ def send_message(text: str) -> dict:
|
|||||||
|
|
||||||
def get_blockout_page() -> str:
|
def get_blockout_page() -> str:
|
||||||
blockout_link = 'https://qepd.co.ir/fa-IR/DouranPortal/6423'
|
blockout_link = 'https://qepd.co.ir/fa-IR/DouranPortal/6423'
|
||||||
blockout_link = 'https://re.rodad.net/blockout'
|
|
||||||
return requests.get(blockout_link).text
|
return requests.get(blockout_link).text
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user