A corporation manager and dashboard for EVE Online
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 

18 рядки
570 B

  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()