-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: [ACI-850] implement badge completion check #108
feat: [ACI-850] implement badge completion check #108
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls resolve comments.
credentials/apps/badges/models.py
Outdated
return self.user_progress(username) == 1.0 | ||
|
||
@property | ||
def ratio(self) -> float: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This property is expected to be on the BadgeProgress
, so it is possible to get the exact badge template progress value on a specific BadgeProgress
record (not a generic ratio on a BadgeTemplate).
So, the .ratio
value must mirror the .user_progress(username)
but from the progress instance side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, if this wasn't that clear in the description 😞
No description provided.