debug this
This commit is contained in:
parent
4a5671133a
commit
bdc99a3c5e
|
@ -10,7 +10,7 @@ type
|
|||
username*: string
|
||||
|
||||
proc `$`*(t: Tweet): string =
|
||||
return join([t.date.format(ISOTime), t.message], "\t")
|
||||
return t.date.format(ISOTime) & "\t" & t.message
|
||||
|
||||
proc `%`*(t: Tweet): JsonNode =
|
||||
%*
|
||||
|
|
|
@ -20,7 +20,9 @@ proc updateSystemUser() =
|
|||
let tweets = db.getAllRows(sql"select * from tweets where username='system'")
|
||||
|
||||
for tweet in tweets.items:
|
||||
fout.writeLine $(tweet.fromDBRow())
|
||||
let tweetObj = tweet.fromDBRow()
|
||||
echo tweetObj
|
||||
fout.writeLine $tweetObj
|
||||
|
||||
fout.close
|
||||
|
||||
|
|
Loading…
Reference in New Issue