diff --git a/routes/index.js b/routes/index.js index e5dda852c748b80be5a4fd8ef94c8613aed5786e..f8e0dde22f75dd23829e915cb9ceb55687b1ca91 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;