Skip to content
Snippets Groups Projects
Commit 8c7b673c authored by Jason Salyers's avatar Jason Salyers
Browse files

[JES] Replace my hardcoded name with variable observer

parent 85449392
No related branches found
No related tags found
No related merge requests found
...@@ -10,10 +10,10 @@ log = logging.getLogger(__name__) ...@@ -10,10 +10,10 @@ log = logging.getLogger(__name__)
GET_BLACKLISTED_ACCOUNTS = """ GET_BLACKLISTED_ACCOUNTS = """
with blacklisted_users as (select following, 'my_blacklist' as source from hive_follows where follower = with blacklisted_users as (select following, 'my_blacklist' as source from hive_follows where follower =
(select id from hive_accounts where name = 'jes2850' ) and blacklisted (select id from hive_accounts where name = :observer ) and blacklisted
union all union all
select following, 'my_followed_blacklists' as source from hive_follows where follower in (select following from hive_follows where follower = select following, 'my_followed_blacklists' as source from hive_follows where follower in (select following from hive_follows where follower =
(select id from hive_accounts where name = 'jes2850') and follow_blacklists)) (select id from hive_accounts where name = :observer ) and follow_blacklists))
select hive_accounts.name, blacklisted_users.source from hive_accounts join blacklisted_users on (hive_accounts.id = blacklisted_users.following) select hive_accounts.name, blacklisted_users.source from hive_accounts join blacklisted_users on (hive_accounts.id = blacklisted_users.following)
""" """
......
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