diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-08-30 18:21:12 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-08-30 18:21:40 -0400 |
commit | cf2b9750ca87ed4fadee63606d8de6f109e84cb8 (patch) | |
tree | 7b8f778da28e6b981f45e5f42460f3bd1fd2e6d5 | |
parent | 2a3d402fa58d9a4aa709ae74dac396b37f8ddf57 (diff) | |
download | clinte-cf2b9750ca87ed4fadee63606d8de6f109e84cb8.tar.gz |
moved display to 15 posts v0.3.2
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/main.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Cargo.lock b/Cargo.lock index a6cec3e..831c6fa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -119,7 +119,7 @@ dependencies = [ [[package]] name = "clinte" -version = "0.3.1" +version = "0.3.2" dependencies = [ "chrono 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 5ec0ce3..94d6300 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clinte" -version = "0.3.1" +version = "0.3.2" authors = ["Ben Morrison <ben@gbmor.dev>"] edition = "2018" diff --git a/src/main.rs b/src/main.rs index 9541176..b837d47 100644 --- a/src/main.rs +++ b/src/main.rs @@ -90,7 +90,7 @@ fn list_matches(db: &db::Conn) { }); for (i, e) in postvec.iter().enumerate() { - if (postvec.len() >= 30 && i >= postvec.len() - 31) || postvec.len() < 30 { + if (postvec.len() > 14 && i >= postvec.len() - 15) || postvec.len() < 15 { print!("{}", e); } } |