from django import template
from maingame.utils.enums import StatusType
register = template.Library()


@register.simple_tag
def match_bet_status(bet, status):
    if not bet.status:
        return False
    else:
        return bet.status.id is StatusType[status].value

e307d05f2acc7eecabab589f028d96d565bcf9f8
<mask token>

<mask token>


@register.simple_tag
def match_bet_status(bet, status):
    if not bet.status:
        return False
    else:
        return bet.status.id is StatusType[status].value

<mask token>
register = template.Library()


@register.simple_tag
def match_bet_status(bet, status):
    if not bet.status:
        return False
    else:
        return bet.status.id is StatusType[status].value

from django import template
from maingame.utils.enums import StatusType
register = template.Library()


@register.simple_tag
def match_bet_status(bet, status):
    if not bet.status:
        return False
    else:
        return bet.status.id is StatusType[status].value
