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
def lMUSE(cXUSE=users.get_current_user()): return MUSE.query(MUSE.xID == cXUSE.user_id()).get()