Twitter: Remove Twitter deprecation on feb 9 due to (more) changes on dates, features and stuff

This commit is contained in:
Manuel Cortez 2023-02-08 23:00:45 -06:00
parent d0fcf88b31
commit 310ba003c9
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790
2 changed files with 7 additions and 4 deletions

View File

@ -3,10 +3,10 @@ import datetime
# Make date check for feb 9. # Make date check for feb 9.
now = datetime.datetime.now() now = datetime.datetime.now()
end_of_twitter = datetime.datetime(2023, 2, 9) end_of_twitter = datetime.datetime(2023, 2, 13)
twitter_support_enabled = True twitter_support_enabled = True
if now >= end_of_twitter: #if now >= end_of_twitter:
twitter_support_enabled = False # twitter_support_enabled = False
name = 'TWBlue' name = 'TWBlue'
short_name='twblue' short_name='twblue'
update_url = 'https://twblue.es/updates/updates.php' update_url = 'https://twblue.es/updates/updates.php'

View File

@ -829,7 +829,10 @@ class Controller(object):
output.speak(msg, True) output.speak(msg, True)
def previous_account(self, *args, **kwargs): def previous_account(self, *args, **kwargs):
index = self.accounts.index(self.current_account) try:
index = self.accounts.index(self.current_account)
except ValueError:
index = 0
if index-1 < 0: if index-1 < 0:
index = len(self.accounts)-1 index = len(self.accounts)-1
else: else: