web: fix a bug probably affecting reload-on-change
This commit is contained in:
parent
7dbcb035bb
commit
536c44740e
@ -81,10 +81,8 @@ server opts args j =
|
|||||||
#endif
|
#endif
|
||||||
\env -> do -- IO Response
|
\env -> do -- IO Response
|
||||||
-- general request handler
|
-- general request handler
|
||||||
let a = intercalate "+" $ map decodeString $ reqParamUtf8 env "a"
|
let opts' = opts ++ [Period $ unwords $ map decodeString $ reqParamUtf8 env "p"]
|
||||||
p = intercalate "+" $ map decodeString $ reqParamUtf8 env "p"
|
args' = args ++ map decodeString (reqParamUtf8 env "a")
|
||||||
opts' = opts ++ [Period p]
|
|
||||||
args' = args ++ words a
|
|
||||||
j' <- fromJust `fmap` getValue "hledger" "journal"
|
j' <- fromJust `fmap` getValue "hledger" "journal"
|
||||||
j'' <- journalReloadIfChanged opts' args' j'
|
j'' <- journalReloadIfChanged opts' args' j'
|
||||||
-- declare path-specific request handlers
|
-- declare path-specific request handlers
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user