mirror of
https://github.com/opencultureconsulting/openrefine-client.git
synced 2025-04-13 00:00:34 +02:00
Tidy up Facet
This commit is contained in:
parent
478fae7d91
commit
b34ff146c4
@ -32,11 +32,10 @@ def from_camel(attr):
|
|||||||
|
|
||||||
|
|
||||||
class Facet(object):
|
class Facet(object):
|
||||||
def __init__(self, column, type, expression='value',
|
def __init__(self, column, type, expression='value', **options):
|
||||||
**options):
|
|
||||||
self.type = type
|
self.type = type
|
||||||
|
self.name = column
|
||||||
self.column_name = column
|
self.column_name = column
|
||||||
self.name = column # XXX not sure what the difference is yet
|
|
||||||
self.expression = expression
|
self.expression = expression
|
||||||
for k, v in options.items():
|
for k, v in options.items():
|
||||||
setattr(self, k, v)
|
setattr(self, k, v)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user