MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / __init__

Method __init__

service/settings.py:364–387  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

362 return cls._instance
363
364 def __init__(self):
365 # SSO Mode:
366 # 0 - pyfa.io
367 # 1 - custom application
368 # LoginMode:
369 # 0 - Server Start Up
370 # 1 - User copy and paste data from website to pyfa
371 defaults = {
372 "ssoMode": 0,
373 "loginMode": 0,
374 "clientID": "",
375 "clientSecret": "",
376 "timeout": 60,
377 "server": "Tranquility",
378 "exportCharges": True,
379 "exportImplants": True,
380 "exportBoosters": True,
381 "enforceJwtExpiration": True
382 }
383
384 self.settings = SettingsProvider.getInstance().getSettings(
385 "pyfaServiceEsiSettings",
386 defaults
387 )
388
389 def get(self, type):
390 return self.settings[type]

Callers

nothing calls this directly

Calls 2

getSettingsMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected