Changeset 232


Ignore:
Timestamp:
Oct 1, 2009, 9:18:56 AM (11 years ago)
Author:
jjbot
Message:

Fixed bug in field mapping.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • parsers/liner.py

    r190 r232  
    2525        if(len(fieldnames) == 0):
    2626            fieldnames = header
    27    
     27
    2828    records = []
    2929    if(conditions):
     
    3333
    3434    # apply function mapping to records
    35     for key, function in mapper:
     35    for key in mapper.keys():
    3636        assert key in fieldnames, \
    3737                "Key: " + key + " not found in provided fieldnames."
     
    4444        return container.table(records, fieldnames, fieldtypes=fieldtypes)
    4545
    46     return container.table(records, fieldnames)
     46    return container.table(records, fieldnames=fieldnames)
Note: See TracChangeset for help on using the changeset viewer.