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)
|
pends.remove(card)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
try:
|
||||||
|
for card in event["received"]:
|
||||||
|
pends.remove(card)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
if logit == True:
|
if logit == True:
|
||||||
logitems.append(logentry)
|
logitems.append(logentry)
|
||||||
|
|
||||||
|
|
4
tools.py
4
tools.py
|
@ -1610,9 +1610,7 @@ def artshop():
|
||||||
shoplog += "\"gray\":-" + str(greyspend)
|
shoplog += "\"gray\":-" + str(greyspend)
|
||||||
shoplog += "}"
|
shoplog += "}"
|
||||||
if sketchdifference > 0:
|
if sketchdifference > 0:
|
||||||
if len(requestcards) > 0:
|
shoplog += ",\"sketch\":-" + str(sketchdifference)
|
||||||
shoplog += ","
|
|
||||||
shoplog += "\"sketch\":-" + str(sketchdifference)
|
|
||||||
shoplog += "}"
|
shoplog += "}"
|
||||||
print(shoplog)
|
print(shoplog)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue