From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A4F601382C5 for ; Thu, 18 Mar 2021 23:18:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E0B61E08E0; Thu, 18 Mar 2021 23:18:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C53DAE08E0 for ; Thu, 18 Mar 2021 23:18:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BC81C340D2D for ; Thu, 18 Mar 2021 23:18:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6E3EB5AE for ; Thu, 18 Mar 2021 23:18:55 +0000 (UTC) From: "Magnus Granberg" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Magnus Granberg" Message-ID: <1616109187.f06629a2b072f7a93d74a402897c1baaf6010a14.zorry@gentoo> Subject: [gentoo-commits] proj/tinderbox-cluster:master commit in: buildbot_gentoo_ci/db/ X-VCS-Repository: proj/tinderbox-cluster X-VCS-Files: buildbot_gentoo_ci/db/versions.py X-VCS-Directories: buildbot_gentoo_ci/db/ X-VCS-Committer: zorry X-VCS-Committer-Name: Magnus Granberg X-VCS-Revision: f06629a2b072f7a93d74a402897c1baaf6010a14 X-VCS-Branch: master Date: Thu, 18 Mar 2021 23:18:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9f5ee914-b473-41e1-925d-1c6506e5b954 X-Archives-Hash: ab79de196e7a1b2d9948ab4cf9076de9 commit: f06629a2b072f7a93d74a402897c1baaf6010a14 Author: Magnus Granberg gentoo org> AuthorDate: Thu Mar 18 23:13:07 2021 +0000 Commit: Magnus Granberg gentoo org> CommitDate: Thu Mar 18 23:13:07 2021 +0000 URL: https://gitweb.gentoo.org/proj/tinderbox-cluster.git/commit/?id=f06629a2 JSON format don't support datetime format in version data Signed-off-by: Magnus Granberg gentoo.org> buildbot_gentoo_ci/db/versions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildbot_gentoo_ci/db/versions.py b/buildbot_gentoo_ci/db/versions.py index df9b4d3..85bd105 100644 --- a/buildbot_gentoo_ci/db/versions.py +++ b/buildbot_gentoo_ci/db/versions.py @@ -24,7 +24,7 @@ from twisted.internet import defer from buildbot.db import base from buildbot.util import epoch2datetime - +from buildbot.util import datetime2epoch class VersionsConnectorComponent(base.DBConnectorComponent): @defer.inlineCallbacks @@ -110,5 +110,5 @@ class VersionsConnectorComponent(base.DBConnectorComponent): file_hash=row.file_hash, commit_id=row.commit_id, deleted=row.deleted, - deleted_at=row.deleted_at + deleted_at=datetime2epoch(row.deleted_at) )