mirror of
https://github.com/opencultureconsulting/openrefine-client.git
synced 2025-02-16 00:00:07 +01:00
get-models differs between OpenRefine 4.x and OpenRefine 3.x
https://groups.google.com/g/openrefine-dev/c/N6tRlDBZ05g
This commit is contained in:
parent
a368147bdf
commit
1dd0cafd4e
3
.gitignore
vendored
3
.gitignore
vendored
@ -4,7 +4,6 @@ dist
|
||||
.*
|
||||
openrefine_client.egg-info
|
||||
refine.spec
|
||||
openrefine-2.*
|
||||
openrefine-3.*
|
||||
openrefine-*
|
||||
openrefine-client_*
|
||||
tests-cli.log
|
||||
|
@ -1,4 +1,4 @@
|
||||
# OpenRefine Python Client with extended command line interface
|
||||
# OpenRefine Python Client with extended command line interface (⌨️ for 💎)
|
||||
|
||||
[](https://www.codacy.com/gh/opencultureconsulting/openrefine-client/dashboard) [](https://hub.docker.com/r/felixlohmeier/openrefine-client/) [](https://pypi.org/project/openrefine-client/) [](https://mybinder.org/v2/gh/felixlohmeier/openrefineder/master)
|
||||
|
||||
|
@ -413,7 +413,10 @@ class RefineProject:
|
||||
for i, column in enumerate(column_model['columns']):
|
||||
name = column['name']
|
||||
self.column_order[name] = i
|
||||
column_index[name] = column['cellIndex']
|
||||
try:
|
||||
column_index[name] = column['cellIndex']
|
||||
except KeyError:
|
||||
column_index[name] = i
|
||||
self.key_column = column_model['keyColumnName']
|
||||
self.has_records = response['recordModel'].get('hasRecords', False)
|
||||
self.rows_response_factory = RowsResponseFactory(column_index)
|
||||
|
Loading…
x
Reference in New Issue
Block a user