mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Now a session is saved properly when session manager creates it
This commit is contained in:
parent
632e54a727
commit
4d1e03fb64
@ -218,6 +218,7 @@ class Session(object):
|
|||||||
|
|
||||||
f = self.twitter.twitter.get_account_settings()
|
f = self.twitter.twitter.get_account_settings()
|
||||||
sn = f["screen_name"]
|
sn = f["screen_name"]
|
||||||
|
self.settings["twitter"]["user_name"] = sn
|
||||||
self.db["user_name"] = sn
|
self.db["user_name"] = sn
|
||||||
self.db["user_id"] = self.twitter.twitter.show_user(screen_name=sn)["id_str"]
|
self.db["user_id"] = self.twitter.twitter.show_user(screen_name=sn)["id_str"]
|
||||||
try:
|
try:
|
||||||
|
@ -28,7 +28,7 @@ class sessionManagerController(object):
|
|||||||
strconfig = "%s/session.conf" % (paths.config_path(i))
|
strconfig = "%s/session.conf" % (paths.config_path(i))
|
||||||
config_test = Configuration(strconfig)
|
config_test = Configuration(strconfig)
|
||||||
name = config_test["twitter"]["user_name"]
|
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)
|
sessionsList.append(name)
|
||||||
self.sessions.append(i)
|
self.sessions.append(i)
|
||||||
# else:
|
# else:
|
||||||
|
Loading…
Reference in New Issue
Block a user