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

Method __init__

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

Source from the content-addressed store, hash-verified

445 return cls._instance
446
447 def __init__(self):
448 # mode
449 # 0 - Do not add to total
450 # 1 - Add to total
451 PriceMenuDefaultSettings = {
452 "drones" : 1,
453 "cargo" : 1,
454 "character" : 0,
455 "marketMGJumpMode": 0,
456 "marketMGEmptyMode": 1,
457 "marketMGSearchMode": 0,
458 "marketMGMarketSelectMode": 0
459 }
460
461 self.PriceMenuDefaultSettings = SettingsProvider.getInstance().getSettings("pyfaPriceMenuSettings",
462 PriceMenuDefaultSettings)
463
464 def get(self, type):
465 return self.PriceMenuDefaultSettings[type]

Callers

nothing calls this directly

Calls 2

getSettingsMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected