Cleanup utils

This commit is contained in:
Thomas Sileo 2022-06-22 21:15:07 +02:00
parent b7b04cad03
commit f9f9e62e13
13 changed files with 21 additions and 13 deletions

View file

@ -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,