Fix lint errors
This commit is contained in:
parent
15d7cd77a1
commit
d77c55ec1c
@ -92,7 +92,9 @@ func (p Profile) SavePoll(poll scraper.Poll) error {
|
|||||||
* Get the list of images for a tweet
|
* Get the list of images for a tweet
|
||||||
*/
|
*/
|
||||||
func (p Profile) GetImagesForTweet(t scraper.Tweet) (imgs []scraper.Image, err error) {
|
func (p Profile) GetImagesForTweet(t scraper.Tweet) (imgs []scraper.Image, err error) {
|
||||||
err = p.DB.Select(&imgs, "select id, tweet_id, width, height, remote_url, local_filename, is_downloaded from images where tweet_id=?", t.ID)
|
err = p.DB.Select(&imgs,
|
||||||
|
"select id, tweet_id, width, height, remote_url, local_filename, is_downloaded from images where tweet_id=?",
|
||||||
|
t.ID)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,8 +103,8 @@ func (p Profile) GetImagesForTweet(t scraper.Tweet) (imgs []scraper.Image, err e
|
|||||||
*/
|
*/
|
||||||
func (p Profile) GetVideosForTweet(t scraper.Tweet) (vids []scraper.Video, err error) {
|
func (p Profile) GetVideosForTweet(t scraper.Tweet) (vids []scraper.Video, err error) {
|
||||||
err = p.DB.Select(&vids, `
|
err = p.DB.Select(&vids, `
|
||||||
select id, tweet_id, width, height, remote_url, local_filename, thumbnail_remote_url, thumbnail_local_filename, duration, view_count,
|
select id, tweet_id, width, height, remote_url, local_filename, thumbnail_remote_url, thumbnail_local_filename, duration,
|
||||||
is_downloaded, is_gif
|
view_count, is_downloaded, is_gif
|
||||||
from videos
|
from videos
|
||||||
where tweet_id = ?
|
where tweet_id = ?
|
||||||
`, t.ID)
|
`, t.ID)
|
||||||
@ -114,8 +116,8 @@ func (p Profile) GetVideosForTweet(t scraper.Tweet) (vids []scraper.Video, err e
|
|||||||
*/
|
*/
|
||||||
func (p Profile) GetUrlsForTweet(t scraper.Tweet) (urls []scraper.Url, err error) {
|
func (p Profile) GetUrlsForTweet(t scraper.Tweet) (urls []scraper.Url, err error) {
|
||||||
err = p.DB.Select(&urls, `
|
err = p.DB.Select(&urls, `
|
||||||
select tweet_id, domain, text, short_text, title, description, creator_id, site_id, thumbnail_width, thumbnail_height, thumbnail_remote_url,
|
select tweet_id, domain, text, short_text, title, description, creator_id, site_id, thumbnail_width, thumbnail_height,
|
||||||
thumbnail_local_path, has_card, has_thumbnail, is_content_downloaded
|
thumbnail_remote_url, thumbnail_local_path, has_card, has_thumbnail, is_content_downloaded
|
||||||
from urls
|
from urls
|
||||||
where tweet_id = ?
|
where tweet_id = ?
|
||||||
order by rowid
|
order by rowid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user