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
!370
Jsalyers muting at sql level
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Jsalyers muting at sql level
jsalyers-muting-at-sql-level
into
develop
Overview
9
Commits
92
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Merged
Jason Salyers
requested to merge
jsalyers-muting-at-sql-level
into
develop
4 years ago
Overview
9
Commits
92
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Expand
0
0
Merge request reports
Viewing commit
f3272528
Prev
Next
Show latest version
1 file
+
1
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
f3272528
Removed unused imports
· f3272528
Dariusz Kędzierski
authored
4 years ago
hive/indexer/follow.py
+
1
−
4
Options
"""
Handles follow operations.
"""
import
logging
from
time
import
perf_counter
as
perf
from
json
import
dumps
from
funcy.seqs
import
first
from
hive.db.adapter
import
Db
from
hive.db.db_state
import
DbState
from
hive.utils.misc
import
chunks
from
hive.indexer.accounts
import
Accounts
@@ -74,7 +71,7 @@ class Follow(DbAdapterHolder):
@classmethod
def
_validated_op
(
cls
,
account
,
op
,
date
):
"""
Validate and normalize the operation.
"""
if
(
not
'
what
'
in
op
if
(
not
'
what
'
in
op
or
not
isinstance
(
op
[
'
what
'
],
list
)
or
not
'
follower
'
in
op
or
not
'
following
'
in
op
):
Loading