Fix replying to template update

This commit is contained in:
Tulir Asokan 2020-08-11 03:05:12 +03:00
parent 334acf141e
commit be90ee5465

View File

@ -307,7 +307,8 @@ class RSSBot(Plugin):
await evt.reply("This room is not subscribed to that feed")
return
self.db.update_template(feed.id, evt.room_id, template)
sub.notification_template = Template(template)
sub = Subscription(feed_id=feed.id, room_id=sub.room_id, user_id=sub.user_id,
notification_template=Template(template), send_notice=sub.send_notice)
sample_entry = Entry(feed.id, "SAMPLE", datetime.now(), "Sample entry",
"This is a sample entry to demonstrate your new template",
"http://example.com")