Пример #1
0
def question3(messenger_parser, user):
    user.score += int(messenger_parser.text)

    question_text = 'When engaging with other babies, is your baby: 1: More like Bashful Dwarf from Snow White and shy away from attention 5: More like Happy Dwarf from Snow White and enjoy the company of others, actively joining them in playing'
    send_numbers_message(user.messenger_id, question_text, NUMBERS)
    user.state = 'question4'
    user.save()
Пример #2
0
def question9(messenger_parser, user):
    user.score += int(messenger_parser.text)

    question_text = 'Is your child: 1: Highly observant and notice small details in his/her surroundings 5: Inattentive and gloss over details, preferring to focus on the big picture instead'
    send_numbers_message(user.messenger_id, question_text, NUMBERS)
    user.state = 'question10'
    user.save()
Пример #3
0
def question2(messenger_parser, user):
    user.score += int(messenger_parser.text)

    question_text = 'When your infant is upset does he/she calm down by: 1: Being left alone or taking a nap 5: Receiving attention and active comforting from parents'
    send_numbers_message(user.messenger_id, question_text, NUMBERS)
    user.state = 'question3'
    user.save()
Пример #4
0
def question8(messenger_parser, user):
    user.score += int(messenger_parser.text)

    question_text = 'In terms of sensitivity, is your baby: 1: Very fussy at even the smallest provocation? (e.g. too many people, soiled diaper, etc.) 5: Rarely set off by inconveniences or changes to his or her environment'
    send_numbers_message(user.messenger_id, question_text, NUMBERS)
    user.state = 'question9'
    user.save()
Пример #5
0
def question7(messenger_parser, user):
    user.score += int(messenger_parser.text)

    question_text = 'When sharing a space with others for a long period of time, is your child more like: 1: Sadness from Inside Out and get overwhelmed or tired throughout the interaction 5: Joy from Inside Out and get energized and active throughout the interaction'
    send_numbers_message(user.messenger_id, question_text, NUMBERS)
    user.state = 'question8'
    user.save()
Пример #6
0
def question6(messenger_parser, user):
    user.score += int(messenger_parser.text)

    question_text = 'When putting your baby to sleep, is your baby: 1: Highly selective with where he/she sleeps (i.e. will only sleep in her cradle, with a certain stuffed animal) 5: Content with sleeping anywhere'
    send_numbers_message(user.messenger_id, question_text, NUMBERS)
    user.state = 'question7'
    user.save()
Пример #7
0
def question5(messenger_parser, user):
    user.score += int(messenger_parser.text)

    question_text = 'When interacting with strangers/new people, does your baby act more like: 1: Neville Longbottom and initially resist interaction and become nervous around strangers 5: Ron Weasley and smile and coo at new people and interactions'
    send_numbers_message(user.messenger_id, question_text, NUMBERS)
    user.state = 'question6'
    user.save()
Пример #8
0
def question4(messenger_parser, user):

    user.score += int(messenger_parser.text)

    question_text = 'Is your child more like: 1: Lisa Simpson, consistently stay with an activity for a long period of time to completion 5: Bart Simpson, easily distracted and start new activities frequently without finishing the previous ones'
    send_numbers_message(user.messenger_id, question_text, NUMBERS)
    user.state = 'question5'
    user.save()
Пример #9
0
def question1(messenger_parser, user):

    question_text = 'Compared to other babies, your baby is more: 1: Like a slow loris (quiet and calm) 5: Like a Chihuahua (loud and constantly active)'

    if messenger_parser.text.lower() == 'start':
        send_numbers_message(user.messenger_id, question_text, NUMBERS)
        return

    user.score += int(messenger_parser.text)

    question_text = 'Does your baby generally: 1: Move around and play only one no one is around 5: Move around and play only when others are around/watching'
    send_numbers_message(user.messenger_id, question_text, NUMBERS)
    user.state = 'question2'
    user.save()