Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lcoustillac committed Nov 6, 2023
1 parent 215ad41 commit ff95262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wikitools3/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def setPageInfo(self):
params["redirects"] = ""
req = api.APIRequest(self.site, params)
response = req.query(False)
self.pageid = response["query"]["pages"].keys()[0]
self.pageid = int(list(response["query"]["pages"].keys())[0])
if self.pageid > 0:
self.exists = True
if "missing" in response["query"]["pages"][str(self.pageid)]:
Expand Down

0 comments on commit ff95262

Please sign in to comment.