Exemplo n.º 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'
Exemplo n.º 2
0
 def GET(self, location):
     return Dbevent.updateDb(location)
Exemplo n.º 3
0
 def GET(self, location):
     return Dbevent.updateDb(location)