]> gitweb.pimeys.fr Git - today.git/blobdiff - today_server.py
Modularisation++
[today.git] / today_server.py
index ef73747f94dfa130555931a51c0ddd45a240b364..1727e27d5a19b6ecb164fd0929117851471cf48f 100755 (executable)
@@ -17,8 +17,6 @@ import sys
 import urllib
 import json
 os.chdir('/home/vincent/scripts/today/')
-sys.path.append("/home/vincent/scripts/dtc/")
-import dtc
 
 #: Config serveur
 import serverconfig
@@ -26,10 +24,6 @@ import serverconfig
 #: Récupération de toutes les nouveautés
 import gather
 
-def last_dtc():
-    """Vérifie si il y a des quotes DTC non lues"""
-    return dtc.last_inserted()
-
 def last_xkcd():
     p = urllib.urlopen("http://xkcd.com")
     t = p.read()
@@ -67,7 +61,6 @@ def update_file(news):
 
 FETCHS = {
           "xkcd" : last_xkcd,
-          "dtc" : last_dtc,
           "xantah" : last_xantah,
           "dc" : last_jl8,
          }