pricedb/cli.py
def import_csv(filepath: str, currency: str):
    """ Import prices from CSV file """
    logger.debug(f"currency = {currency}")
    # auto-convert to uppercase.
    currency = currency.upper()

    app = PriceDbApplication()
    app.logger = logger
    app.import_prices(filepath, currency)
def import_csv(filepath: str, currency: str):
    """ Import prices from CSV file """
    logger.debug(f"currency = {currency}")
    # auto-convert to uppercase.
    currency = currency.upper()

    app = PriceDbApplication()
    app.logger = logger
    app.import_prices(filepath, currency)
def import_csv ( filepath : str , currency : str ) : logger . debug ( f"currency = {currency}" ) # auto-convert to uppercase. currency = currency . upper ( ) app = PriceDbApplication ( ) app . logger = logger app . import_prices ( filepath , currency )
Import prices from CSV file
Import prices from CSV file