Skip to content
Snippets Groups Projects
Commit 807d5962 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

FIX: remove deprecated iteritems

parent 9682f011
No related branches found
No related tags found
2 merge requests!73MAINT: change wording of TableImporter argument and allow converters and...,!71MAINT: adapt to new default keyword RECORD in FIND queries
Pipeline #35358 failed
This commit is part of merge request !71. Comments created here will be created in the context of that merge request.
...@@ -154,7 +154,7 @@ def create_files_list(df, ftype): ...@@ -154,7 +154,7 @@ def create_files_list(df, ftype):
files = [] files = []
for indx, src in df.loc[ftype, for indx, src in df.loc[ftype,
pd.notnull(df.loc[ftype])].iteritems(): pd.notnull(df.loc[ftype])].items():
desc = df.loc[ftype+" description", indx] desc = df.loc[ftype+" description", indx]
if pd.notnull(desc): if pd.notnull(desc):
......
...@@ -79,7 +79,7 @@ def from_table(spreadsheet, recordtype): ...@@ -79,7 +79,7 @@ def from_table(spreadsheet, recordtype):
rec = db.Record() rec = db.Record()
rec.add_parent(name=recordtype) rec.add_parent(name=recordtype)
for key, value in row.iteritems(): for key, value in row.items():
if key.lower() == "description": if key.lower() == "description":
rec.description = value rec.description = value
continue continue
......
...@@ -334,7 +334,7 @@ class TableImporter(): ...@@ -334,7 +334,7 @@ class TableImporter():
# Now check each element # Now check each element
for idx, val in df.loc[ for idx, val in df.loc[
pd.notnull(df.loc[:, key]), key].iteritems(): pd.notnull(df.loc[:, key]), key].items():
if not isinstance(val, datatype): if not isinstance(val, datatype):
msg = ( msg = (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment