pricedb/map_cli.py
def add_map(incoming, outgoing):
    """ Creates a symbol mapping """
    db_path = Config().get(ConfigKeys.pricedb_path)
    session = get_session(db_path)

    new_map = SymbolMap()
    new_map.in_symbol = incoming
    new_map.out_symbol = outgoing

    session.add(new_map)
    session.commit()
    click.echo("Record saved.")
def add_map(incoming, outgoing):
    db_path = Config().get(ConfigKeys.pricedb_path)
    session = get_session(db_path)

    new_map = SymbolMap()
    new_map.in_symbol = incoming
    new_map.out_symbol = outgoing

    session.add(new_map)
    session.commit()
    click.echo("Record saved.")
def add_map ( incoming , outgoing ) : db_path = Config ( ) . get ( ConfigKeys . pricedb_path ) session = get_session ( db_path ) new_map = SymbolMap ( ) new_map . in_symbol = incoming new_map . out_symbol = outgoing session . add ( new_map ) session . commit ( ) click . echo ( "Record saved." )
Creates a symbol mapping
Creates a symbol mapping