SrcAttribute object has no attribute has_citations

Fixes #012599
This commit is contained in:
SNoiraud 2022-03-30 09:46:20 +02:00 committed by Nick Hall
parent c7b1a23441
commit 218d752920

View File

@ -39,13 +39,12 @@ from gi.repository import Gtk
class AttrModel(Gtk.ListStore):
def __init__(self, attr_list, db):
Gtk.ListStore.__init__(self, str, str, bool, bool, object)
Gtk.ListStore.__init__(self, str, str, bool, object)
self.db = db
for attr in attr_list:
self.append(row=[
str(attr.get_type()),
attr.get_value(),
attr.has_citations(),
attr.get_privacy(),
attr,
])