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["received"] = event["date"]
|
||||
thecard["mass"] = []
|
||||
thecard["priority"] = 0
|
||||
if thecard["name"] in variables.faves:
|
||||
thecard["priority"] = 1
|
||||
else:
|
||||
thecard["priority"] = 0
|
||||
if card[0:4] != "sig_":
|
||||
for theme in variables.masscollect:
|
||||
try:
|
||||
if thedeck in variables.masscollect[theme]["decks"]:
|
||||
thecard["mass"].append(theme)
|
||||
thecard["priority"] = 3
|
||||
if thecard["priority"] == 0:
|
||||
thecard["priority"] = 3
|
||||
except KeyError:
|
||||
pass
|
||||
try:
|
||||
if card in variables.masscollect[theme]["singles"]:
|
||||
thecard["mass"].append(theme)
|
||||
thecard["priority"] = 2
|
||||
if thecard["priority"] == 0:
|
||||
thecard["priority"] = 2
|
||||
except KeyError:
|
||||
pass
|
||||
if card[0:4] == "sig_":
|
||||
|
@ -123,7 +128,7 @@ for event in log.log:
|
|||
thecard["priority"] = 1
|
||||
else:
|
||||
if thecard["priority"] == 0:
|
||||
if thedeck in variables.highpriority or thecard["name"] in variables.faves:
|
||||
if thedeck in variables.highpriority:
|
||||
thecard["priority"] = 1
|
||||
elif len(thecard["mass"]) > 0:
|
||||
thecard["priority"] = 3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue