mirror of
https://github.com/makeplane/plane.git
synced 2025-12-23 23:29:37 +01:00
refactor: grouper function to fix priority keys (#415)
This commit is contained in:
@@ -27,6 +27,15 @@ def group_results(results_data, group_by):
|
||||
"""
|
||||
response_dict = dict()
|
||||
|
||||
if group_by == "priority":
|
||||
response_dict = {
|
||||
"urgent": [],
|
||||
"high": [],
|
||||
"medium": [],
|
||||
"low": [],
|
||||
"None": [],
|
||||
}
|
||||
|
||||
for value in results_data:
|
||||
group_attribute = resolve_keys(group_by, value)
|
||||
if isinstance(group_attribute, list):
|
||||
|
||||
Reference in New Issue
Block a user