Fix
This commit is contained in:
parent
7bb8223770
commit
5006a70098
1 changed files with 9 additions and 4 deletions
13
colors.py
13
colors.py
|
@ -89,19 +89,24 @@ for event in log.log:
|
||||||
thecard["name"] = card
|
thecard["name"] = card
|
||||||
thecard["received"] = event["date"]
|
thecard["received"] = event["date"]
|
||||||
thecard["mass"] = []
|
thecard["mass"] = []
|
||||||
thecard["priority"] = 0
|
if thecard["name"] in variables.faves:
|
||||||
|
thecard["priority"] = 1
|
||||||
|
else:
|
||||||
|
thecard["priority"] = 0
|
||||||
if card[0:4] != "sig_":
|
if card[0:4] != "sig_":
|
||||||
for theme in variables.masscollect:
|
for theme in variables.masscollect:
|
||||||
try:
|
try:
|
||||||
if thedeck in variables.masscollect[theme]["decks"]:
|
if thedeck in variables.masscollect[theme]["decks"]:
|
||||||
thecard["mass"].append(theme)
|
thecard["mass"].append(theme)
|
||||||
thecard["priority"] = 3
|
if thecard["priority"] == 0:
|
||||||
|
thecard["priority"] = 3
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
if card in variables.masscollect[theme]["singles"]:
|
if card in variables.masscollect[theme]["singles"]:
|
||||||
thecard["mass"].append(theme)
|
thecard["mass"].append(theme)
|
||||||
thecard["priority"] = 2
|
if thecard["priority"] == 0:
|
||||||
|
thecard["priority"] = 2
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
if card[0:4] == "sig_":
|
if card[0:4] == "sig_":
|
||||||
|
@ -123,7 +128,7 @@ for event in log.log:
|
||||||
thecard["priority"] = 1
|
thecard["priority"] = 1
|
||||||
else:
|
else:
|
||||||
if thecard["priority"] == 0:
|
if thecard["priority"] == 0:
|
||||||
if thedeck in variables.highpriority or thecard["name"] in variables.faves:
|
if thedeck in variables.highpriority:
|
||||||
thecard["priority"] = 1
|
thecard["priority"] = 1
|
||||||
elif len(thecard["mass"]) > 0:
|
elif len(thecard["mass"]) > 0:
|
||||||
thecard["priority"] = 3
|
thecard["priority"] = 3
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue