fix allignment

This commit is contained in:
oslomp
2018-12-19 00:48:40 +01:00
parent b6a0f25d19
commit 3319732775

View File

@ -155,34 +155,20 @@ def compute_stats():
calculate_uploaders(list(requests_uploader), most_requested_uploaders)
return {
'last_updated':
last_updated,
'total_uploads':
total_uploads,
'upload_stats':
list(upload_stats),
'total_requests':
total_requests,
'request_stats':
list(request_stats),
'unique_request_stats':
list(unique_request_stats),
'total_unique_requests':
total_unique_requests,
'most_played_songs':
list(most_played_songs),
'most_played_songs_14_days':
list(most_played_songs_14_days),
'time_requested':
time_convert(list(time_requested)),
'total_time_requested':
str(round(float(total_time_requested['total']) / 86400, 2)) + ' days',
'stats_top_count':
settings.STATS_TOP_COUNT,
'most_requested_uploaders':
list(most_requested_uploaders),
'total_average':
total_average,
'last_updated': last_updated,
'total_uploads': total_uploads,
'upload_stats': list(upload_stats),
'total_requests': total_requests,
'request_stats': list(request_stats),
'unique_request_stats': list(unique_request_stats),
'total_unique_requests': total_unique_requests,
'most_played_songs': list(most_played_songs),
'most_played_songs_14_days': list(most_played_songs_14_days),
'time_requested': time_convert(list(time_requested)),
'total_time_requested': str(round(float(total_time_requested['total']) / 86400, 2)) + ' days',
'stats_top_count': settings.STATS_TOP_COUNT,
'most_requested_uploaders': list(most_requested_uploaders),
'total_average': total_average,
}
@ -242,4 +228,4 @@ def user_stats(request):
'stats_top_count': settings.STATS_TOP_COUNT,
'total_played_uploads': total_played_uploads,
'total_played_user_uploads': total_played_user_uploads,
}
}