示例#1
0
    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'
示例#2
0
 def GET(self, location):
     return Dbevent.updateDb(location)
示例#3
0
文件: event.py 项目: alswl/dbevent2gc
 def GET(self, location):
     return Dbevent.updateDb(location)