Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit ac37ea0

Browse files
committed
Fix bug in get_sales
1 parent 73a2266 commit ac37ea0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

db/datastore.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ def get_sale(self, order_id):
10391039
conn = Database.connect_database(self.PATH)
10401040
cursor = conn.cursor()
10411041
cursor.execute('''SELECT id, title, description, timestamp, btc, address, status,
1042-
thumbnail, buyer, contractType, unread, statusChanged FROM sales WHERE id=?''', (order_id,))
1042+
thumbnail, buyer, contractType, unread FROM sales WHERE id=?''', (order_id,))
10431043
ret = cursor.fetchall()
10441044
conn.close()
10451045
if not ret:
@@ -1059,7 +1059,7 @@ def get_all(self):
10591059
conn = Database.connect_database(self.PATH)
10601060
cursor = conn.cursor()
10611061
cursor.execute('''SELECT id, title, description, timestamp, btc, status,
1062-
thumbnail, buyer, contractType, unread FROM sales ''')
1062+
thumbnail, buyer, contractType, unread, statusChanged FROM sales ''')
10631063
ret = cursor.fetchall()
10641064
conn.close()
10651065
return ret

0 commit comments

Comments
 (0)