diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-10-19 17:03:12 +0200 | 
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-10-19 17:03:12 +0200 | 
| commit | 8b62a94e1e3b6a61030dd20982d50d017397e4e9 (patch) | |
| tree | 7433d1292437dbfd470e1b01f10d7163784f6202 /lib/Travelynx | |
| parent | d5bdc47ea84396b74923bbdd618cdceb45389c75 (diff) | |
stats: no need for transactions here2.17.13
Diffstat (limited to 'lib/Travelynx')
| -rw-r--r-- | lib/Travelynx/Command/stats.pm | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/lib/Travelynx/Command/stats.pm b/lib/Travelynx/Command/stats.pm index 1ba1db9..214abfd 100644 --- a/lib/Travelynx/Command/stats.pm +++ b/lib/Travelynx/Command/stats.pm @@ -26,13 +26,12 @@ sub refresh_all {  	for  	  my $user ( $db->select( 'users', ['id'], { status => 1 } )->hashes->each )  	{ -		my $tx = $db->begin;  		$self->app->journeys->generate_missing_stats( uid => $user->{id} );  		$self->app->journeys->get_stats( -			uid  => $user->{id}, -			year => $now->year +			uid        => $user->{id}, +			year       => $now->year, +			write_only => 1,  		); -		$tx->commit;  		if ( $i == $total or ( $i % 10 ) == 0 ) {  			printf( "%.f%% complete", $i * 100 / $total );  		} | 
