@@ -61,6 +61,7 @@ def plot(card=None,columns=['cost','cost-min','cost-max'],maxCost=None):
def buyout():
today=datetime.utcnow().strftime('%Y-%m-%d')
+ PlayerDB = TinyDB('player.json')
PlayerCards=PlayerDB.search(Query().fragment({'date':today}))
Stock=[None]*152
for card in PlayerCards: Stock[card['card-num']]=card['stock']