mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 15:53:28 +00:00
don't count block download into traffic stat
This commit is contained in:
@@ -829,8 +829,7 @@ def myhome(request):
|
|||||||
# User's network traffic stat in this month
|
# User's network traffic stat in this month
|
||||||
stat = get_user_traffic_stat(request.user.username)
|
stat = get_user_traffic_stat(request.user.username)
|
||||||
if stat:
|
if stat:
|
||||||
traffic_stat = stat['block_download'] + stat['file_view'] \
|
traffic_stat = stat['file_view'] + stat['file_download'] + stat['dir_download']
|
||||||
+ stat['file_download'] + stat['dir_download']
|
|
||||||
|
|
||||||
return render_to_response('myhome.html', {
|
return render_to_response('myhome.html', {
|
||||||
"nickname": nickname,
|
"nickname": nickname,
|
||||||
|
Reference in New Issue
Block a user