Merge branch 'master' of ssh://kitoy.me:56565/kitoy/pywallter
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
body
|
||||
{
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
|
||||
grid-template-rows: 0.1fr 1fr 0.1fr;
|
||||
grid-template-columns: 1fr 1fr 0fr 0fr 0fr 4fr 1fr;
|
||||
grid-template-rows: 0.1fr fr 0.1fr;
|
||||
gap: 3px 5px;
|
||||
grid-template-areas:
|
||||
"Menu Menu header header header header header"
|
||||
|
||||
@@ -216,7 +216,7 @@ def view_internal():
|
||||
def view():
|
||||
conn = sqlite3.connect(DATABASE) # Connexion à la base de donnée
|
||||
cursor = conn.cursor() # Création de l'objet "curseur"
|
||||
cursor.execute("""SELECT title, subtitle, creation_date, author, status FROM Blog_posts WHERE status='public_unified'""" )
|
||||
cursor.execute("""SELECT title_id, title, subtitle, creation_date, author, status FROM Blog_posts WHERE status='public_unified'""" )
|
||||
list_posts=cursor.fetchall()
|
||||
posts=list()
|
||||
id=0
|
||||
@@ -255,7 +255,7 @@ def viewauthorrss(author):
|
||||
cursor = conn.cursor() # Création de l'objet "curseur"
|
||||
cursor.execute("""SELECT MAX (creation_date) FROM Blog_posts WHERE author=? AND status='public_unified' OR status='public'""", (author, ) )
|
||||
last_article_date = cursor.fetchone()
|
||||
cursor.execute("""SELECT title, subtitle, content, creation_date, author, status FROM Blog_posts WHERE author=? AND status='public_unified' OR status='public'""", (author, ) )
|
||||
cursor.execute("""SELECT title_id, title, subtitle, content, creation_date, author, status FROM Blog_posts WHERE author=? AND status='public_unified' OR status='public'""", (author, ) )
|
||||
list_posts=cursor.fetchall()
|
||||
posts=list()
|
||||
id=0
|
||||
@@ -265,7 +265,7 @@ def viewauthorrss(author):
|
||||
for post in list_posts:
|
||||
posts=[dict(title_id=post[0], title=post[1], subtitle=post[2], content=markdown(post[3], extensions=MARKDOWN_EXT), creation_date=post[4],
|
||||
author=post[5], status=post[6])] + posts
|
||||
|
||||
|
||||
return render_template('blog_rss.xml',
|
||||
base_url=BASE_URL,
|
||||
blog_name=author,
|
||||
|
||||
Reference in New Issue
Block a user