don't loop infinitely waiting for a user that is the site itself

This commit is contained in:
Christine Dodrill 2016-02-07 07:19:55 -08:00
parent a2afb2e269
commit 1bd31f9cac
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ proc getTweetsFrom*(url: string, username: string): seq[Tweet] =
proc updateTweetsOnce*() {. gcsafe .} =
var db = open("./data/twtxt.db", nil, nil, nil)
var users = db.getAllRows sql"select * from users"
var users = db.getAllRows sql"select * from users where username != 'system'"
for user in users.items():
echo "updating " & $user