Fixed pubdate

This commit is contained in:
Erik C. Thauvin 2022-07-11 07:35:21 -07:00
parent 2eb1c314cf
commit a18c15e172

View file

@ -136,7 +136,7 @@ class CurrencyConverter : ThreadedModule() {
// Currency codes // Currency codes
private val CODES: MutableMap<String, String> = mutableMapOf() private val CODES: MutableMap<String, String> = mutableMapOf()
// Last exchange rates table publication date // Last currency table retrieval date
private var pubDate = "" private var pubDate = ""
/** /**
@ -189,6 +189,7 @@ class CurrencyConverter : ThreadedModule() {
for (key in symbols.keys()) { for (key in symbols.keys()) {
CODES[key] = symbols.getJSONObject(key).getString("description") CODES[key] = symbols.getJSONObject(key).getString("description")
} }
pubDate = today()
} }
} catch (e: IOException) { } catch (e: IOException) {
throw ModuleException( throw ModuleException(