From a90fd5f98bf605735883b2a9f6daaab29d5ffb6b Mon Sep 17 00:00:00 2001 From: AB1908 <14124383+AB1908@users.noreply.github.com> Date: Sat, 2 May 2020 09:16:55 +0530 Subject: [PATCH] Fix python query. Closes #19. --- galaxy_library_export.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/galaxy_library_export.py b/galaxy_library_export.py index a9bccbb..370c653 100644 --- a/galaxy_library_export.py +++ b/galaxy_library_export.py @@ -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'""") @@ -72,4 +72,4 @@ else: break cursor.close() -conn.close() +conn.close() \ No newline at end of file