forked from github/plane
refactor: grouper function to fix priority keys (#415)
This commit is contained in:
parent
5d8f2b6b75
commit
46f6b61928
@ -27,6 +27,15 @@ def group_results(results_data, group_by):
|
|||||||
"""
|
"""
|
||||||
response_dict = dict()
|
response_dict = dict()
|
||||||
|
|
||||||
|
if group_by == "priority":
|
||||||
|
response_dict = {
|
||||||
|
"urgent": [],
|
||||||
|
"high": [],
|
||||||
|
"medium": [],
|
||||||
|
"low": [],
|
||||||
|
"None": [],
|
||||||
|
}
|
||||||
|
|
||||||
for value in results_data:
|
for value in results_data:
|
||||||
group_attribute = resolve_keys(group_by, value)
|
group_attribute = resolve_keys(group_by, value)
|
||||||
if isinstance(group_attribute, list):
|
if isinstance(group_attribute, list):
|
||||||
|
Loading…
Reference in New Issue
Block a user