Skip to content

Commit

Permalink
ETL: fix user description length that bigger than 65535
Browse files Browse the repository at this point in the history
  • Loading branch information
hooopo committed Dec 24, 2022
1 parent be2dfec commit d26ee00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions etl/config/initializers/hn_fetch_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def run
json.delete("submitted")
json.delete("delay")
json.merge!(last_fetch_at: Time.now)
json['about'] = json['about'].to_s[0,60000]
HnUser.upsert(json)
else
puts "No response"
Expand Down

0 comments on commit d26ee00

Please sign in to comment.