Commit b9d0236f authored by Francesco Poldi's avatar Francesco Poldi

New list for following/followers

parent 492c02fb
...@@ -14,12 +14,12 @@ user_object = [] ...@@ -14,12 +14,12 @@ user_object = []
author_list = {''} author_list = {''}
author_list.pop() author_list.pop()
__follow_object = {} _follow_object = {}
def clean_follow_list(): def clean_follow_list():
logme.debug(__name__+':clean_follow_list') logme.debug(__name__+':clean_follow_list')
global __follow_object global _follow_object
__follow_object = {} _follow_object = {}
def datecheck(datestamp, config): def datecheck(datestamp, config):
logme.debug(__name__+':datecheck') logme.debug(__name__+':datecheck')
...@@ -178,7 +178,7 @@ async def Users(u, config, conn): ...@@ -178,7 +178,7 @@ async def Users(u, config, conn):
async def Username(username, config, conn): async def Username(username, config, conn):
logme.debug(__name__+':Username') logme.debug(__name__+':Username')
global __follow_object global _follow_object
global follow_object global follow_object
follow_var = config.Following*"following" + config.Followers*"followers" follow_var = config.Following*"following" + config.Followers*"followers"
...@@ -196,11 +196,11 @@ async def Username(username, config, conn): ...@@ -196,11 +196,11 @@ async def Username(username, config, conn):
if config.Pandas: if config.Pandas:
logme.debug(__name__+':Username:object+pandas') logme.debug(__name__+':Username:object+pandas')
try: try:
_ = __follow_object[config.Username][follow_var] _ = _follow_object[config.Username][follow_var]
except KeyError: except KeyError:
__follow_object.update({config.Username: {follow_var: []}}) _follow_object.update({config.Username: {follow_var: []}})
__follow_object[config.Username][follow_var].append(username) _follow_object[config.Username][follow_var].append(username)
if config.Pandas_au: if config.Pandas_au:
logme.debug(__name__+':Username:object+pandas+au') logme.debug(__name__+':Username:object+pandas+au')
panda.update(__follow_object[config.Username], config) panda.update(_follow_object[config.Username], config)
_output(username, username, config) _output(username, username, config)
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