diff --git a/currency_rate_update/services/update_service_CH_ADMIN.py b/currency_rate_update/services/update_service_CH_ADMIN.py index 42ce8c88c..4a798a33d 100644 --- a/currency_rate_update/services/update_service_CH_ADMIN.py +++ b/currency_rate_update/services/update_service_CH_ADMIN.py @@ -46,8 +46,8 @@ class ChAdminGetter(CurrencyGetterInterface): def get_updated_currency(self, currency_array, main_currency, max_delta_days): """Implementation of abstract method of Curreny_getter_interface""" - url = ('http://www.afd.admin.ch/publicdb/newdb/' - 'mwst_kurse/wechselkurse.php') + url = ('http://www.pwebapps.ezv.admin.ch/apps/rates/rate/' + 'getxml?activeSearchType=today') # We do not want to update the main currency if main_currency in currency_array: currency_array.remove(main_currency) @@ -58,7 +58,7 @@ class ChAdminGetter(CurrencyGetterInterface): dom = etree.fromstring(rawfile) _logger.debug("Admin.ch sent a valid XML file") adminch_ns = { - 'def': 'http://www.afd.admin.ch/publicdb/newdb/mwst_kurse' + 'def': 'http://www.pwebapps.ezv.admin.ch/apps/rates' } rate_date = dom.xpath( '/def:wechselkurse/def:datum/text()',