Skip to content

Commit

Permalink
fix: content_get only fetchs info available to student (#58)
Browse files Browse the repository at this point in the history
This function currently fails to get the uid of anonymous students, which seems to be a bug?
  • Loading branch information
developStorm authored Dec 3, 2023
1 parent d26952f commit 06858a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piazza_api/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def content_get(self, cid, nid=None):
"""
r = self.request(
method="content.get",
data={"cid": cid, "student_view": "false"},
data={"cid": cid, "student_view": None},
nid=nid
)
return self._handle_error(r, "Could not get post {}.".format(cid))
Expand Down

0 comments on commit 06858a7

Please sign in to comment.