def GET(self): params = web.input() if not params.has_key('location'): raise web.seeother('../') location_id = params.location length_update = Dbevent.updateDb(location_id) length_delete = Dbevent.deleteDb(location_id) Calendar.deleteMemcacheCity(location_id) db.put(SyncQueue(key_name=location_id, location_id=location_id, update_at=datetime.utcnow())) logging.info('update %s %d' %(location_id, length_update)) logging.info('delete %s %d' %(location_id, length_delete)) return 'ok'
def GET(self, location): return Dbevent.deleteDb(location)