You are viewing a single comment's thread from:
RE: How to Find Hidden Gems with Ruby
Yep, I think there's a mistake in that script that nobody ever noticed.
next if (created = (Time.now - Time.parse(comment.created + ' UTC')).to_i / 60) < 30
Should be:
next if (created = (Time.now - Time.parse(comment.created + ' UTC')).to_i / 60) > 30
You can use this to do the same thing instead:
http://steem-ganymede.herokuapp.com/discussions?vote_ready=true
The code for that is here, which is correct:
Worked flawless now =) Thank you, couldnt find the error. Alright, seems like my customizing works somehow. Can you explain me this part with the argv?:
options[:tag] = @ARGV if ARGV.any?
I m trying to wrap my head around ruby as a begginer, buts its kinda hard. Thank you for all your effort with your tutorials. They help me a lot :D
There's a typo too. It should be:
The
ARGVconstant is created by the ruby interpreter and just gives you access to the parameters passed when you launch. So, once you apply that fix, this command will work:And that will narrow down the query to the
dmaniatag.Got that, makes sense now.
Will try it at home. You received a quest reward via memo ;)
Edit: WORKED!