debug this

This commit is contained in:
Christine Dodrill 2016-02-07 12:07:14 -08:00
parent 4a5671133a
commit bdc99a3c5e
2 changed files with 4 additions and 2 deletions

View File

@ -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 =
%*

View File

@ -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