diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-08-27 18:59:26 +0200 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-08-27 18:59:26 +0200 |
commit | 39fb04baf0f4ac4445ad8db6914740281265dace (patch) | |
tree | df69f8236ec083d803238c079e3070922f66e610 /lib/Travelynx/Command | |
parent | 7b9382a9139d4e0ac45262dafd5284dfa21039eb (diff) |
maintenance: do not re-generate stats
Diffstat (limited to 'lib/Travelynx/Command')
-rw-r--r-- | lib/Travelynx/Command/maintenance.pm | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/Travelynx/Command/maintenance.pm b/lib/Travelynx/Command/maintenance.pm index c9c7ed6..7baf762 100644 --- a/lib/Travelynx/Command/maintenance.pm +++ b/lib/Travelynx/Command/maintenance.pm @@ -153,22 +153,6 @@ sub run { } $tx->commit; - - # Computing stats may take a while, but we've got all time in the - # world here. This means users won't have to wait when loading their - # own journey log. - say 'Generating missing stats ...'; - for - my $user ( $db->select( 'users', ['id'], { status => 1 } )->hashes->each ) - { - $tx = $db->begin; - $self->app->journeys->generate_missing_stats( uid => $user->{id} ); - $self->app->journeys->get_stats( - uid => $user->{id}, - year => $now->year - ); - $tx->commit; - } } 1; |