Skip to content

Commit

Permalink
fix: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
joolean committed Jun 5, 2023
1 parent 677b77d commit 04370e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from django.test import override_settings
from django_hearthstone.cards.models import Card
from shortuuid.main import int_to_string

from tests import settings

from twitch_hdt_ebs.twitch import TwitchClient
from twitch_hdt_ebs.views import ActiveChannelsView

Expand Down
2 changes: 2 additions & 0 deletions twitch_hdt_ebs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ def _dbf_id_to_card_id(self, dbf_id) -> str:
card = Card.objects.get(dbf_id=dbf_id)
card_id = card.card_id
self.CARDS_MAP_CACHE[dbf_id] = card.card_id

assert card_id # make mypy happy
return card_id

def get_shortid_from_deck_list(
Expand Down

0 comments on commit 04370e8

Please sign in to comment.