query: make real: equivalent to real:1
This commit is contained in:
		
							parent
							
								
									ba6269981b
								
							
						
					
					
						commit
						b9883d9eb1
					
				| @ -1146,7 +1146,7 @@ A query term can be any of the following: | ||||
| `depth:N`                          match (or display, depending on command) accounts at or above this [depth](#depth-limiting) | ||||
| 
 | ||||
| \                                  \ | ||||
| `real:1`, `real:0`                 match real/virtual-ness | ||||
| `real:`/`real:1`, `real:0`         match real or [virtual](#virtual-postings) postings respectively | ||||
| 
 | ||||
| \                                  \ | ||||
| `status:*`, `status:!`, `status:`  match cleared, pending, or uncleared/pending transactions respectively | ||||
|  | ||||
| @ -251,7 +251,7 @@ parseQueryTerm d ('d':'a':'t':'e':':':s) = | ||||
| parseQueryTerm _ ('s':'t':'a':'t':'u':'s':':':s) =  | ||||
|         case parseStatus s of Left e   -> error' $ "\"status:"++s++"\" gave a parse error: " ++ e | ||||
|                               Right st -> Left $ Status st | ||||
| parseQueryTerm _ ('r':'e':'a':'l':':':s) = Left $ Real $ parseBool s | ||||
| parseQueryTerm _ ('r':'e':'a':'l':':':s) = Left $ Real $ parseBool s || null s | ||||
| parseQueryTerm _ ('a':'m':'t':':':s) = Left $ Amt ord q where (ord, q) = parseAmountQueryTerm s | ||||
| parseQueryTerm _ ('e':'m':'p':'t':'y':':':s) = Left $ Empty $ parseBool s | ||||
| parseQueryTerm _ ('d':'e':'p':'t':'h':':':s) = Left $ Depth $ readDef 0 s | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user