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
Merge requests
!118
The call `get_accounts` is not supported by hivemind anymore
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
The call `get_accounts` is not supported by hivemind anymore
mt-get-accounts
into
develop
Overview
0
Commits
1
Pipelines
0
Changes
6
Merged
Mariusz Trela
requested to merge
mt-get-accounts
into
develop
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
6
Expand
@bwrona
@ABW
0
0
Merge request reports
Compare
develop
version 4
bdad637d
4 years ago
version 3
a1ca63a2
4 years ago
version 2
451ebd01
4 years ago
version 1
f318009e
4 years ago
develop (base)
and
version 2
latest version
27c97f59
1 commit,
4 years ago
version 4
bdad637d
1 commit,
4 years ago
version 3
a1ca63a2
1 commit,
4 years ago
version 2
451ebd01
2 commits,
4 years ago
version 1
f318009e
1 commit,
4 years ago
6 files
+
1
−
48
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
hive/server/condenser_api/cursor.py
+
0
−
36
Options
@@ -433,39 +433,3 @@ async def pids_by_replies_to_account(db, start_author: str, start_permlink: str
"""
%
seek
return
await
db
.
query_col
(
sql
,
parent
=
parent_account
,
start_id
=
start_id
,
limit
=
limit
)
async
def
get_accounts
(
db
,
accounts
:
list
):
"""
Returns accounts data for accounts given in list
"""
ret
=
[]
names
=
[
"'
{}
'"
.
format
(
a
)
for
a
in
accounts
]
sql
=
"""
SELECT *
FROM hive_accounts_info_view WHERE name IN ({})
"""
.
format
(
"
,
"
.
join
(
names
))
result
=
await
db
.
query_all
(
sql
)
for
row
in
result
:
account_data
=
{}
if
not
row
.
raw_json
is
None
and
row
.
raw_json
!=
''
:
account_data
=
dict
(
loads
(
row
.
raw_json
))
account_data
[
'
created_at
'
]
=
row
.
created_at
.
isoformat
()
account_data
[
'
reputation
'
]
=
row
.
reputation
account_data
[
'
display_name
'
]
=
row
.
display_name
account_data
[
'
about
'
]
=
row
.
about
account_data
[
'
location
'
]
=
row
.
location
account_data
[
'
website
'
]
=
row
.
website
account_data
[
'
profile_image
'
]
=
row
.
profile_image
account_data
[
'
cover_image
'
]
=
row
.
cover_image
account_data
[
'
followers
'
]
=
row
.
followers
account_data
[
'
following
'
]
=
row
.
following
account_data
[
'
proxy
'
]
=
row
.
proxy
account_data
[
'
post_count
'
]
=
row
.
post_count
account_data
[
'
proxy_weight
'
]
=
row
.
proxy_weight
account_data
[
'
rank
'
]
=
row
.
rank
account_data
[
'
lastread_at
'
]
=
row
.
lastread_at
.
isoformat
()
account_data
[
'
active_at
'
]
=
row
.
active_at
.
isoformat
()
account_data
[
'
cached_at
'
]
=
row
.
cached_at
.
isoformat
()
ret
.
append
(
account_data
)
return
ret
Loading