diff --git a/colors.py b/colors.py index 2ff3ba6..b49c9ef 100644 --- a/colors.py +++ b/colors.py @@ -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) diff --git a/tools.py b/tools.py index 3826de5..20941cc 100644 --- a/tools.py +++ b/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)