Now a session is saved properly when session manager creates it

This commit is contained in:
Manuel Cortez 2015-03-03 13:48:57 -06:00
parent 632e54a727
commit 4d1e03fb64
2 changed files with 2 additions and 1 deletions

View File

@ -218,6 +218,7 @@ class Session(object):
f = self.twitter.twitter.get_account_settings()
sn = f["screen_name"]
self.settings["twitter"]["user_name"] = sn
self.db["user_name"] = sn
self.db["user_id"] = self.twitter.twitter.show_user(screen_name=sn)["id_str"]
try:

View File

@ -28,7 +28,7 @@ class sessionManagerController(object):
strconfig = "%s/session.conf" % (paths.config_path(i))
config_test = Configuration(strconfig)
name = config_test["twitter"]["user_name"]
if name != "" and config_test["twitter"]["user_key"] != "" and config_test["twitter"]["user_secret"] != "":
if config_test["twitter"]["user_key"] != "" and config_test["twitter"]["user_secret"] != "":
sessionsList.append(name)
self.sessions.append(i)
# else: