forked from MarseyWorld/MarseyWorld
exclude snappy quotes that contain 'drama' from WPD
parent
2a69a2bb62
commit
b3baa83b47
|
@ -45,5 +45,7 @@ def const_initialize():
|
||||||
try:
|
try:
|
||||||
with open(filename, "r", encoding="utf-8") as f:
|
with open(filename, "r", encoding="utf-8") as f:
|
||||||
SNAPPY_QUOTES = f.read().split("\n{[para]}\n")
|
SNAPPY_QUOTES = f.read().split("\n{[para]}\n")
|
||||||
|
if SITE_NAME == 'WPD':
|
||||||
|
SNAPPY_QUOTES = [x for x in SNAPPY_QUOTES if 'drama' not in x.lower()]
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue