mirror of
https://git.ari.lt/ari.lt/blog.ari.lt.git
synced 2025-02-04 09:39:25 +01:00
update @ Sat Feb 10 16:50:07 EET 2024
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
9578af568e
commit
abea89d163
1 changed files with 6 additions and 4 deletions
|
@ -442,9 +442,11 @@ def ctimer() -> float:
|
||||||
def log(msg: str, clr: str = LOG_CLR) -> int:
|
def log(msg: str, clr: str = LOG_CLR) -> int:
|
||||||
if NCI:
|
if NCI:
|
||||||
print(
|
print(
|
||||||
f"{datetime.datetime.now()} | {msg}"
|
(
|
||||||
if NOCLR
|
f"{datetime.datetime.now()} | {msg}"
|
||||||
else f"{clr}{datetime.datetime.now()} | {msg}\033[0m",
|
if NOCLR
|
||||||
|
else f"{clr}{datetime.datetime.now()} | {msg}\033[0m"
|
||||||
|
),
|
||||||
file=sys.stderr,
|
file=sys.stderr,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -960,7 +962,7 @@ def build(config: dict[str, typing.Any]) -> int:
|
||||||
rt.append(rtm.seconds)
|
rt.append(rtm.seconds)
|
||||||
cc.append(len(cont))
|
cc.append(len(cont))
|
||||||
ws.update(Counter(cont.lower().split()))
|
ws.update(Counter(cont.lower().split()))
|
||||||
tgs.update(Counter(post["keywords"]))
|
tgs.update(Counter(list(map(str.lower, post["keywords"]))))
|
||||||
|
|
||||||
dt, s = rf_format_time(post["created"])
|
dt, s = rf_format_time(post["created"])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue