diff --git a/src/var/lib/tyto/program/domain.py b/src/var/lib/tyto/program/domain.py index 9bf5c23..557bc31 100644 --- a/src/var/lib/tyto/program/domain.py +++ b/src/var/lib/tyto/program/domain.py @@ -253,7 +253,7 @@ def create_domain(target): if not ask.isdigit(): logs.out("3", ask, True) domain_rssitems = ask - set_f = 'domain_rssitems = "%s"'%domain_rssitems + set_f = 'domain_rssitems = %d'%domain_rssitems tyto.set_file(db.domain_conf, False, set_f) diff --git a/src/var/lib/tyto/program/rss.py b/src/var/lib/tyto/program/rss.py index 4df6cc2..02c2ef4 100644 --- a/src/var/lib/tyto/program/rss.py +++ b/src/var/lib/tyto/program/rss.py @@ -69,7 +69,7 @@ def create_feed(): rss_item = True nbr_item += 1 - if nbr_item > int(db.domain_rssitems): break + if nbr_item > db.domain_rssitems: break set_f = \ '%s\n'%set_f + \