update @ Fri 11 Mar 14:08:05 EET 2022

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-03-11 14:08:05 +02:00
parent e09ceecc49
commit 2f9211fd35
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: A50D5B4B599AF8A2
2 changed files with 4 additions and 7 deletions

View file

@ -26,9 +26,9 @@
force = true
[[redirects]]
from = "/blogs/*"
to = "https://legacy.blog.ari-web.xyz/:splat"
status = 302
from = "/blogs/:blog"
to = "https://legacy.blog.ari-web.xyz/:blog"
status = 301
force = true
[[redirects]]

View file

@ -14,7 +14,6 @@ from datetime import datetime
from html import escape as html_escape
from shutil import rmtree
from threading import Thread
from time import strftime as format_system_time
from timeit import default_timer as code_timer
from typing import Dict, List, Tuple
from warnings import filterwarnings as filter_warnings
@ -137,9 +136,7 @@ def sanitise_title(title: str, titleset: Dict) -> str:
def format_time(timestamp: float) -> str:
return datetime.fromtimestamp(timestamp).strftime(
"%Y-%m-%d %H:%M:%S " + format_system_time("%Z")
)
return datetime.fromtimestamp(timestamp).strftime("%Y-%m-%d %H:%M:%S")
def iinput(prompt: str, default_text: str = "") -> str: