Skip to content

Commit 59e3fc0

Browse files
authored
Merge pull request #68 from vaibhavsingh97/Patch1/fixServerError
Fixed server is down issue
2 parents 365448e + aa3d39a commit 59e3fc0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

loklak.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Loklak(object):
2020
2121
"""
2222

23-
baseUrl = 'http://loklak.org/'
23+
baseUrl = 'http://api.loklak.org/'
2424
baseUrlSusi = 'http://api.asksusi.com/'
2525
name = None
2626
followers = None
@@ -37,17 +37,17 @@ class Loklak(object):
3737
action = None
3838
data = {}
3939

40-
def __init__(self, baseUrl='http://loklak.org/'):
40+
def __init__(self, baseUrl='http://api.loklak.org/'):
4141
"""Constructor of the Loklak class.
4242
4343
Args:
44-
baseUrl (str): Base URL for accessing the APIs (default=http://loklak.org).
44+
baseUrl (str): Base URL for accessing the APIs (default=http://api.loklak.org/).
4545
4646
"""
4747
baseUrl = re.findall('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', baseUrl)
4848
try:
4949
if baseUrl[0]:
50-
if baseUrl[0] != 'http://loklak.org/':
50+
if baseUrl[0] != 'http://api.loklak.org/':
5151
url_test = self.hello()
5252
if url_test['status'] == 'ok':
5353
self.baseUrl = baseUrl[0]

0 commit comments

Comments
 (0)