log.dateCreated didn't contain any UTC metadata so now log.dateCreatedUTC() return the datetime object with correct metadata

This commit is contained in:
2025-09-05 18:57:21 +02:00
parent 2ab46f1994
commit 3b87da9292
4 changed files with 30 additions and 13 deletions

View File

@@ -39,11 +39,7 @@ async def check_service(client: aiohttp.ClientSession, s: service) -> log:
try:
ctx = SimpleNamespace()
status = await ping(client=client, s=s, ctx=ctx)
print(status)
print(vars(ctx))
if status == 200:
print("test")
print(ctx.duration_ms)
return log(service_id=s.id, ping=int(ctx.duration_ms))
else:
return log(service_id=s.id, ping=None)