Merge pull request #4223 from esaunders/develop

Fix bug I introduced with handling of image gallery tables.
This commit is contained in:
esaunders 2018-10-17 10:12:49 -04:00 committed by GitHub
commit 3d7fba6a5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -436,7 +436,7 @@ def normalize_db_entry(line, files_table, vs_parts_table, vs_info_table, fs_info
newLine = ('INSERT INTO "image_gallery_groups" VALUES(' + ', '.join(fields_list[1:]) + ');')
return newLine
#remove id field
elif ig_groups_index_seen:
elif ig_groups_seen_index:
# Only removing the id field for now. May need to care about group_id, examiner_id and seen fields in future.
newLine = ('INSERT INTO "image_gallery_groups_seen" VALUES(' + ', '.join(fields_list[1:]) + ');')
return newLine