Skip to content

Commit

Permalink
access the correct attribute to get the object description
Browse files Browse the repository at this point in the history
  • Loading branch information
marph91 committed Dec 29, 2024
1 parent bc2e8f1 commit 24f64b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pycldf/orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def __init__(self, dataset: 'Dataset', row: dict):
if t.tableSchema.primaryKey and len(t.tableSchema.primaryKey) == 1:
self.pk = self.data[dataset[self.component_name()].tableSchema.primaryKey[0]]
self.name = getattr(self.cldf, 'name', None)
self.description = getattr(self.cldf, 'name', None)
self.description = getattr(self.cldf, 'description', None)

def __repr__(self):
return '<{}.{} id="{}">'.format(self.__class__.__module__, self.__class__.__name__, self.id)
Expand Down

0 comments on commit 24f64b9

Please sign in to comment.