Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User level updation #38

Open
jyothsnack opened this issue May 14, 2020 · 0 comments
Open

User level updation #38

jyothsnack opened this issue May 14, 2020 · 0 comments
Labels

Comments

@jyothsnack
Copy link

Is there any provision for updating the user badge using 'possibly_award_badge'? Presently the user level is not updating in case if the level is increased by 1.

awarded levels are 1 indexed, for convenience

    awarded = awarded.level - 1
    assert awarded < len(self.levels)
    if (
            not self.multiple and
            BadgeAward.objects.filter(user=user, slug=self.slug, level=awarded)
    ):
        return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant