mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Use strformat more
This commit is contained in:
parent
6709f6f1b5
commit
21e8f04fa4
11 changed files with 38 additions and 37 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
import asyncdispatch, strutils, sequtils, uri, options, times
|
||||
import asyncdispatch, strutils, strformat, sequtils, uri, options, times
|
||||
import jester, karax/vdom
|
||||
|
||||
import router_utils
|
||||
|
|
@ -102,7 +102,7 @@ proc showTimeline*(request: Request; query: Query; cfg: Config; prefs: Prefs;
|
|||
template respTimeline*(timeline: typed) =
|
||||
let t = timeline
|
||||
if t.len == 0:
|
||||
resp Http404, showError("User \"" & @"name" & "\" not found", cfg)
|
||||
resp Http404, showError(&"""User "{@"name"}" not found""", cfg)
|
||||
resp t
|
||||
|
||||
template respUserId*() =
|
||||
|
|
|
|||
Loading…
Reference in a new issue