Skip to content

Commit

Permalink
Merge pull request #428 from zmpster/remove-redirect
Browse files Browse the repository at this point in the history
Add '/' to Metacalculus questions url to remove redirect
  • Loading branch information
brachbach committed Nov 3, 2020
2 parents e5bc441 + 436348b commit eb1ed9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ergo/platforms/metaculus/metaculus.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def get_question(self, id: int, name=None) -> MetaculusQuestion:
:param id: Question id (can be read off from URL)
:param name: Name to assign to this question (used in models)
"""
r = self.s.get(f"{self.api_url}/questions/{id}")
r = self.s.get(f"{self.api_url}/questions/{id}/")
data = r.json()
if not data.get("possibilities"):
print(id)
Expand Down

0 comments on commit eb1ed9e

Please sign in to comment.