Cleanup utils
This commit is contained in:
parent
b7b04cad03
commit
f9f9e62e13
13 changed files with 21 additions and 13 deletions
|
@ -72,9 +72,9 @@ def get_lookup(
|
|||
if query:
|
||||
ap_object = lookup(db, query)
|
||||
if ap_object.ap_type in ap.ACTOR_TYPES:
|
||||
actors_metadata = get_actors_metadata(db, [ap_object])
|
||||
actors_metadata = get_actors_metadata(db, [ap_object]) # type: ignore
|
||||
else:
|
||||
actors_metadata = get_actors_metadata(db, [ap_object.actor])
|
||||
actors_metadata = get_actors_metadata(db, [ap_object.actor]) # type: ignore
|
||||
print(ap_object)
|
||||
return templates.render_template(
|
||||
db,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue