update @ Sat Feb 10 16:50:07 EET 2024

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2024-02-10 16:50:07 +02:00
parent 9578af568e
commit abea89d163
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

View file

@ -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}" f"{datetime.datetime.now()} | {msg}"
if NOCLR if NOCLR
else f"{clr}{datetime.datetime.now()} | {msg}\033[0m", 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"])