forked from vieter-v/vieter
refactor: apply new vfmt defaults
This commit is contained in:
parent
53f5b68d08
commit
5f21e256ee
24 changed files with 138 additions and 138 deletions
|
|
@ -18,10 +18,10 @@ pub fn cmd() cli.Command {
|
|||
name: 'server'
|
||||
description: 'Start the Vieter server.'
|
||||
execute: fn (cmd cli.Command) ? {
|
||||
config_file := cmd.flags.get_string('config-file') ?
|
||||
conf := env.load<Config>(config_file) ?
|
||||
config_file := cmd.flags.get_string('config-file')?
|
||||
conf := env.load<Config>(config_file)?
|
||||
|
||||
server(conf) ?
|
||||
server(conf)?
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,8 +56,8 @@ fn (mut app App) get_log_content(id int) web.Result {
|
|||
// parse_query_time unescapes an HTTP query parameter & tries to parse it as a
|
||||
// time.Time struct.
|
||||
fn parse_query_time(query string) ?time.Time {
|
||||
unescaped := urllib.query_unescape(query) ?
|
||||
t := time.parse(unescaped) ?
|
||||
unescaped := urllib.query_unescape(query)?
|
||||
t := time.parse(unescaped)?
|
||||
|
||||
return t
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue