Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Issue 155 #158

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open

Issue 155 #158

wants to merge 5 commits into from

Conversation

cud4m
Copy link
Collaborator

@cud4m cud4m commented Mar 22, 2019

@cud4m cud4m requested review from onmax, svg153 and alvarogtx300 and removed request for onmax March 22, 2019 08:05
@cud4m cud4m added this to the v2019.1.4 milestone Mar 22, 2019
@cud4m cud4m self-assigned this Mar 22, 2019
tickets/admin.py Outdated

ects_by_session = 2.0 / number_of_sessions

needed_talks = abs((maximum_ects - obj.ects) % ects_by_session)
Copy link
Member

Choose a reason for hiding this comment

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

method abs is unnecessary.
Modulo operation always return positive number.

Its not clear what obj.ects is.

tickets/admin.py Outdated
while choosing:
chosen = random.choice(Session.objects.filter(edition__year=EDITION_YEAR,))
if not CheckIn.objects.all().filter(attendant=obj, session=chosen).exists():
print("roger")
Copy link
Member

Choose a reason for hiding this comment

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

Remove "debug" prints

Copy link
Member

@onmax onmax left a comment

Choose a reason for hiding this comment

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

  • Remove useless prints.
  • Comment a little more please

@onmax onmax self-requested a review March 26, 2019 08:08
@svg153
Copy link
Member

svg153 commented May 9, 2019

👍

Copy link
Member

@svg153 svg153 left a comment

Choose a reason for hiding this comment

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

👍

@svg153
Copy link
Member

svg153 commented Feb 25, 2020

What happened with this pr?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants