Commit 4e105f55eb02fea1995cfe830b7abb8d7913f837

Authored by Andrew Buss
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):
nginxconf/flashy.cards View file @ 4e105f5
... ... @@ -12,7 +12,6 @@
12 12 server_name flashy.cards;
13 13 listen 443 ssl;
14 14  
15   -
16 15 location / {
17 16 root /srv/flashy.cards/;
18 17 index index.html /docs/_h5ai/server/php/index.php;