Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeauchesne committed Sep 10, 2020
1 parent 8b165c6 commit c749c6b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions campbot/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def get_xreport(self, xreport_id):
return self.get_wiki_object(xreport_id, constructor=objects.Xreport)

def get_document_versions(self, document_id, lang):
return self.get("/document/{}/history/{}".format(document_id, lang))
return self.get("/document/{}/history/{}".format(document_id, lang))

def get_route_ids(self, filters=None):
return self.get_document_ids(filters=filters, constructor=objects.Route)
Expand Down Expand Up @@ -387,7 +387,11 @@ def get_voters(self, post_id, poll_name, option_id):
result = []

while True:
temp = self.get("/polls/voters.json?post_id={}&poll_name={}&option_id={}&page={}".format(post_id, poll_name, option_id, page))
temp = self.get(
"/polls/voters.json?post_id={}&poll_name={}&option_id={}&page={}".format(
post_id, poll_name, option_id, page
)
)

if len(temp["voters"][option_id]) == 0:
break
Expand Down

0 comments on commit c749c6b

Please sign in to comment.