BUG FIX in Flask_trendingmodule, Fixed member_set when get_top_relevant_data is None.

This commit is contained in:
Mokaddem 2016-12-26 16:33:10 +01:00
parent 3a298f0c7c
commit 24c5621d29

View file

@ -63,6 +63,7 @@ def modulesCharts():
else:
member_set = get_top_relevant_data(r_serv_charts, module_name)
member_set = member_set if member_set is not None else []
if len(member_set) == 0:
member_set.append(("No relevant data", int(100)))
return jsonify(member_set)