From 8af1e650b7683256ad1736a4d14ddbbda456601a Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Fri, 25 May 2018 09:46:39 -0500 Subject: [PATCH] Added streaming_lives, wich will tell TWBlue if it should use Streaming Features or not --- src/application.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/application.py b/src/application.py index 77ceb068..440519a0 100644 --- a/src/application.py +++ b/src/application.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +import datetime + name = 'TWBlue' snapshot = False if snapshot == False: @@ -16,4 +18,11 @@ description = unicode(name+" is an app designed to use Twitter simply and effici translators = [u"Manuel Cortéz (English)", u"Mohammed Al Shara, Hatoun Felemban (Arabic)", u"Francisco Torres (Catalan)", u"Manuel cortéz (Spanish)", u"Sukil Etxenike Arizaleta (Basque)", u"Jani Kinnunen (finnish)", u"Rémy Ruiz (French)", u"Juan Buño (Galician)", u"Steffen Schultz (German)", u"Zvonimir Stanečić (Croatian)", u"Robert Osztolykan (Hungarian)", u"Christian Leo Mameli (Italian)", u"Riku (Japanese)", u"Paweł Masarczyk (Polish)", u"Odenilton Júnior Santos (Portuguese)", u"Florian Ionașcu, Nicușor Untilă (Romanian)", u"Natalia Hedlund, Valeria Kuznetsova (Russian)", u"Aleksandar Đurić (Serbian)", u"Burak Yüksek (Turkish)"] url = u"https://twblue.es" report_bugs_url = "https://github.com/manuelcortez/twblue/issues" -supported_languages = [] \ No newline at end of file +supported_languages = [] + +def streaming_lives(): + """ Check if we are in August 16. + ToDo: This method should be removed after deadline==True""" + deadline = datetime.date(2018, 8, 16) + now = datetime.datetime.now().date() + return deadline>now \ No newline at end of file