From 55bac503ce31308d01f1d3ca59f26d5da3ee56f0 Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Fri, 17 Mar 2023 18:45:29 +0100 Subject: [PATCH] changes in rss items format --- src/var/lib/tyto/program/domain.py | 2 +- src/var/lib/tyto/program/rss.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 + \