Commit 6b4cc05a authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

fix import bug

parent 5fca6956
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3157,7 +3157,7 @@ def update_collection_from_xlsx_row(user: User, collection_data: dict) -> bool:

    for k in collection_data.keys():
        if k and ":" in k:  # example: Dublin Core: creator
            meta_set_name, meta_name = [x.strip() for x in k.split(":")]
            meta_set_name, meta_name = [x.strip() for x in k.split(":", 1)]
            if (
                meta_set_name
                and meta_name
@@ -3220,7 +3220,7 @@ def update_resource_from_xlsx_row(user: User, resource_data: dict) -> bool:

    for k in resource_data.keys():
        if k and ":" in k:  # example: Dublin Core: creator
            meta_set_name, meta_name = [x.strip() for x in k.split(":")]
            meta_set_name, meta_name = [x.strip() for x in k.split(":", 1)]
            if (
                meta_set_name
                and meta_name