mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-23 06:37:15 +00:00
BUG FIX in Flask_trendingmodule, Fixed member_set when get_top_relevant_data is None.
This commit is contained in:
parent
3a298f0c7c
commit
24c5621d29
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue