[FIX] fix can't find version info when share in cloud.add event query interface

This commit is contained in:
bay1ts 2017-11-24 11:59:07 +08:00
parent 2ad25eb16b
commit 62eddf42ff
2 changed files with 1 additions and 2 deletions

View File

@ -18,7 +18,7 @@ from etc import settings
import fileinput import fileinput
load_dict = {} load_dict = {}
with open("plugins/config.json", 'r') as load_f: with open("plugins/config.json", 'r') as load_f:
load_dict = json.load(load_f) load_dict = json.loads(load_f)
logging.config.dictConfig(settings.get_logging(load_dict)) logging.config.dictConfig(settings.get_logging(load_dict))
logger = logging.getLogger('default') logger = logging.getLogger('default')

View File

@ -41,7 +41,6 @@ func APIServer() *chi.Mux {
}) })
r.Route("/event", func(r chi.Router) { r.Route("/event", func(r chi.Router) {
r.Get("/",controller.GetEventsByIds) r.Get("/",controller.GetEventsByIds)
}) })
return r return r
} }