Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @classmethod
- def get_all_orders(self):
- base = sqlite3.connect('base.db')
- cursor = base.cursor()
- all_id = cursor.execute('select id from orders').fetchall()
- all_orders = [i for i in range(len(all_id))]
- for i, id in enumerate(all_id):
- all_orders[i] = self.get_order(id[0])
- base.close()
- return all_orders
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement