Coorection d'un bug dans l'application des questions
This commit is contained in:
parent
37393eea13
commit
96143c03a4
@ -910,13 +910,15 @@ class ModerationAnswer(models.Model):
|
|||||||
|
|
||||||
def valid_event(self, event):
|
def valid_event(self, event):
|
||||||
if event.tags:
|
if event.tags:
|
||||||
for t in self.adds_tags:
|
if self.adds_tags:
|
||||||
if t not in event.tags:
|
for t in self.adds_tags:
|
||||||
return False
|
if t not in event.tags:
|
||||||
|
return False
|
||||||
|
|
||||||
for t in self.removes_tags:
|
if self.removes_tags:
|
||||||
if t in event.tags:
|
for t in self.removes_tags:
|
||||||
return False
|
if t in event.tags:
|
||||||
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user