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

New configuration option for free late badges #1703

Merged
merged 2 commits into from
Feb 14, 2016

Conversation

EliAndrewC
Copy link
Contributor

fixes #1682

@@ -564,7 +567,7 @@ def new(self, session, show_all='', message='', checked_in=''):
if show_all:
restrict_to = [Attendee.paid == c.NOT_PAID, Attendee.placeholder == False]
else:
restrict_to = [Attendee.registered > datetime.now(UTC) - timedelta(minutes=90)]
restrict_to = [Attendee.paid != c.NEED_NOT_PAY, Attendee.registered > datetime.now(UTC) - timedelta(minutes=90)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Although we'll probably stop using this page once badges becomes free, it struck me that there's never any reason for a need not pay badge to ever show up here, so I added that filter. Now free badges added by admins on-site won't show up here either.

@kitsuta
Copy link
Member

kitsuta commented Feb 14, 2016

The configspec.ini comment was confusing, but other than that this looks good.

@EliAndrewC
Copy link
Contributor Author

Just fixed the configspec comment typo, so I'll merge this now.

EliAndrewC added a commit that referenced this pull request Feb 14, 2016
New configuration option for free late badges
@EliAndrewC EliAndrewC merged commit 10e2e56 into master Feb 14, 2016
@EliAndrewC EliAndrewC deleted the free_sunday_afternoons branch February 14, 2016 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a configuration option for badges to be free
2 participants