Fix lint errors
This commit is contained in:
parent
cf7608eaa9
commit
99ad0f4a2c
@ -121,8 +121,8 @@ func (p Profile) GetTweetById(id scraper.TweetID) (scraper.Tweet, error) {
|
|||||||
|
|
||||||
stmt, err := db.Prepare(`
|
stmt, err := db.Prepare(`
|
||||||
select id, user_id, text, posted_at, num_likes, num_retweets, num_replies, num_quote_tweets, in_reply_to_id, quoted_tweet_id,
|
select id, user_id, text, posted_at, num_likes, num_retweets, num_replies, num_quote_tweets, in_reply_to_id, quoted_tweet_id,
|
||||||
mentions, reply_mentions, hashtags, ifnull(space_id, ''), ifnull(tombstone_types.short_name, ""), is_stub, is_content_downloaded,
|
mentions, reply_mentions, hashtags, ifnull(space_id, ''), ifnull(tombstone_types.short_name, ""), is_stub,
|
||||||
is_conversation_scraped, last_scraped_at
|
is_content_downloaded, is_conversation_scraped, last_scraped_at
|
||||||
from tweets left join tombstone_types on tweets.tombstone_type = tombstone_types.rowid
|
from tweets left join tombstone_types on tweets.tombstone_type = tombstone_types.rowid
|
||||||
where id = ?
|
where id = ?
|
||||||
`)
|
`)
|
||||||
|
@ -300,7 +300,7 @@ func create_dummy_retweet(tweet_id scraper.TweetID) scraper.Retweet {
|
|||||||
*/
|
*/
|
||||||
func create_space_from_id(id int) scraper.Space {
|
func create_space_from_id(id int) scraper.Space {
|
||||||
return scraper.Space{
|
return scraper.Space{
|
||||||
ID: scraper.SpaceID(fmt.Sprintf("some_id_%d", id)),
|
ID: scraper.SpaceID(fmt.Sprintf("some_id_%d", id)),
|
||||||
ShortUrl: fmt.Sprintf("short_url_%d", id),
|
ShortUrl: fmt.Sprintf("short_url_%d", id),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user