Remove unused fields for depicts.

This commit is contained in:
Edward Betts 2019-12-30 09:20:53 +00:00
parent 28a03212f5
commit f1264c8333

View file

@ -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')