From 9e38b159b2f9a9eeb61b2b4cc045acc594af262e Mon Sep 17 00:00:00 2001 From: ldeluigi <44567586+ldeluigi@users.noreply.github.com> Date: Sat, 11 Mar 2023 01:57:38 +0100 Subject: [PATCH] Fix flake issues --- backend/spellbook/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/spellbook/views.py b/backend/spellbook/views.py index 26b945e7..c1582b0d 100644 --- a/backend/spellbook/views.py +++ b/backend/spellbook/views.py @@ -43,6 +43,7 @@ class TemplateViewSet(viewsets.ReadOnlyModelViewSet): class DeckListParser(parsers.BaseParser): media_type = 'text/plain' + def __init__(self): self.cards_dict = {c.name.lower(): c for c in Card.objects.all()} @@ -90,4 +91,4 @@ def find_my_combos(request: Request) -> Response: 'included': included_variants, 'almost_included': almost_included_variants, 'almost_included_by_adding_colors': almost_included_variants_by_adding_colors, - }) + })