peal.web.app.group_by_direction¶
- peal.web.app.group_by_direction(items)[source]¶
Group feedback items by the direction their collage belongs to.
- Parameters:
items (
listofdict) – Items of a feedback request, each with itscollagepath.- Returns:
One entry per direction in rank order, with
rank,direction_idx,name(the concept edit, when the folder is found) anditems; each item gainsdetail_collagewhen its detailed collage exists. Items whose file name does not follow the pattern form one group each.- Return type: