mirror of
https://github.com/correl/mtgsqlive.git
synced 2024-12-01 03:00:09 +00:00
minor changes
This commit is contained in:
parent
70e0361a94
commit
f99f170067
1 changed files with 2 additions and 1 deletions
|
@ -16,8 +16,9 @@ def db_to_json(database_connection):
|
|||
database_connection.row_factory = sqlite3.Row # Enable keys for the rows
|
||||
cursor = database_connection.cursor()
|
||||
|
||||
cursor.execute(""" SELECT * from cards """)
|
||||
cursor.execute(""" SELECT * from cards ORDER BY setCode""")
|
||||
|
||||
# TODO: Figure out how to put them into LEA {cards}, LEB {cards}, ..., SOI {cards}
|
||||
returnData = ""
|
||||
rows = cursor.fetchall()
|
||||
for row in rows:
|
||||
|
|
Loading…
Reference in a new issue