Skip to content

Commit

Permalink
Merge 5e6fe42 into 4621445
Browse files Browse the repository at this point in the history
  • Loading branch information
BT-tpiric committed Apr 22, 2019
2 parents 4621445 + 5e6fe42 commit e18c2df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions currency_rate_update/services/update_service_CH_ADMIN.py
Expand Up @@ -46,8 +46,8 @@ def rate_retrieve(self, dom, ns, curr):
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)
Expand All @@ -58,7 +58,7 @@ def get_updated_currency(self, currency_array, main_currency,
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()',
Expand Down

0 comments on commit e18c2df

Please sign in to comment.