diff --git a/flashcards/models.py b/flashcards/models.py index 67b487b..cacd0ef 100644 --- a/flashcards/models.py +++ b/flashcards/models.py @@ -355,8 +355,6 @@ class Flashcard(Model): flashcards.pushes.push_deck_event('card_hidden', self, user) if self.is_in_deck(user): user.unpull(self) hide, created = FlashcardHide.objects.get_or_create(user=user, flashcard=self, reason=reason) - if not created: - raise FlashcardAlreadyHiddenException("The card has already been hidden.") hide.save() def unhide_by_user(self, user, reason=None): diff --git a/nginxconf/flashy.cards b/nginxconf/flashy.cards index 0822748..c5f785a 100644 --- a/nginxconf/flashy.cards +++ b/nginxconf/flashy.cards @@ -12,7 +12,6 @@ server { server_name flashy.cards; listen 443 ssl; - location / { root /srv/flashy.cards/; index index.html /docs/_h5ai/server/php/index.php;