Fixed compiler warnings and regressions.
h3rald h3rald@h3rald.com
Sun, 11 Mar 2018 11:23:47 +0100
3 files changed,
5 insertions(+),
3 deletions(-)
M
lib/api_v3.nim
→
lib/api_v3.nim
@@ -133,6 +133,8 @@ options.tables = options.tables & tables
options.jsonFilter = resOrClauses.join(" OR ") proc parseQueryOption*(fragment: string, options: var QueryOptions) = + if fragment == "": + return var pair = fragment.split('=') if pair.len < 2 or pair[1] == "": raise newException(EInvalidRequest, "Invalid query string fragment '$1'" % fragment)
M
lib/cli.nim
→
lib/cli.nim
@@ -1,5 +1,5 @@
import - parseopt2, + parseopt, strutils, strtabs import
M
lib/logger.nim
→
lib/logger.nim
@@ -7,9 +7,9 @@ types
proc currentTime*(plain = false): string = if plain: - return getTime().getGMTime().format("yyyy-MM-dd' @ 'HH:mm:ss") + return getTime().utc.format("yyyy-MM-dd' @ 'HH:mm:ss") else: - return getTime().getGMTime().format("yyyy-MM-dd'T'HH:mm:ss'Z'") + return getTime().utc.format("yyyy-MM-dd'T'HH:mm:ss'Z'") proc msg(logger: Logger, kind, message: string, params: varargs[string, `$`]) = let s = format(message, params)