removed debug option
This commit is contained in:
parent
835c494d58
commit
2cc49dd68e
7
main.py
7
main.py
|
@ -16,7 +16,6 @@ html_stylesheet = "styles/simple.css"
|
||||||
title_animation = "fade-down"
|
title_animation = "fade-down"
|
||||||
heading_animation = "fade-right"
|
heading_animation = "fade-right"
|
||||||
list_animation = "fade-left"
|
list_animation = "fade-left"
|
||||||
debug = False
|
|
||||||
ConvertToHTML = True
|
ConvertToHTML = True
|
||||||
title = date.today().strftime('%d %B, %Y')
|
title = date.today().strftime('%d %B, %Y')
|
||||||
feeds = configparser.ConfigParser()
|
feeds = configparser.ConfigParser()
|
||||||
|
@ -32,14 +31,12 @@ if feeds.read("feeds.ini") == []:
|
||||||
print("feeds.ini does not exist!")
|
print("feeds.ini does not exist!")
|
||||||
exit(1)
|
exit(1)
|
||||||
else:
|
else:
|
||||||
if debug:
|
print("Reading feeds.ini")
|
||||||
print("Reading feeds.ini")
|
|
||||||
feeds.read("feeds.ini")
|
feeds.read("feeds.ini")
|
||||||
|
|
||||||
rss_feeds = [x for x in feeds.keys()]
|
rss_feeds = [x for x in feeds.keys()]
|
||||||
rss_feeds.pop(0)
|
rss_feeds.pop(0)
|
||||||
if debug:
|
print("Read %s feeds from the configuration file" % str(len(rss_feeds)))
|
||||||
print("Read %s feeds from the configuration file" % str(len(rss_feeds)))
|
|
||||||
|
|
||||||
def GetPosts(feed):
|
def GetPosts(feed):
|
||||||
Posts = {}
|
Posts = {}
|
||||||
|
|
Loading…
Reference in New Issue