diff options
author | Joris | 2021-10-10 19:27:22 +0200 |
---|---|---|
committer | Joris | 2021-10-10 21:21:34 +0200 |
commit | 6e695bf7a0253b4f6d1db78fa4310616d8a1357f (patch) | |
tree | a5b9f30b74a6914336993f93504df3b42fccb933 /src/templates.rs | |
parent | 8ccd762bfc3d7da2716749d709cf5cc216882a23 (diff) |
Search by name, cost and user
Diffstat (limited to 'src/templates.rs')
-rw-r--r-- | src/templates.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/templates.rs b/src/templates.rs index 89b0ed8..2c8e72a 100644 --- a/src/templates.rs +++ b/src/templates.rs @@ -33,9 +33,11 @@ pub fn get() -> Tera { fn payments_params(args: &HashMap<String, Value>) -> Result<Value> { let q = json!({ "page": args.get("page"), - "search": args.get("search"), + "name": args.get("name"), + "cost": args.get("cost"), "frequency": args.get("frequency"), "highlight": args.get("highlight"), + "user": args.get("user"), "category": args.get("category"), }); |