From 261162094d4f5660ea11cc5d79639f1c4de68e67 Mon Sep 17 00:00:00 2001 From: Gringo <timothe.barthez@student-cs.fr> Date: Fri, 27 Dec 2019 14:04:49 +0100 Subject: [PATCH] removed mention of accepted type --- routes/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/routes/index.js b/routes/index.js index e5dda85..f8e0dde 100644 --- a/routes/index.js +++ b/routes/index.js @@ -185,10 +185,7 @@ router.post('/', function(req, res, next) { const promotion_max = req.body.promotion_max || 2021; fetch_data(req.session.access_token, promotion_min, promotion_max) .then(result => { - let key = "__express__graph_" + promotion_min + "_" + promotion_max - + (accepted_types.ASSOCIATION ? "_1" : "_0") - + (accepted_types.CLUB ? "_1" : "_0") - + (accepted_types.GROUPE ? "_1" : "_0"); + let key = "__express__graph_" + promotion_min + "_" + promotion_max; let cached_graph = myCache.get(key); let all_edges; let all_nodes; -- GitLab