(self)
| 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] |
nothing calls this directly
no test coverage detected