folio-data-import 0.2.1__py3-none-any.whl → 0.2.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of folio-data-import might be problematic. Click here for more details.
- folio_data_import/UserImport.py +3 -2
- {folio_data_import-0.2.1.dist-info → folio_data_import-0.2.2.dist-info}/METADATA +1 -1
- folio_data_import-0.2.2.dist-info/RECORD +9 -0
- folio_data_import-0.2.1.dist-info/RECORD +0 -9
- {folio_data_import-0.2.1.dist-info → folio_data_import-0.2.2.dist-info}/LICENSE +0 -0
- {folio_data_import-0.2.1.dist-info → folio_data_import-0.2.2.dist-info}/WHEEL +0 -0
- {folio_data_import-0.2.1.dist-info → folio_data_import-0.2.2.dist-info}/entry_points.txt +0 -0
folio_data_import/UserImport.py
CHANGED
|
@@ -238,7 +238,7 @@ class UserImporter: # noqa: R0902
|
|
|
238
238
|
None
|
|
239
239
|
"""
|
|
240
240
|
mapped_departments = []
|
|
241
|
-
for department in user_obj
|
|
241
|
+
for department in user_obj.pop("departments", []):
|
|
242
242
|
try:
|
|
243
243
|
mapped_departments.append(self.department_map[department])
|
|
244
244
|
except KeyError:
|
|
@@ -250,7 +250,8 @@ class UserImporter: # noqa: R0902
|
|
|
250
250
|
f'Row {line_number}: Department "{department}" not found, ' # noqa: B907
|
|
251
251
|
f"excluding department from user\n"
|
|
252
252
|
)
|
|
253
|
-
|
|
253
|
+
if mapped_departments:
|
|
254
|
+
user_obj["departments"] = mapped_departments
|
|
254
255
|
|
|
255
256
|
async def update_existing_user(self, user_obj, existing_user) -> Tuple[dict, dict]:
|
|
256
257
|
"""
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
folio_data_import/MARCDataImport.py,sha256=IStQ--WpPtnoPunQLK-LBiWApA1n9PHdKeNaFWk01a0,19478
|
|
2
|
+
folio_data_import/UserImport.py,sha256=_3qdbXNDft2ZM4iiSaEEfzWg68Nzy0BiOEozU-BIif4,27827
|
|
3
|
+
folio_data_import/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
folio_data_import/__main__.py,sha256=kav_uUsnrIjGjVxQkk3exLKrc1mah9t2x3G6bGS-5I0,3710
|
|
5
|
+
folio_data_import-0.2.2.dist-info/LICENSE,sha256=qJX7wxMC7ky9Kq4v3zij8MjGEiC5wsB7pYeOhLj5TDk,1083
|
|
6
|
+
folio_data_import-0.2.2.dist-info/METADATA,sha256=RTRiCwYrRJ-nFsMWeS2ZXQFQwL1I9P4Sl0vzMK_HEuU,2420
|
|
7
|
+
folio_data_import-0.2.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
8
|
+
folio_data_import-0.2.2.dist-info/entry_points.txt,sha256=498SxWVXeEMRNw3PUf-eoReZvKewmYwPBtZhIUPr_Jg,192
|
|
9
|
+
folio_data_import-0.2.2.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
folio_data_import/MARCDataImport.py,sha256=IStQ--WpPtnoPunQLK-LBiWApA1n9PHdKeNaFWk01a0,19478
|
|
2
|
-
folio_data_import/UserImport.py,sha256=XmExJ7VKHsMYRIeoczEzv1F8gnQO6pym_rz1y2KlKn4,27784
|
|
3
|
-
folio_data_import/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
folio_data_import/__main__.py,sha256=kav_uUsnrIjGjVxQkk3exLKrc1mah9t2x3G6bGS-5I0,3710
|
|
5
|
-
folio_data_import-0.2.1.dist-info/LICENSE,sha256=qJX7wxMC7ky9Kq4v3zij8MjGEiC5wsB7pYeOhLj5TDk,1083
|
|
6
|
-
folio_data_import-0.2.1.dist-info/METADATA,sha256=Qh0yMC56C8gsfM7-54hVoUnRcYF-gDsRcPP-A_t2VkQ,2420
|
|
7
|
-
folio_data_import-0.2.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
8
|
-
folio_data_import-0.2.1.dist-info/entry_points.txt,sha256=498SxWVXeEMRNw3PUf-eoReZvKewmYwPBtZhIUPr_Jg,192
|
|
9
|
-
folio_data_import-0.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|