Commit 410dee686a882a74e3fa90c3f4c6d6666ae983b6
Committed by
Paulo Meireles
1 parent
d0a76101
Exists in
master
and in
28 other branches
[Mezuro] removing date variable from module_result method
we are getting it from project result
Showing
1 changed file
with
2 additions
and
4 deletions
Show diff stats
plugins/mezuro/lib/mezuro_plugin/project_content.rb
| ... | ... | @@ -34,11 +34,9 @@ class MezuroPlugin::ProjectContent < Article |
| 34 | 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 | - def module_result(module_name, date) | |
| 37 | + def module_result(module_name) | |
| 38 | 38 | module_name = project.name if module_name.nil? |
| 39 | -#FIXME date format is wrong | |
| 40 | - date = project_result.date if date.nil? | |
| 41 | - @module_client ||= module_result_client.module_result(project.name, module_name, date) | |
| 39 | + @module_client ||= module_result_client.module_result(project.name, module_name, project_result.date) | |
| 42 | 40 | end |
| 43 | 41 | |
| 44 | 42 | def result_history(module_name) | ... | ... |