Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1 from PolarisLo/patch-1
Browse files Browse the repository at this point in the history
Fixing URL issue
  • Loading branch information
NotThatSiri committed Jan 17, 2019
2 parents 1e0ce20 + 7e1d388 commit cababf0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions wikia/wikia.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,7 @@ def __load(self, redirect=True, preload=False):
self.pageid = query['id']
self.title = query['title']
lang = query_params['lang']
self.url = STANDARD_URL.format(lang=lang, sub_wikia=self.sub_wikia,
page=self.title)
self.url = STANDARD_URL.format(lang=lang, sub_wikia=self.sub_wikia, page=self.title.replace(' ','_'))

def __continued_query(self, query_params):
'''
Expand All @@ -258,7 +257,7 @@ def __continued_query(self, query_params):
if 'generator' in query_params:
yield from pages.values()
else:
yield from pages[self.pageid][prop]:
yield from pages[self.pageid][prop]

if 'continue' not in request:
break
Expand Down

0 comments on commit cababf0

Please sign in to comment.