mirror of
https://github.com/house-of-vanity/desubot.git
synced 2026-11-09 07:08:49 +00:00
Update db.rs
This commit is contained in:
1 parent
fdc52b7198
commit
e5079fa584
1 file changed
+1
@@ -35,6 +35,7 @@ pub(crate) fn update_scheme() -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn load_stopwords() -> Result<()> {
|
pub(crate) fn load_stopwords() -> Result<()> {
|
||||||
|
info!("Populating stop words wait please.");
|
||||||
let conn = open()?;
|
let conn = open()?;
|
||||||
for table in include_str!("../assets/stop-words.txt").split('\n').into_iter() {
|
for table in include_str!("../assets/stop-words.txt").split('\n').into_iter() {
|
||||||
let word = table.trim();
|
let word = table.trim();
|
||||||
|
|||||||
Reference in new issue
Block a user