A corporation manager and dashboard for EVE Online
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

__init__.py 570 B

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