this repo has no description
0
fork

Configure Feed

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

Fix for None, None since_id bug, closes #41

+5 -4
+5 -4
twitter_to_sqlite/utils.py
··· 185 185 if last_since_id is not None: 186 186 max_seen_id = max((last_since_id, max_seen_id)) 187 187 last_since_id = max_seen_id 188 - db["since_ids"].insert( 189 - {"type": since_type_id, "key": since_key, "since_id": max_seen_id,}, 190 - replace=True, 191 - ) 188 + if since_type_id is not None and since_key is not None: 189 + db["since_ids"].insert( 190 + {"type": since_type_id, "key": since_key, "since_id": max_seen_id,}, 191 + replace=True, 192 + ) 192 193 if stop_after is not None: 193 194 break 194 195 time.sleep(sleep)