Skip to content

Commit

Permalink
fix quota state difference from one drive business
Browse files Browse the repository at this point in the history
  • Loading branch information
derrix060 committed Sep 18, 2017
1 parent 88b132a commit 936341c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions onedrived/od_pref.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,13 @@ def print_all_drives():
authenticator, drives = od_auth.get_authenticator_and_drives(context, i, profile.account_type)
for d in drives:
drive_objs.append(d)
drive_table.append((str(len(drive_table)), profile.account_email,
d.id, d.drive_type, quota_short_str(d.quota), d.status.state))
if(profile.account_type == od_auth.AccountTypes.BUSINESS):
drive_table.append((str(len(drive_table)), profile.account_email,
d.id, d.drive_type, quota_short_str(d.quota), d.quota.state))
else:
drive_table.append((str(len(drive_table)), profile.account_email,
d.id, d.drive_type, quota_short_str(d.quota), d.status.state))

all_drives[i] = (profile, authenticator, drive_objs)
click.secho(translator['od_pref.print_all_drives.all_drives_table.note'], bold=True)
click.echo()
Expand Down

0 comments on commit 936341c

Please sign in to comment.