mirror of
https://git.ari.lt/ari.lt/blog.ari.lt.git
synced 2025-02-04 09:39:25 +01:00
update @ Fri 11 Mar 14:08:05 EET 2022
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
e09ceecc49
commit
2f9211fd35
2 changed files with 4 additions and 7 deletions
|
@ -26,9 +26,9 @@
|
||||||
force = true
|
force = true
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/blogs/*"
|
from = "/blogs/:blog"
|
||||||
to = "https://legacy.blog.ari-web.xyz/:splat"
|
to = "https://legacy.blog.ari-web.xyz/:blog"
|
||||||
status = 302
|
status = 301
|
||||||
force = true
|
force = true
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
|
|
|
@ -14,7 +14,6 @@ from datetime import datetime
|
||||||
from html import escape as html_escape
|
from html import escape as html_escape
|
||||||
from shutil import rmtree
|
from shutil import rmtree
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
from time import strftime as format_system_time
|
|
||||||
from timeit import default_timer as code_timer
|
from timeit import default_timer as code_timer
|
||||||
from typing import Dict, List, Tuple
|
from typing import Dict, List, Tuple
|
||||||
from warnings import filterwarnings as filter_warnings
|
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:
|
def format_time(timestamp: float) -> str:
|
||||||
return datetime.fromtimestamp(timestamp).strftime(
|
return datetime.fromtimestamp(timestamp).strftime("%Y-%m-%d %H:%M:%S")
|
||||||
"%Y-%m-%d %H:%M:%S " + format_system_time("%Z")
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def iinput(prompt: str, default_text: str = "") -> str:
|
def iinput(prompt: str, default_text: str = "") -> str:
|
||||||
|
|
Loading…
Add table
Reference in a new issue