mirror of
https://github.com/StefBuwalda/dashboard_test.git
synced 2025-11-02 04:39:58 +00:00
log.dateCreated didn't contain any UTC metadata so now log.dateCreatedUTC() return the datetime object with correct metadata
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user