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
|
||||
|
||||
[[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]]
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue