Skip to content

Commit

Permalink
return type
Browse files Browse the repository at this point in the history
  • Loading branch information
mudphudwang committed Jul 10, 2023
1 parent 8ce328b commit bac78c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions djutils/links.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def clean(cls):
for table in cls.tables:
part = getattr(cls, table)
master = cls & {f"{cls.name}_type": part.__name__}
keys += (master - part).fetch("KEY")
keys += (master - part).fetch(dj.key)

(cls & keys).delete()

Expand All @@ -70,7 +70,7 @@ def query(cls, link_type, link_key=None):
Returns
-------
dj.Lookup
djutils.links.Link
link table restricted by link type, and optionally restricted by link key
"""
keys = cls & {f"{cls.name}_type": link_type}
Expand Down

0 comments on commit bac78c8

Please sign in to comment.