Always return voters_count (#543)

pull/549/head
Humberto Rocha 2023-03-15 20:46:12 -04:00 zatwierdzone przez GitHub
rodzic c94b54dde8
commit c702b1b24d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -58,7 +58,7 @@ class QuestionData(BasePostDataType):
"expired": False,
"multiple": multiple,
"votes_count": 0,
"voters_count": self.voter_count if multiple else None,
"voters_count": self.voter_count,
"voted": False,
"own_votes": [],
"options": [],

Wyświetl plik

@ -131,7 +131,7 @@ def test_question_format(api_client, remote_identity):
"expired": True,
"multiple": False,
"votes_count": 30,
"voters_count": None,
"voters_count": 30,
"voted": False,
"own_votes": [],
"options": [