Queer European MD passionate about IT
Selaa lähdekoodia

Wrong weekdays indexes fixed

Davte 4 vuotta sitten
vanhempi
commit
0b01ecbdd5
2 muutettua tiedostoa jossa 10 lisäystä ja 10 poistoa
  1. 1 1
      davtelepot/__init__.py
  2. 9 9
      davtelepot/utilities.py

+ 1 - 1
davtelepot/__init__.py

@@ -14,7 +14,7 @@ __author__ = "Davide Testa"
 __email__ = "davide@davte.it"
 __credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
 __license__ = "GNU General Public License v3.0"
-__version__ = "2.4.19"
+__version__ = "2.4.20"
 __maintainer__ = "Davide Testa"
 __contact__ = "t.me/davte"
 

+ 9 - 9
davtelepot/utilities.py

@@ -25,33 +25,33 @@ from bs4 import BeautifulSoup
 
 weekdays = collections.OrderedDict()
 weekdays[0] = {
-    'en': "Sunday",
-    'it': "Domenica",
-}
-weekdays[1] = {
     'en': "Monday",
     'it': "Lunedì",
 }
-weekdays[2] = {
+weekdays[1] = {
     'en': "Tuesday",
     'it': "Martedì",
 }
-weekdays[3] = {
+weekdays[2] = {
     'en': "Wednesday",
     'it': "Mercoledì",
 }
-weekdays[4] = {
+weekdays[3] = {
     'en': "Thursday",
     'it': "Giovedì",
 }
-weekdays[5] = {
+weekdays[4] = {
     'en': "Friday",
     'it': "Venerdì",
 }
-weekdays[6] = {
+weekdays[5] = {
     'en': "Saturday",
     'it': "Sabato",
 }
+weekdays[6] = {
+    'en': "Sunday",
+    'it': "Domenica",
+}
 
 
 def sumif(iterable, condition):