Cleaning up some stuff...
This commit is contained in:
parent
09319bd40a
commit
f39d6aefa6
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import argparse, tools
|
||||
import argparse, dbtools, setuptools, twitools
|
||||
|
||||
def getSavepoint(db, user):
|
||||
db.executeQuery("SELECT MAX(tweet_id) FROM retweets WHERE LOWER(author) = '%s'" % user.lower())
|
||||
|
@ -10,7 +10,7 @@ def getSavepoint(db, user):
|
|||
print("No tweets from %s stored yet." % user)
|
||||
return 0
|
||||
|
||||
def retweet(user, two=tools.twObject(), db=tools.dbHelper(tools.dbpath())):
|
||||
def retweet(user, two=twitools.twObject(), db=dbtools.dbHelper()):
|
||||
query = "from:" + user
|
||||
|
||||
savepoint = getSavepoint(db, user)
|
||||
|
|
Loading…
Reference in a new issue