<s> import datetime <EOL> from google . appengine . ext import db , webapp <EOL> from google . appengine . ext . webapp import util <EOL> import member <EOL> class CleanUp ( webapp . RequestHandler ) : <EOL> def get ( self ) : <EOL> if self . request . headers . get ( '<STR_LIT>' ) == '<STR_LIT:true>' : <EOL> now = datetime . datetime . now ( ) <EOL> deltaMem = datetime . timedelta ( seconds = <NUM_LIT> ) <EOL> thenMem = now - deltaMem <EOL> query = db . Query ( member . Member ) . filter ( '<STR_LIT>' , thenMem ) <EOL> mems = [ ] <EOL> for m in query : <EOL> mems . append ( m ) <EOL> db . delete ( mems ) <EOL> def main ( ) : <EOL> application = webapp . WSGIApplication ( [ ( '<STR_LIT>' , CleanUp ) ] , <EOL> debug = True ) <EOL> util . run_wsgi_app ( application ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
