harcoding the feed url, not the log url
This commit is contained in:
parent
d371d90be4
commit
d8892cef99
@ -112,9 +112,8 @@ class Logbot(Bot):
|
|||||||
template = jinja2.Template(open("template.rss").read()) # self.feedtemplate would be useful to have in the conf
|
template = jinja2.Template(open("template.rss").read()) # self.feedtemplate would be useful to have in the conf
|
||||||
with open(feed_path, "w") as out:
|
with open(feed_path, "w") as out:
|
||||||
feed = template.render(
|
feed = template.render(
|
||||||
log_path=os.path.join(
|
log_path=os.path.join("https://vvvvvvaria.org/logs/", folder_name, "index.html"), # hardcoding the url now, self.baseurl would be helpful to have in the conf
|
||||||
"https://vvvvvvaria.org/logs/", folder_name, "index.html"
|
feed_path=os.path.join("https://vvvvvvaria.org/logs/", folder_name, "feed.rss"), # hardcoding the url again
|
||||||
), # hardcoding the url now, self.baseurl would be helpful to have in the conf
|
|
||||||
title=self.db[message.room]["title"],
|
title=self.db[message.room]["title"],
|
||||||
db=self.db[message.room],
|
db=self.db[message.room],
|
||||||
date=date.strftime("%a, %d %b %Y %H:%M:%S +0100") # timezone is hardcoded now
|
date=date.strftime("%a, %d %b %Y %H:%M:%S +0100") # timezone is hardcoded now
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<link>{{ log_path }}</link>
|
<link>{{ log_path }}</link>
|
||||||
<description>Collective log writing using XMPP chat groups and LogBot.</description>
|
<description>Collective log writing using XMPP chat groups and LogBot.</description>
|
||||||
<lastBuildDate>{{ date }}</lastBuildDate>
|
<lastBuildDate>{{ date }}</lastBuildDate>
|
||||||
<atom:link href="{{ log_path }}" rel="self" type="application/rss+xml" />
|
<atom:link href="{{ feed_path }}" rel="self" type="application/rss+xml" />
|
||||||
{% for x, post in db["messages"].items() %}
|
{% for x, post in db["messages"].items() %}
|
||||||
<item>
|
<item>
|
||||||
<title>{{ title }}</title>
|
<title>{{ title }}</title>
|
||||||
|
Loading…
Reference in New Issue
Block a user