#!/usr/bin/env python

from db import init_db, Bean

path_to_db = './My Database.sqlite'
db = init_db(path_to_db)

for bean in Bean.select().where(Bean.inventory > 0).order_by(Bean.inventory.desc()):
    print(u"{} : {}g".format(bean.name, int(bean.inventory)))

e0363d24d9e6d9a8592d4f5bfc508b8f088d43d1
<mask token>

<mask token>
for bean in Bean.select().where(Bean.inventory > 0).order_by(Bean.inventory
    .desc()):
    print(u'{} : {}g'.format(bean.name, int(bean.inventory)))

<mask token>
path_to_db = './My Database.sqlite'
db = init_db(path_to_db)
for bean in Bean.select().where(Bean.inventory > 0).order_by(Bean.inventory
    .desc()):
    print(u'{} : {}g'.format(bean.name, int(bean.inventory)))

from db import init_db, Bean
path_to_db = './My Database.sqlite'
db = init_db(path_to_db)
for bean in Bean.select().where(Bean.inventory > 0).order_by(Bean.inventory
    .desc()):
    print(u'{} : {}g'.format(bean.name, int(bean.inventory)))

#!/usr/bin/env python

from db import init_db, Bean

path_to_db = './My Database.sqlite'
db = init_db(path_to_db)

for bean in Bean.select().where(Bean.inventory > 0).order_by(Bean.inventory.desc()):
    print(u"{} : {}g".format(bean.name, int(bean.inventory)))
