aboutsummaryrefslogtreecommitdiff
path: root/src/templates.rs
diff options
context:
space:
mode:
authorJoris2021-10-10 21:21:06 +0200
committerJoris2021-10-10 21:21:34 +0200
commit99466c6ceb848cf8147645f25deea89804b7b279 (patch)
treeba184c40a8d30bfc76dcb2882420822c5518e199 /src/templates.rs
parent6e695bf7a0253b4f6d1db78fa4310616d8a1357f (diff)
downloadbudget-99466c6ceb848cf8147645f25deea89804b7b279.tar.gz
budget-99466c6ceb848cf8147645f25deea89804b7b279.tar.bz2
budget-99466c6ceb848cf8147645f25deea89804b7b279.zip
Filter payments by start and end date
Diffstat (limited to 'src/templates.rs')
-rw-r--r--src/templates.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/templates.rs b/src/templates.rs
index 2c8e72a..390a3aa 100644
--- a/src/templates.rs
+++ b/src/templates.rs
@@ -39,6 +39,8 @@ fn payments_params(args: &HashMap<String, Value>) -> Result<Value> {
"highlight": args.get("highlight"),
"user": args.get("user"),
"category": args.get("category"),
+ "start_date": args.get("start_date"),
+ "end_date": args.get("end_date"),
});
match serde_json::from_value(q) {