Example #1
0
def aPIXEL():
#    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)
    pixel = PIXEL(id=newID,xID = cXUSE.user_id())
    pixel.tutorial = 0
    pixel.name = pixel.kid
    pixel.put()
    return pixel
Example #2
0
def lPIXEL(cXUSE=users.get_current_user()):
    return PIXEL.query(PIXEL.xID == cXUSE.user_id()).get()