this repo has no description
0
fork

Configure Feed

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

Archive: Import new tweets table name

Given the code here, it seems like in the past this file was named
"tweet.js". In recent exports, it's named "tweets.js". The archive
importer needs to be modified to take this into account. Existing logic
is reused for importing this table. (However, the resulting table name
will be different, matching the different file name -- archive_tweets,
rather than archive_tweet).

+4
+4
twitter_to_sqlite/archive.py
··· 24 24 return {filename: [fn(item) for item in data]} 25 25 26 26 transformers[filename] = (callback, pk) 27 + return fn 27 28 28 29 return inner 29 30 ··· 31 32 def register_multi(filename): 32 33 def inner(fn): 33 34 transformers[filename] = (fn, None) 35 + return fn 34 36 35 37 return inner 36 38 ··· 38 40 def register_all(filename): 39 41 def inner(fn): 40 42 transformers[filename] = (fn, None) 43 + return fn 41 44 42 45 return inner 43 46 ··· 193 196 194 197 195 198 @register_each("tweet", pk="id") 199 + @register_each("tweets", pk="id") 196 200 def tweet(item): 197 201 # Older versions of the archive have the tweet data at the top level of the 198 202 # item; newer versions have it all in a 'tweet' sub-key.