Skip to content
GitHub no longer supports this web browser. Learn more about the browsers we support.
Permalink
Browse files

accession - supports dicts in python 3.7.4 and 3.8.0

  • Loading branch information
kieranjol committed Jan 22, 2020
1 parent ca49e0f commit c6eedd9ec0821b7108f7a93f81bf043a6cb53d20
Showing with 1 addition and 1 deletion.
  1. +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

Please sign in to comment.
You can’t perform that action at this time.