Beispiel #1
0
def templateForParticipants():
    answer = ""
    for participant in participantCollection.participantsWhoAreStillIn():
        answer += "/u/" + participant.name
        if not participant.hasCheckedIn:
            answer += " ~"
        answer += "\n\n"
    return answer
Beispiel #2
0
def templateForParticipants():
    answer = ""
    for participant in participantCollection.participantsWhoAreStillIn():
        answer += "/u/" + participant.name
        if not participant.hasCheckedIn:
            answer += " ~"
        answer += "\n\n"
    return answer
Beispiel #3
0
def stringToPrintLegacy():
    answer = "There are currently **NUMBER_STILL_IN out of INITIAL_NUMBER** original participants.  That's **PERCENT_STILL_IN%**.  Here is the list of participants still with the challenge:\n\n"
    answer = re.sub( 'NUMBER_STILL_IN', str(numberStillIn), answer )
    answer = re.sub( 'INITIAL_NUMBER', str(initialNumber), answer )
    answer = re.sub( 'PERCENT_STILL_IN', str(percentStillIn), answer )
    for participant in participantCollection.participantsWhoAreStillIn():
        answer += "/u/" + participant.name
        if not participant.hasCheckedIn:
            answer += " ~"
        answer += "\n\n"
    return answer
Beispiel #4
0
def stringToPrintLegacy():
    answer = "There are currently **NUMBER_STILL_IN out of INITIAL_NUMBER** original participants.  That's **PERCENT_STILL_IN%**.  Here is the list of participants still with the challenge:\n\n"
    answer = re.sub('NUMBER_STILL_IN', str(numberStillIn), answer)
    answer = re.sub('INITIAL_NUMBER', str(initialNumber), answer)
    answer = re.sub('PERCENT_STILL_IN', str(percentStillIn), answer)
    for participant in participantCollection.participantsWhoAreStillIn():
        answer += "/u/" + participant.name
        if not participant.hasCheckedIn:
            answer += " ~"
        answer += "\n\n"
    return answer
#!/usr/bin/python
import participantCollection


participantCollection = participantCollection.ParticipantCollection()
for participant in participantCollection.participantsWhoAreStillIn():
    participant.hasCheckedIn = True
participantCollection.save()

#!/usr/bin/python
import participantCollection

participantCollection = participantCollection.ParticipantCollection()
for participant in participantCollection.participantsWhoAreStillIn():
    if not participant.hasCheckedIn:
        print "disqualifying " + participant.name
        participant.isStillIn = False
participantCollection.save()