aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorPatrick Jackson <patrick@jackson.dev>2022-12-16 10:15:27 -0700
committerGitHub <noreply@github.com>2022-12-16 17:15:27 +0000
commit5b22f29329e1289710847064e08458730d41d683 (patch)
treea34abec17a9c7c541328186c1cfadc6772619a7c /src/command
parentinstall.sh: Fallback to using cargo (#639) (diff)
downloadatuin-5b22f29329e1289710847064e08458730d41d683.zip
Fix session history (#620)
Diffstat (limited to '')
-rw-r--r--src/command/client/history.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/client/history.rs b/src/command/client/history.rs
index c45ee0c8..5c3f1726 100644
--- a/src/command/client/history.rs
+++ b/src/command/client/history.rs
@@ -206,12 +206,12 @@ impl Cmd {
db.query_history(&query).await?
}
(Some(session), None) => {
- let query = format!("select * from history where session = {};", session);
+ let query = format!("select * from history where session = '{}';", session);
db.query_history(&query).await?
}
(Some(session), Some(cwd)) => {
let query = format!(
- "select * from history where cwd = '{}' and session = {};",
+ "select * from history where cwd = '{}' and session = '{}';",
cwd, session
);
db.query_history(&query).await?