mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Twitter: Remove Twitter deprecation on feb 9 due to (more) changes on dates, features and stuff
This commit is contained in:
parent
d0fcf88b31
commit
310ba003c9
@ -3,10 +3,10 @@ import datetime
|
||||
|
||||
# Make date check for feb 9.
|
||||
now = datetime.datetime.now()
|
||||
end_of_twitter = datetime.datetime(2023, 2, 9)
|
||||
end_of_twitter = datetime.datetime(2023, 2, 13)
|
||||
twitter_support_enabled = True
|
||||
if now >= end_of_twitter:
|
||||
twitter_support_enabled = False
|
||||
#if now >= end_of_twitter:
|
||||
# twitter_support_enabled = False
|
||||
name = 'TWBlue'
|
||||
short_name='twblue'
|
||||
update_url = 'https://twblue.es/updates/updates.php'
|
||||
|
@ -829,7 +829,10 @@ class Controller(object):
|
||||
output.speak(msg, True)
|
||||
|
||||
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:
|
||||
index = len(self.accounts)-1
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user