Ejemplo n.º 1
0
def aMUSE():
    #TODO: Whenever a Sprite is made, record it somewhere, even if it's just dumped for history sake.
    Echo1 = ndb.Key('ECHO','1').get()
    Echo1.uCount += 1
    Echo1.put()
    newID = str(Echo1.uCount)
    muse = MUSE(id=newID,xID = cXUSE.user_id())
    muse.tutorial = 0
    muse.name = muse.kid
    muse.put()
    return muse
Ejemplo n.º 2
0
def lMUSE(cXUSE=users.get_current_user()):
    return MUSE.query(MUSE.xID == cXUSE.user_id()).get()