/score_routes.rb (c0946e5e0b88e95fa7a705b1e0c18e031b9b6c2b) (450 bytes) (mode 100644) (type blob)
#score_routes.rb
get '/score/:score/' do
@score = params[:score]
return status 404 unless CONFIG.score_names.keys.include?(@score)
@score_name = CONFIG.score_names[@score]
@title = @score_name+' Ranking'
@nodes = Storage.get_score_nodes(params[:score],params[:page])
erb :score_details
end
get '/score/:score/histogram.json' do
content_type :json
return Storage.get_all_score_values(params[:score]).to_json
end
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
76 |
37c72bd0af2a979eebb7018f37b7dc6ee04a378d |
Gemfile |
100644 |
blob |
71 |
5a0b34f4c7ea7ff499826db4642432a1e5940c5d |
Gemfile.lock |
100644 |
blob |
79 |
04e9bf5219f1065f2d2f20519a988f41a274d7d9 |
README.md |
100644 |
blob |
494 |
9eca68213c93af98fde713132b619df2393bbd39 |
color_helper.rb |
100644 |
blob |
3440 |
12433498d735363e1586030782d6bbd0522d2370 |
config.rb |
100644 |
blob |
79 |
a0f1048216dced361915ebb3a955fb637a7d5261 |
index.rb |
100644 |
blob |
516 |
1a41081b6d3d16270f8dfd81376d618d0c75c8ce |
metric_routes.rb |
100644 |
blob |
1478 |
d0c06b59ee66ca2a428d516cbee4a234e1722a19 |
node_routes.rb |
040000 |
tree |
- |
dfceba6e9a1eba72acb00a408ace8815e0ebc532 |
public |
100644 |
blob |
297 |
6ecd1cc330e5a4919db79dba4f90bdd3b73b63a3 |
run.rb |
100644 |
blob |
450 |
c0946e5e0b88e95fa7a705b1e0c18e031b9b6c2b |
score_routes.rb |
100644 |
blob |
423 |
f981916c8eceac7fc69aeb01c3f2128f7def40f5 |
statistics_routes.rb |
100644 |
blob |
5603 |
3930a9f9c38c10cf5e398d962b3c2e30661ed254 |
storage.rb |
040000 |
tree |
- |
ff59ff6ca204b1b5cf166aab50055785f550cf03 |
views |
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/coria/coria-frontend
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/coria/coria-frontend
Clone this repository using git:
git clone git://git.rocketgit.com/user/coria/coria-frontend
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main