Skip to content

Commit

Permalink
Fix python query. Closes #19.
Browse files Browse the repository at this point in the history
  • Loading branch information
AB1908 committed May 2, 2020
1 parent 57698d3 commit a90fd5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions galaxy_library_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

# gamePieceTypeId is stored in GamePieceTypes
cursor.execute("""SELECT id FROM GamePieceTypes WHERE type='originalMeta'""")
originalMetaID = cursor.fetchall()[0]
originalMetaID = cursor.fetchone()[0]
cursor.execute("""SELECT id FROM GamePieceTypes WHERE type='meta'""")
metaID = cursor.fetchall()[0]
metaID = cursor.fetchone()[0]
cursor.execute("""SELECT id FROM GamePieceTypes WHERE type='originalTitle'""")
originalTitleID = cursor.fetchall()[0]
originalTitleID = cursor.fetchone()[0]
cursor.execute("""SELECT id FROM GamePieceTypes WHERE type='title'""")
titleID = cursor.fetchone()[0]
cursor.execute("""SELECT id FROM GamePieceTypes WHERE type='allGameReleases'""")
Expand Down Expand Up @@ -72,4 +72,4 @@
else:
break
cursor.close()
conn.close()
conn.close()

0 comments on commit a90fd5f

Please sign in to comment.