Remove unnecessary with_answer argument in Riddle.to_dict
This commit is contained in:
parent
55e67f2cad
commit
8e78638a75
|
@ -8,7 +8,7 @@ class Riddle(Model):
|
||||||
correct = IntegerField()
|
correct = IntegerField()
|
||||||
MIN_SIMILARITY = 80
|
MIN_SIMILARITY = 80
|
||||||
|
|
||||||
def to_dict(self, with_answer=True):
|
def to_dict(self):
|
||||||
return {
|
return {
|
||||||
"id": self.id,
|
"id": self.id,
|
||||||
"question": self.question,
|
"question": self.question,
|
||||||
|
|
Loading…
Reference in New Issue