Skip to content

User level updation #38

@jyothsnack

Description

@jyothsnack

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions