try sth
This commit is contained in:
parent
26f1ad785e
commit
e9d0ffd189
@ -31,11 +31,13 @@ LIMIT 1000
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub async fn generate_feed(db: &SqlitePool) -> String {
|
pub async fn generate_feed(db: &SqlitePool) -> String {
|
||||||
let mut ret = String::from("<?xml version=\"1.0\" encoding=\"utf-8\"?>
|
let mut ret = String::from(
|
||||||
|
r#"<?xml version=\"1.0\" encoding=\"utf-8\"?>
|
||||||
<rss version=\"2.0\">
|
<rss version=\"2.0\">
|
||||||
<channel>
|
<channel>
|
||||||
<title>Ruder App Admin Feed</title>
|
<title>Ruder App Admin Feed</title>
|
||||||
<description>An RSS feed with activities from app.rudernlinz.at</description>");
|
<description>An RSS feed with activities from app.rudernlinz.at</description>"#,
|
||||||
|
);
|
||||||
for log in Self::last(db).await {
|
for log in Self::last(db).await {
|
||||||
ret.push_str("<item><title>");
|
ret.push_str("<item><title>");
|
||||||
ret.push_str(&format!("({}) {}", log.created_at, log.msg));
|
ret.push_str(&format!("({}) {}", log.created_at, log.msg));
|
||||||
|
Loading…
Reference in New Issue
Block a user