diff options
author | "Vincent Ambo ext:(%22) <tazjin@me.com> | 2012-02-23T23·03+0100 |
---|---|---|
committer | "Vincent Ambo ext:(%22) <tazjin@me.com> | 2012-02-23T23·03+0100 |
commit | 066762051abe5739e956aeb5f369c58c02703010 (patch) | |
tree | 7e3ffb0a75e79588a8de39d37459de0254a561ac /src/Server.hs | |
parent | d04d693eb9047d0ce10ae1244f4de1678d0d117a (diff) |
* rendering comments
Diffstat (limited to 'src/Server.hs')
-rw-r--r-- | src/Server.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Server.hs b/src/Server.hs index 310c2ea1220c..a95b72cd7bba 100644 --- a/src/Server.hs +++ b/src/Server.hs @@ -85,8 +85,8 @@ stripResult :: Result a -> a stripResult (Ok z) = z stripResult (Error s) = error $ "JSON error: " ++ s -- CouchDB View Setup -latestDEView = "function(doc){ if(doc.lang == \"de\"){ emit([doc.year, doc.month, doc.day, doc.id_], doc); } }" -latestENView = "function(doc){ if(doc.lang == \"en\"){ emit([doc.year, doc.month, doc.day, doc.id_]], doc); } }" +latestDEView = "function(doc){ if(doc.lang == \"DE\"){ emit([doc.year, doc.month, doc.day, doc.id_], doc); } }" +latestENView = "function(doc){ if(doc.lang == \"EN\"){ emit([doc.year, doc.month, doc.day, doc.id_]], doc); } }" latestDE = ViewMap "latestDE" latestDEView latestEN = ViewMap "latestEN" latestENView |