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

Grant reward points on evaluation deletion #2358

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

richardebeling
Copy link
Member

Fixes #2279

@richardebeling richardebeling force-pushed the grant-reward-points-on-evaluation-deletion branch from dd444a3 to fc8f88a Compare March 3, 2025 19:21
@richardebeling richardebeling force-pushed the grant-reward-points-on-evaluation-deletion branch from fc8f88a to ebdb5f5 Compare March 3, 2025 20:38
participants = list(instance.participants.all())
instance.participants.clear()
for user in participants:
granting, __ = grant_reward_points_if_eligible(user, instance.course.semester)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note to self: TODO: Add tests that the reward points are actually granted (evaluation deletion, user profile edit)

@richardebeling richardebeling force-pushed the grant-reward-points-on-evaluation-deletion branch from ebdb5f5 to 7e0b5d8 Compare March 3, 2025 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Reward points not granted on evaluation deletion
4 participants