Commit 62e741f3 authored by Bartek Wrona's avatar Bartek Wrona

Merge branch 'dk-accounts-by-name-fix' into 'develop'

Fix in accounts_by_name

See merge request !328
parents ce0cb007 5e3b8ed5
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment