tUnset default config at the right time. - zs - Zeitungsschau rss to email converter
(HTM) git clone git://r-36.net/zs
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 023b5c2610d78e91dba980f456c7a227996b13d9
(DIR) parent e47a4623997bd098ca5988fdfd21b61d327860c8
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Sun, 12 May 2019 09:41:32 +0200
Unset default config at the right time.
Diffstat:
zeitungsschau/feeddb.py | 1 +
zs | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/zeitungsschau/feeddb.py b/zeitungsschau/feeddb.py
t@@ -185,6 +185,7 @@ class feeddb(object):
feed["pause"] = False
feed["articles"] = []
self.writefeed(uri, feed)
+ self.default = False
def delfeed(self, uri):
if uri in self.listfeeds():
(DIR) diff --git a/zs b/zs
t@@ -204,6 +204,7 @@ def main(args):
else:
db.cfg[largs[1]] = largs[2]
print("%s = '%s'" % (largs[1], db.cfg[largs[1]]))
+ db.default = False
elif largs[0] == "cfgdel":
if len(largs) < 2: