Commit 77d90f91d2060c9f1f52b4ecc7dad0c727f93518
Committed by
Paulo Meireles
1 parent
00767db5
Exists in
master
and in
29 other branches
[Mezuro] now it is possible to get results from a specific date
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
plugins/mezuro/lib/mezuro_plugin/project_content.rb
... | ... | @@ -30,8 +30,8 @@ class MezuroPlugin::ProjectContent < Article |
30 | 30 | end |
31 | 31 | |
32 | 32 | def get_date_result(date) |
33 | -#client = Kalibro::Client::ProjectResultClient.new | |
34 | - @project_result ||= Kalibro::Client::ProjectResultClient.has_results_before(name, date) ? Kalibro::Client::ProjectResultClient.last_result_before(name, date) : Kalibro::Client::ProjectResultClient.first_result_after(name, date) | |
33 | + client = Kalibro::Client::ProjectResultClient.new | |
34 | + @project_result ||= client.has_results_before(name, date) ? client.last_result_before(name, date) : client.first_result_after(name, date) | |
35 | 35 | end |
36 | 36 | |
37 | 37 | def module_result(module_name) | ... | ... |