diff --git a/Cargo.lock b/Cargo.lock index 223a53e..fe30070 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3025,7 +3025,7 @@ dependencies = [ [[package]] name = "writing" -version = "1.0.2" +version = "1.0.3" dependencies = [ "anyhow", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index a894edf..53138f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "writing" -version = "1.0.2" +version = "1.0.3" edition = "2021" rust-version = "1.64" description = "" diff --git a/src/db/model_publication.rs b/src/db/model_publication.rs index 0c7bb94..98c9045 100644 --- a/src/db/model_publication.rs +++ b/src/db/model_publication.rs @@ -762,7 +762,7 @@ impl Publication { let secs: u32 = 3600 * 24; let mut res: Vec = Vec::new(); let query = format!( - "SELECT {} FROM publication WHERE gid=? AND status=? AND cid>=? AND cid=? AND cid