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)
|
||||
label = Column(String)
|
||||
description = Column(String)
|
||||
commons = Column(String)
|
||||
count = Column(Integer)
|
||||
entity = Column(postgresql.JSON)
|
||||
qid = column_property('Q' + cast(item_id, String))
|
||||
db_alt_labels = relationship('DepictsItemAltLabel',
|
||||
collection_class=set,
|
||||
|
@ -96,7 +94,6 @@ class Item(Base):
|
|||
for v in values
|
||||
if 'datavalue' in v['mainsnak']]
|
||||
|
||||
|
||||
@property
|
||||
def date(self):
|
||||
v = wikibase.first_datavalue(self.entity, 'P571')
|
||||
|
|
Loading…
Reference in a new issue