def get(self):

        # execute only when request comes from appengine.com        
        if self.request.headers.get('X-AppEngine-Cron') == 'true':
    
            now = datetime.datetime.now()
            
            # exchange life cycle reasonably limited to 10 minutes, as depends on user confirmation
            deltaMem = datetime.timedelta(seconds=600)  # 10 minutes
            thenMem = now - deltaMem
            query = db.Query(member.Member).filter('inserted <', thenMem)
            mems = []
            for m in query:
                mems.append(m)
            
            db.delete(mems)
dataset/ETHPy150Open SafeSlingerProject/SafeSlinger-AppEngine/safeslinger-demo/python/cleanup.py/CleanUp.get/original