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:
parent
42a03dd0e6
commit
5f5af95634
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user