mirror of
https://github.com/house-of-vanity/desubot.git
synced 2025-08-21 15:27:14 +00:00
Update db.rs
This commit is contained in:
@@ -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