Commit 4e105f55eb02fea1995cfe830b7abb8d7913f837
1 parent
5458c8b297
Exists in
master
allow a user to hide a card twice - the second reason overwrites the original
Showing 2 changed files with 0 additions and 3 deletions Side-by-side Diff
flashcards/models.py
View file @
4e105f5
... | ... | @@ -355,8 +355,6 @@ |
355 | 355 | flashcards.pushes.push_deck_event('card_hidden', self, user) |
356 | 356 | if self.is_in_deck(user): user.unpull(self) |
357 | 357 | hide, created = FlashcardHide.objects.get_or_create(user=user, flashcard=self, reason=reason) |
358 | - if not created: | |
359 | - raise FlashcardAlreadyHiddenException("The card has already been hidden.") | |
360 | 358 | hide.save() |
361 | 359 | |
362 | 360 | def unhide_by_user(self, user, reason=None): |