Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
imwhatiam committed Dec 25, 2024
1 parent fdf4e3a commit d658d6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions frontend/src/pages/org-admin/org-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class OrgInfo extends Component {
super(props);
this.state = {
org_name: '',
monthly_traffic: '',
traffic_this_month: '',
storage_quota: 0,
storage_usage: 0,
member_quota: 0,
Expand All @@ -24,12 +24,12 @@ class OrgInfo extends Component {
componentDidMount() {
orgAdminAPI.orgAdminGetOrgInfo().then(res => {
const {
org_id, org_name, monthly_traffic,
org_id, org_name, traffic_this_month,
member_quota, member_usage, active_members,
storage_quota, storage_usage
} = res.data;
this.setState({
org_id, org_name, monthly_traffic,
org_id, org_name, traffic_this_month,
member_quota, member_usage, active_members,
storage_quota, storage_usage
});
Expand All @@ -38,7 +38,7 @@ class OrgInfo extends Component {

render() {
const {
org_id, org_name, monthly_traffic,
org_id, org_name, traffic_this_month,
member_quota, member_usage, active_members,
storage_quota, storage_usage
} = this.state;
Expand Down Expand Up @@ -107,9 +107,9 @@ class OrgInfo extends Component {
</div>
<div className="info-content-item">
<h4 className="info-content-item-heading">{gettext('Traffic this month')}</h4>
{gettext('Download')} {Utils.bytesToSize(monthly_traffic.link_file_download + monthly_traffic.sync_file_download + monthly_traffic.web_file_download)}
{gettext('Download')} {Utils.bytesToSize(traffic_this_month.link_file_download + traffic_this_month.sync_file_download + traffic_this_month.web_file_download)}

Check warning on line 110 in frontend/src/pages/org-admin/org-info.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 18 spaces but found 20

Check warning on line 110 in frontend/src/pages/org-admin/org-info.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 18 space characters but found 20
<br/>

Check warning on line 111 in frontend/src/pages/org-admin/org-info.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 18 spaces but found 20

Check warning on line 111 in frontend/src/pages/org-admin/org-info.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 18 space characters but found 20
{gettext('Upload')} {Utils.bytesToSize(monthly_traffic.link_file_upload + monthly_traffic.sync_file_upload + monthly_traffic.web_file_upload)}
{gettext('Upload')} {Utils.bytesToSize(traffic_this_month.link_file_upload + traffic_this_month.sync_file_upload + traffic_this_month.web_file_upload)}

Check warning on line 112 in frontend/src/pages/org-admin/org-info.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 18 spaces but found 20

Check warning on line 112 in frontend/src/pages/org-admin/org-info.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 18 space characters but found 20
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion seahub/organizations/api/admin/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_org_info(request, org_id):
info[FORCE_ADFS_LOGIN] = False

current_date = datetime.now()
info['monthly_traffic'] = get_org_traffic_by_month(org_id, current_date)
info['traffic_this_month'] = get_org_traffic_by_month(org_id, current_date)
info['storage_quota'] = storage_quota
info['storage_usage'] = storage_usage
info['user_default_quota'] = user_default_quota
Expand Down

0 comments on commit d658d6c

Please sign in to comment.