diff --git a/src/twtxt.nim b/src/twtxt.nim index d4abdf2..fa8ee38 100644 --- a/src/twtxt.nim +++ b/src/twtxt.nim @@ -74,11 +74,12 @@ proc updateTweetsByUser*(db: DBConn, username, url: string) {. gcsafe .} = counter = counter + 1 except: discard - if counter > 0: - let - msg = "Added " & $counter & " tweets from @<" & username & " " & url & ">" - now = getTime().toSeconds() + when false: + if counter > 0: + let + msg = "Added " & $counter & " tweets from @<" & username & " " & url & ">" + now = getTime().toSeconds() - db.exec(sql"insert into tweets values(null, 'twtxtlist', ?, ?);", now, msg) + db.exec(sql"insert into tweets values(null, 'twtxtlist', ?, ?);", now, msg) except: echo username & " " & getCurrentExceptionMsg()