Fix FuenfVorAcht History: nur echte Posts anzeigen
This commit is contained in:
parent
b458eb64bc
commit
5594f783c7
4 changed files with 41 additions and 3 deletions
28
arakava-news/README.md
Normal file
28
arakava-news/README.md
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# Arakava News
|
||||
|
||||
Manuelle Projektdoku fuer dauerhafte Hinweise, die **nicht** in die auto-generierte `STATE.md` gehoeren.
|
||||
|
||||
## RSS-Manager
|
||||
|
||||
- Primarer Feed- und Posting-Dienst: `CT 109`
|
||||
- WordPress-Ziel: `arakavanews.com`
|
||||
- RSS-Manager-URL: `http://100.113.244.101:8080`
|
||||
|
||||
## Feed-Aenderung Maerz 2026
|
||||
|
||||
- Der Feed `Corona-Transition` wurde ersetzt, weil `transition-news.org` nach dem Domainwechsel keinen funktionierenden RSS-Backend-Feed mehr geliefert hat.
|
||||
- Ersatzfeed ist jetzt `Norbert Haering` mit `https://norberthaering.de/feed/`.
|
||||
- Das bestehende Posting-Intervall blieb unveraendert bei `4 Stunden`.
|
||||
|
||||
## WordPress-Zuordnung
|
||||
|
||||
- Die bisherige Kategorie `Corona-Transition` wurde direkt umbenannt.
|
||||
- Aktueller Kategoriename: `Norbert Haering`
|
||||
- Aktueller Slug: `norbert-haering`
|
||||
- Hauptbereich: `Gesundheit`
|
||||
|
||||
## Logo-Stand
|
||||
|
||||
- Das alte `C`-Symbol von `Corona-Transition` wird fuer neue Beitraege nicht mehr verwendet.
|
||||
- Fuer `Norbert Haering` wurde ein neues WordPress-Medium hinterlegt und dem Feed zugeordnet.
|
||||
- Ein Test-/Live-Post wurde nach der Umstellung erfolgreich auf WordPress veroeffentlicht.
|
||||
|
|
@ -168,7 +168,7 @@ def index():
|
|||
|
||||
@app.route('/history')
|
||||
def history():
|
||||
articles = db.get_recent_articles(30)
|
||||
articles = db.get_recent_posted_articles(30)
|
||||
return render_template('history.html', articles=articles)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -431,6 +431,16 @@ def get_recent_articles(limit=30):
|
|||
return [dict(r) for r in rows]
|
||||
|
||||
|
||||
def get_recent_posted_articles(limit=30):
|
||||
conn = get_conn()
|
||||
rows = conn.execute(
|
||||
"SELECT * FROM articles WHERE status='posted' ORDER BY posted_at DESC LIMIT ?",
|
||||
(limit,)
|
||||
).fetchall()
|
||||
conn.close()
|
||||
return [dict(r) for r in rows]
|
||||
|
||||
|
||||
def get_week_articles(from_date, to_date):
|
||||
conn = get_conn()
|
||||
rows = conn.execute(
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
</nav>
|
||||
|
||||
<div class="max-w-4xl mx-auto px-6 py-8">
|
||||
<h1 class="text-2xl font-bold text-white mb-6">📋 Artikel-History</h1>
|
||||
<h1 class="text-2xl font-bold text-white mb-6">📋 Posting-History</h1>
|
||||
<div class="space-y-4">
|
||||
{% for art in articles %}
|
||||
<div class="card p-4">
|
||||
|
|
@ -58,7 +58,7 @@
|
|||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="text-slate-400">Noch keine Artikel vorhanden.</div>
|
||||
<div class="text-slate-400">Noch keine geposteten Artikel vorhanden.</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue