A corporation manager and dashboard for EVE Online
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. from .getters import get_current, get_overview, get_summary, get_unit
  3. from .routes import home, navitem
  4. from .._provided import config
  5. def _get_scopes():
  6. """Determine the required scopes, depending on enabled operations."""
  7. for cname in config["enabled"]:
  8. campaign = config["campaigns"][cname]
  9. for opname in campaign["enabled"]:
  10. optype = campaign["operations"][opname]["type"]
  11. if optype == "collection":
  12. return {"esi-assets.read_assets.v1"}
  13. return {}
  14. SCOPES = _get_scopes()