Skip to content

Commit 22108e6

Browse files
committed
Config update
1 parent 7afd331 commit 22108e6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/lighthouseweb3/functions/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
class Config:
55
"""Config class for lighthouse"""
66

7-
lighthouse_api = "http://13.234.35.183:5050" # "https://api.lighthouse.storage"
7+
# lighthouse_api = "http://13.234.35.183:5050" # "https://api.lighthouse.storage"
8+
lighthouse_api = 'https://api.lighthouse.storage'
89
lighthouse_node = "https://node.lighthouse.storage"
910
lighthouse_bls_node = "https://encryption.lighthouse.storage"
10-
lighthouse_api_v2 = 'https://api.lighthouse.storage'

src/lighthouseweb3/functions/deal_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
def get_deal_status(cid: str) -> List[t.DealData]:
88
try:
9-
url = f"{Config.lighthouse_api_v2}/api/lighthouse/deal_status?cid={cid}"
9+
url = f"{Config.lighthouse_api}/api/lighthouse/deal_status?cid={cid}"
1010
response = requests.get(url)
1111
response.raise_for_status()
1212
return response.json()

src/lighthouseweb3/functions/get_uploads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def bytes_to_size(bytes_size):
1414

1515
def get_uploads(publicKey: str, pageNo: int = 1) -> t.UploadsResponseType:
1616
try:
17-
url = f"{Config.lighthouse_api_v2}/api/user/files_uploaded?publicKey={publicKey}&pageNo={pageNo}"
17+
url = f"{Config.lighthouse_api}/api/user/files_uploaded?publicKey={publicKey}&pageNo={pageNo}"
1818
response = requests.get(url)
1919
response.raise_for_status()
2020
return response.json()

0 commit comments

Comments
 (0)