Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Commits
62e741f3
Commit
62e741f3
authored
4 years ago
by
Bartek Wrona
Browse files
Options
Downloads
Plain Diff
Merge branch 'dk-accounts-by-name-fix' into 'develop'
Fix in accounts_by_name See merge request
!328
parents
ce0cb007
5e3b8ed5
No related branches found
Branches containing commit
Tags
v1.24.1
Tags containing commit
2 merge requests
!456
Release candidate v1 24
,
!328
Fix in accounts_by_name
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hive/server/hive_api/objects.py
+2
-2
2 additions, 2 deletions
hive/server/hive_api/objects.py
with
2 additions
and
2 deletions
hive/server/hive_api/objects.py
+
2
−
2
View file @
62e741f3
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment