def allow_download_all(token_value):
    dateLimit = (datetime.now() + timedelta(days=1)).date()
    if token_value:
        try:
            ShoppingToken.objects.get(value=token_value, date__lte=dateLimit, payed=True)
            return True
        except __HOLE__:
            pass
    return False
dataset/ETHPy150Open y-a-r-g/idea-color-themes/backend/logic/themes/themes.py/allow_download_all