#!/usr/bin/env python

import logging

from xetracker.fetchers import charlie
from xetracker.persistance import currency_conversion_dao

logging.info('Fetching from Charlie')
currency_conversions = charlie.CharlieFetcher().fetch()
logging.info('Upserting currencies')
currency_conversion_dao.CurrencyConversionDAO().upsert(currency_conversions)
logging.info('Work finished')
