Remove unused fields for depicts.
This commit is contained in:
parent
28a03212f5
commit
f1264c8333
|
@ -26,9 +26,7 @@ class DepictsItem(Base):
|
||||||
item_id = Column(Integer, primary_key=True, autoincrement=False)
|
item_id = Column(Integer, primary_key=True, autoincrement=False)
|
||||||
label = Column(String)
|
label = Column(String)
|
||||||
description = Column(String)
|
description = Column(String)
|
||||||
commons = Column(String)
|
|
||||||
count = Column(Integer)
|
count = Column(Integer)
|
||||||
entity = Column(postgresql.JSON)
|
|
||||||
qid = column_property('Q' + cast(item_id, String))
|
qid = column_property('Q' + cast(item_id, String))
|
||||||
db_alt_labels = relationship('DepictsItemAltLabel',
|
db_alt_labels = relationship('DepictsItemAltLabel',
|
||||||
collection_class=set,
|
collection_class=set,
|
||||||
|
@ -96,7 +94,6 @@ class Item(Base):
|
||||||
for v in values
|
for v in values
|
||||||
if 'datavalue' in v['mainsnak']]
|
if 'datavalue' in v['mainsnak']]
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def date(self):
|
def date(self):
|
||||||
v = wikibase.first_datavalue(self.entity, 'P571')
|
v = wikibase.first_datavalue(self.entity, 'P571')
|
||||||
|
|
Loading…
Reference in a new issue