Skip to content

Commit

Permalink
#273 more info
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 30, 2019
1 parent 1e2bd6c commit 8d047a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions front/front_rate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
active = settings.pgsql.exec(
'SELECT COUNT(*) FROM item WHERE touched > NOW() - INTERVAL \'30 DAYS\''
)[0]['count'].to_i
release = octokit.latest_release('zold-io/zold')['tag_name']
release = octokit.latest_release('zold-io/zold')
settings.telepost.spam(
[
"Today is #{Time.now.utc.strftime('%d-%b-%Y')} and we are doing great:\n",
Expand All @@ -73,7 +73,8 @@
(#{dollars(price * assets.balance)})",
" Deficit: [#{deficit.round(2)} BTC](https://wts.zold.io/rate)",
'',
" Zold version: [#{release}](https://github.com/zold-io/zold/releases/tag/#{release})",
" Zold version: [#{release['tag_name']}](https://github.com/zold-io/zold/releases/tag/#{release['tag_name']}) \
/ #{((Time.now - Time.parse(release['created_at'])) / (24 * 60 * 60)).round} days ago",
" Nodes: [#{settings.ticks.latest('Nodes').round}](https://wts.zold.io/remotes)",
" [HoC](https://www.yegor256.com/2014/11/14/hits-of-code.html) \
in #{repositories.count} repos: #{(hoc / 1000).round}K",
Expand Down

0 comments on commit 8d047a9

Please sign in to comment.