convert cursor of representations to list

This commit is contained in:
Jakub Trllo 2022-06-09 11:38:18 +02:00
parent 57e72c2c37
commit de2fb5d1ff

View file

@ -1232,11 +1232,11 @@ class RepresentationWidget(QtWidgets.QWidget):
repre_ids.append(item["_id"])
project_name = self.dbcon.active_project()
repre_docs = get_representations(
repre_docs = list(get_representations(
project_name,
representation_ids=repre_ids,
fields=["name", "parent"]
)
))
version_ids = [
repre_doc["parent"]