push
This commit is contained in:
parent
e9d0ffd189
commit
abf720ed36
@ -32,10 +32,11 @@ LIMIT 1000
|
||||
|
||||
pub async fn generate_feed(db: &SqlitePool) -> String {
|
||||
let mut ret = String::from(
|
||||
r#"<?xml version=\"1.0\" encoding=\"utf-8\"?>
|
||||
<rss version=\"2.0\">
|
||||
r#"<?xml version="1.0" encoding="utf-8"?>
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title>Ruder App Admin Feed</title>
|
||||
<link>app.rudernlinz.at</link>
|
||||
<description>An RSS feed with activities from app.rudernlinz.at</description>"#,
|
||||
);
|
||||
for log in Self::last(db).await {
|
||||
@ -45,6 +46,6 @@ LIMIT 1000
|
||||
}
|
||||
ret.push_str("</channel>");
|
||||
ret.push_str("</rss>");
|
||||
ret
|
||||
ret.replace("\n", "")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user