1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

[bug] unable to rebuild the statistics

This commit is contained in:
Sylvain 2022-02-07 11:43:00 +01:00
parent 42a03dd0e6
commit 5f5af95634
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# Changelog Fab-manager
- Fix a bug: unable to rebuild the statistics
# v5.3.2 2022 January 19
- Add a test for statistics generation

View File

@ -111,7 +111,7 @@ namespace :fablab do
desc 'regenerate statistics'
task :regenerate_statistics, %i[year month] => :environment do |_task, args|
return unless Setting.get('statistics_module')
exit unless Setting.get('statistics_module')
yesterday = 1.day.ago
year = args.year || yesterday.year