]> gitweb.pimeys.fr Git - today.git/blobdiff - today.py
on affiche le dernier id des trucs non lues (plus facile pour update)
[today.git] / today.py
index c8a9e3194d6c1a9062a883e38c00cc62c6df4a2a..470b2584365773220bcfa78000a65666cc5dd8d6 100755 (executable)
--- a/today.py
+++ b/today.py
@@ -201,11 +201,20 @@ def update_xantah(newid):
 def update_visiteur(newid):
     update_last_seen({"visiteur" : int(newid)})
 
+def update_noob(newid):
+    update_last_seen({"noob" : int(newid)})
+
+def update_warpzone(newid):
+    update_last_seen({"warpzone" : int(newid)})
+
+
 THINGS = {
           "dtc" : u"Quotes DTC",
           "xkcd" : u"Épisodes de XKCD",
           "xantah" : u"Épisodes de La Légende de Xantah",
           "visiteur" : u"Épisodes du Visiteur du Futur",
+          "noob" : u"Épisodes de NOOB",
+          "warpzone" : u"Épisodes de WARPZONE PROJECT",
 
           "birthdays" : u"Anniversaires à souhaiter",
          }
@@ -224,7 +233,7 @@ def check_all():
         if type(n) != int:
             print n
         elif n > 0:
-            checks.append("%s : %s" % (comm, n))
+            checks.append("%s : %s (last : %s)" % (comm, n, news[thing]))
     checks = u"\n".join(checks)
     checks = add_title(u"Checks", checks)
     return checks
@@ -332,6 +341,8 @@ OTHER_ACTIONS = {
            "xkcd" : update_xkcd,
            "xantah" : update_xantah,
            "visiteur" : update_visiteur,
+           "noob" : update_noob,
+           "warpzone" : update_warpzone,
            
            "dtc" : get_dtc,
            "ping" : ping,