Ejemplo n.º 1
0
def createQuestion(q, a, c1, c2, c3, genre):
    """db and memset the question with the KEY"""
    quest = Question(question=q, rating=1200.0, votes=0, answer=a, choice1=c1, choice2=c2, choice3=c3, genre=genre)
    quest.put()
    mems(str(quest.key()), quest)
    logging.info("question: " + q + " created.")