Permalink
Browse files
accession - supports dicts in python 3.7.4 and 3.8.0
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
accession.py
|
|
@@ -131,7 +131,7 @@ def insert_filmographic(filmographic_csv, Reference_Number, package_filmographic |
|
|
csv_dict = ififuncs.extract_metadata(filmographic_csv) |
|
|
for items in csv_dict: |
|
|
for x in items: |
|
|
if type(x) is collections.OrderedDict: |
|
|
if type(x) in [collections.OrderedDict, dict]: |
|
|
if Reference_Number in x['Reference Number'].upper(): |
|
|
with open(package_filmographic, 'w') as csvfile: |
|
|
fieldnames = csv_dict[1] |
|
|
|
0 comments on commit
c6eedd9