Update docs

This commit is contained in:
smitten 2023-07-20 00:24:18 -04:00
parent c03c025773
commit d08f1f94ec
2 changed files with 10 additions and 7 deletions

View file

@ -11,8 +11,8 @@ def make_sentence(cfg):
db = sqlite3.connect(cfg["db_path"])
db.text_factory = str
p = regex.compile(r"\L<words>", words=cfg["ignored_cws"],flags=regex.IGNORECASE)
def cw_regexp(x):
p = regex.compile(r"\L<words>", words=cfg["ignored_cws"],flags=regex.IGNORECASE)
return 1 if p.search(x) else 0
db.create_function('cwregexp', 1, cw_regexp)
c = db.cursor()