Skip to content

Commit 06858a7

Browse files
authored
fix: content_get only fetchs info available to student (#58)
This function currently fails to get the uid of anonymous students, which seems to be a bug?
1 parent d26952f commit 06858a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

piazza_api/rpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def content_get(self, cid, nid=None):
130130
"""
131131
r = self.request(
132132
method="content.get",
133-
data={"cid": cid, "student_view": "false"},
133+
data={"cid": cid, "student_view": None},
134134
nid=nid
135135
)
136136
return self._handle_error(r, "Could not get post {}.".format(cid))

0 commit comments

Comments
 (0)