allow dict_pics to write dict_pics.txt

This commit is contained in:
scott 2022-01-09 19:30:23 -07:00
parent a4f93af3ee
commit 3ee619ae3c

View File

@ -450,8 +450,8 @@ class CurateData:
file_name = target_dir + os.sep + tag
dict_pics.update({k:file_name})
# with open('dict_pics.txt', 'w') as f:
# json.dump(dict_pics, f)
with open('dict_pics.txt', 'w') as f:
json.dump(dict_pics, f)
return dict_pics # TODO still need to find sol to outliers (i.e., naming scheme for unusual source URLs)