Fix art shop generator, remove received cards from pending
This commit is contained in:
parent
e9cda90ff2
commit
784b440a67
2 changed files with 6 additions and 3 deletions
|
@ -245,6 +245,11 @@ for event in log.log:
|
|||
pends.remove(card)
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
for card in event["received"]:
|
||||
pends.remove(card)
|
||||
except:
|
||||
pass
|
||||
if logit == True:
|
||||
logitems.append(logentry)
|
||||
|
||||
|
|
4
tools.py
4
tools.py
|
@ -1610,9 +1610,7 @@ def artshop():
|
|||
shoplog += "\"gray\":-" + str(greyspend)
|
||||
shoplog += "}"
|
||||
if sketchdifference > 0:
|
||||
if len(requestcards) > 0:
|
||||
shoplog += ","
|
||||
shoplog += "\"sketch\":-" + str(sketchdifference)
|
||||
shoplog += ",\"sketch\":-" + str(sketchdifference)
|
||||
shoplog += "}"
|
||||
print(shoplog)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue