Skip to content
Snippets Groups Projects
Commit 5e3b8ed5 authored by Dariusz Kędzierski's avatar Dariusz Kędzierski
Browse files

Fix in accounts_by_name

* sql was never used in query_all,
* about field does not exists in hive_accounts
parent 8d29ca01
No related branches found
No related tags found
2 merge requests!456Release candidate v1 24,!328Fix in accounts_by_name
......@@ -10,10 +10,10 @@ log = logging.getLogger(__name__)
async def accounts_by_name(db, names, observer=None, lite=True):
"""Find and return accounts by `name`."""
sql = """SELECT id, name, about, created_at,
sql = """SELECT id, name, created_at,
rank, followers, following, posting_json_metadata, json_metadata
FROM hive_accounts WHERE name IN :names"""
rows = await db.query_all(names=tuple(names))
rows = await db.query_all(sql, names=tuple(names))
accounts = {}
for row in rows:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment