Skip to content

Commit 8cc7147

Browse files
author
Kristan Kenney
committed
Ensure that statistics are up-to-date before listing
1 parent 82b0296 commit 8cc7147

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

bin/v-list-user-stats

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ is_object_valid 'user' 'USER' "$user"
122122
# Action #
123123
#----------------------------------------------------------#
124124

125+
# Ensure statistics are up to date
126+
$BIN/v-update-user-stats $user
127+
128+
125129
# Defining config
126130
conf=$USER_DATA/stats.log
127131
if [ ! -e "$conf" ]; then

bin/v-list-users-stats

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ check_args '0' "$#" '[FORMAT]'
121121
# Action #
122122
#----------------------------------------------------------#
123123

124+
# Ensure statistics are up to date
125+
for user in $(ls $HESTIA/data/users); do
126+
$BIN/v-update-user-stats $user
127+
done
128+
124129
# Defining config
125130
conf=$HESTIA/data/users/admin/overall_stats.log
126131
if [ ! -e "$conf" ]; then

0 commit comments

Comments
 (0)