.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
__init__ (self) | |
init (self) | |
load (self) | |
name_to_iso4217 (self, name) | |
iso4217_to_name (self, iso4217, language) | |
Public Attributes | |
cache = get_cache() | |
Static Public Attributes | |
str | ctx_names = "data_currencies_names" |
str | ctx_iso4217 = "data_currencies_iso4217" |
str | json_file = pathlib.Path(__file__).parent / "currencies.json" |
Definition at line 14 of file currencies.py.
searx.data.currencies.CurrenciesDB.__init__ | ( | self | ) |
Definition at line 22 of file currencies.py.
searx.data.currencies.CurrenciesDB.init | ( | self | ) |
Definition at line 25 of file currencies.py.
Referenced by searx.sqlitedb.SQLiteAppl.connect(), searx.sqlitedb.SQLiteAppl.DB(), iso4217_to_name(), and name_to_iso4217().
searx.data.currencies.CurrenciesDB.iso4217_to_name | ( | self, | |
iso4217, | |||
language ) |
Definition at line 51 of file currencies.py.
References cache, ctx_iso4217, searx.cache.ExpireCacheSQLite.init(), and init().
searx.data.currencies.CurrenciesDB.load | ( | self | ) |
Definition at line 33 of file currencies.py.
References cache, ctx_iso4217, ctx_names, and json_file.
Referenced by init().
searx.data.currencies.CurrenciesDB.name_to_iso4217 | ( | self, | |
name ) |
Definition at line 42 of file currencies.py.
References cache, ctx_names, searx.cache.ExpireCacheSQLite.init(), and init().
searx.data.currencies.CurrenciesDB.cache = get_cache() |
Definition at line 23 of file currencies.py.
Referenced by init(), iso4217_to_name(), load(), and name_to_iso4217().
|
static |
Definition at line 18 of file currencies.py.
Referenced by iso4217_to_name(), and load().
|
static |
Definition at line 17 of file currencies.py.
Referenced by load(), and name_to_iso4217().
|
static |
Definition at line 20 of file currencies.py.
Referenced by load().