From 6b5d67f4293217955378cb111c6849fd0868b92c Mon Sep 17 00:00:00 2001 From: BlenderDumbass Date: Sun, 1 Dec 2024 02:59:19 +0200 Subject: [PATCH] RSS wasn't properly generated. Fixed! --- modules/Render.py | 79 ++++++++++++++++++++++++++++++++++++++++----- modules/markdown.py | 22 +++++++++++-- 2 files changed, 90 insertions(+), 11 deletions(-) diff --git a/modules/Render.py b/modules/Render.py index f57d8dc..387fafb 100644 --- a/modules/Render.py +++ b/modules/Render.py @@ -4,6 +4,7 @@ import os import json import time +import email import random import hashlib import urllib.parse @@ -14,9 +15,12 @@ from modules import Set from modules import markdown from modules.Common import * + + KnownCookies = [] RecentArticles = {} RefferedArticles = {} +ProblematicRefreshes = [] def guess_type(path): @@ -1267,7 +1271,58 @@ def EditorPage(server): + + """ + + # Optional release options + + if rank(user.get("username","")) == 0: + html = html + """ + +
+ + [icon unlock] + Unlock + + +
+
+
+
+ For unlockable files that will be published after a certain statistics is reached. +
+

+ + [icon file] + +
+ + [icon link] + +
+ + [icon checlist] + +
+ + [icon ok] + +
+ + [icon scene] + +
+ + +
+ + +
+ """ + + + html = html + """
@@ -1276,6 +1331,7 @@ def EditorPage(server):
+