Fix another over-eager commit

This commit is contained in:
Alessio 2022-03-06 18:14:06 -08:00
parent 26ab9ec937
commit 78a5ffbf92

View File

@ -93,18 +93,12 @@ func (p Profile) UserExists(handle scraper.UserHandle) bool {
*/
func parse_user_from_row(row *sql.Row) (scraper.User, error) {
var u scraper.User
var joinDate int64
err := row.Scan(&u.ID, &u.DisplayName, &u.Handle, &u.Bio, &u.FollowingCount, &u.FollowersCount, &u.Location, &u.Website, &joinDate,
err := row.Scan(&u.ID, &u.DisplayName, &u.Handle, &u.Bio, &u.FollowingCount, &u.FollowersCount, &u.Location, &u.Website, &u.JoinDate,
&u.IsPrivate, &u.IsVerified, &u.IsBanned, &u.ProfileImageUrl, &u.ProfileImageLocalPath, &u.BannerImageUrl,
&u.BannerImageLocalPath, &u.PinnedTweetID, &u.IsContentDownloaded, &u.IsFollowed)
if err != nil {
return u, err
}
u.JoinDate = time.Unix(joinDate, 0)
return u, nil
}
/**