Skip to content

Instantly share code, notes, and snippets.

@aragaer
Created August 1, 2012 08:53
Show Gist options
  • Select an option

  • Save aragaer/3225152 to your computer and use it in GitHub Desktop.

Select an option

Save aragaer/3225152 to your computer and use it in GitHub Desktop.
self.shares = 0
self.shareholders = []
holders = auth.corp.ShareHolders()
for r in [holders.characters, holders.corporations]:
for sh in r:
self.shareholders.append((sh.shareholderName, sh.shares))
self.shares += sh.shares
info = auth.corp.CorporationSheet()
self.wallets = {}
self.hangars = {}
for wallet in info.walletDivisions:
self.wallets[wallet.accountKey] = {'name': wallet.description}
for hangar in info.divisions:
self.hangars[hangar.accountKey] = hangar.description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment