mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 08:41:00 +00:00
Always return voters_count (#543)
This commit is contained in:
parent
c94b54dde8
commit
c702b1b24d
2 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ class QuestionData(BasePostDataType):
|
||||||
"expired": False,
|
"expired": False,
|
||||||
"multiple": multiple,
|
"multiple": multiple,
|
||||||
"votes_count": 0,
|
"votes_count": 0,
|
||||||
"voters_count": self.voter_count if multiple else None,
|
"voters_count": self.voter_count,
|
||||||
"voted": False,
|
"voted": False,
|
||||||
"own_votes": [],
|
"own_votes": [],
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|
|
@ -131,7 +131,7 @@ def test_question_format(api_client, remote_identity):
|
||||||
"expired": True,
|
"expired": True,
|
||||||
"multiple": False,
|
"multiple": False,
|
||||||
"votes_count": 30,
|
"votes_count": 30,
|
||||||
"voters_count": None,
|
"voters_count": 30,
|
||||||
"voted": False,
|
"voted": False,
|
||||||
"own_votes": [],
|
"own_votes": [],
|
||||||
"options": [
|
"options": [
|
||||||
|
|
Loading…
Reference in a new issue