Skip to content
This repository was archived by the owner on Aug 19, 2018. It is now read-only.

Commit 3533eb1

Browse files
committed
Cleaned up code a bit
1 parent 73c2cde commit 3533eb1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

crasync/core.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async def __aexit__(self, exc_type, exc_value, traceback):
5151
async def request(self, url):
5252
async with self.session.get(url) as resp:
5353
data = await resp.json()
54-
54+
5555
# Request was successful
5656
if 300 > resp.status >= 200:
5757
return data
@@ -71,7 +71,6 @@ async def request(self, url):
7171

7272
async def get_profile(self, *tags):
7373
'''Get a profile object using tag(s)'''
74-
7574
url = '{0.BASE}/profile/{}'.format(self, ','.join(tags))
7675

7776
data = await self.request(url)
@@ -85,7 +84,6 @@ async def get_profile(self, *tags):
8584

8685
async def get_clan(self, *tags):
8786
'''Get a clan object using tag(s)'''
88-
8987
url = '{0.BASE}/clan/{}'.format(self, ','.join(tags))
9088

9189
data = await self.request(url)
@@ -99,7 +97,6 @@ async def get_clan(self, *tags):
9997

10098
async def get_constants(self):
10199
'''Get clash royale constants.'''
102-
103100
url = self.BASE + '/constants'
104101

105102
data = await self.request(url)
@@ -110,7 +107,6 @@ async def get_top_clans(self):
110107
'''Get a list of top clans, info is only brief,
111108
call get_clan() on each of the ClanInfo objects
112109
to get full clan info'''
113-
114110
url = self.BASE + '/top/clans'
115111

116112
data = await self.request(url)

0 commit comments

Comments
 (0)