Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Fixed order fields work (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Nov 3, 2016
1 parent a152123 commit 6934fbf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions goodtables/checks/head/non_matching_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ def _slugify(string):


def _swap_fields(column1, column2):
field1 = column1['field']
column1['field'] = column2['field']
field1 = column1.get('field')
column1['field'] = column2.get('field')
column2['field'] = field1
if column1['field'] is None:
del column1['field']
if column2['field'] is None:
del column2['field']

0 comments on commit 6934fbf

Please sign in to comment.