this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix bugs running --since from scratch

If tables were missing, script would throw an error.

+3 -4
+2 -3
twitter_to_sqlite/cli.py
··· 200 200 if since or since_id: 201 201 expected_length = None 202 202 203 - if since: 203 + if since and db["tweets"].exists: 204 204 try: 205 205 since_id = db.conn.execute( 206 206 "select max(id) from tweets where user = ?", [profile["id"]] 207 207 ).fetchall()[0][0] 208 - print("since = ", since_id) 209 208 except IndexError: 210 209 pass 211 210 ··· 257 256 profile = utils.get_profile(session) 258 257 db = sqlite_utils.Database(db_path) 259 258 expected_length = 800 260 - if since: 259 + if since and db["timeline_tweets"].exists: 261 260 # Set since_id to highest value for this timeline 262 261 try: 263 262 since_id = db.conn.execute(
+1 -1
twitter_to_sqlite/utils.py
··· 109 109 110 110 def fetch_home_timeline(session, since_id=None): 111 111 args = {} 112 - if since_id is not None: 112 + if since_id: 113 113 args["since_id"] = since_id 114 114 yield from fetch_timeline( 115 115 session,