forked from MarseyWorld/MarseyWorld
all tags are lower-case alrdy
parent
52dd53f1d6
commit
65d347cce0
|
@ -918,7 +918,7 @@ marseys_const2 = marseys_const + ['chudsey','a','b','c','d','e','f','g','h','i',
|
||||||
marseys = db.query(Marsey).all()
|
marseys = db.query(Marsey).all()
|
||||||
marsey_mappings = {}
|
marsey_mappings = {}
|
||||||
for marsey in marseys:
|
for marsey in marseys:
|
||||||
for tag in marsey.tags.lower().split():
|
for tag in marsey.tags.split():
|
||||||
if tag in marsey_mappings:
|
if tag in marsey_mappings:
|
||||||
marsey_mappings[tag].append(marsey.name)
|
marsey_mappings[tag].append(marsey.name)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue