From b3baa83b47d2e246ff4ff8c07630d42f37005659 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 25 Aug 2023 01:52:51 +0300 Subject: [PATCH] exclude snappy quotes that contain 'drama' from WPD --- files/helpers/const_stateful.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/helpers/const_stateful.py b/files/helpers/const_stateful.py index f60c38cc3..22a92bccf 100644 --- a/files/helpers/const_stateful.py +++ b/files/helpers/const_stateful.py @@ -45,5 +45,7 @@ def const_initialize(): try: with open(filename, "r", encoding="utf-8") as f: 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: pass