Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
chore: remove println
Browse files Browse the repository at this point in the history
  • Loading branch information
ZTL-UwU committed Dec 23, 2023
1 parent e2182bf commit 8ac86ff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions api/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ pub async fn update_feature_names(sep_text: &[&str], db: &DbConn) -> Result<(),
let mut found = false;
for name in &mut names {
if name.name == *word {
println!("{} {}", word, name.df);
found = true;
if let Err(e) = Mutation::update_name(db, &name.name, name.df + 1).await {
return Err(e);
Expand All @@ -70,7 +69,11 @@ pub async fn update_feature_names(sep_text: &[&str], db: &DbConn) -> Result<(),
return Err(e);
}
// dummy indicator to avoid the same word being added repeatedly
names.push(entity::name::Model { id: 0, name: String::from(*word), df: 1 });
names.push(entity::name::Model {
id: 0,
name: String::from(*word),
df: 1,
});
}
}

Expand Down

0 comments on commit 8ac86ff

Please sign in to comment.