From d8fb3b5e62aa2aab2ac22429861818056f35c228 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Thu, 3 Sep 2020 13:16:58 +0200 Subject: [PATCH] add Failed column to view --- respodns/sql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/respodns/sql.py b/respodns/sql.py index 01663ff..3f75b75 100644 --- a/respodns/sql.py +++ b/respodns/sql.py @@ -87,7 +87,8 @@ SELECT Kinds.Name as Kind, Domains.Name as Name, RecordIps.AsStr as Address, - Exceptions.Name as Exception + Exceptions.Name as Exception, + Messages.Failed as Failed FROM Messages LEFT JOIN Domains ON Messages.DomainId = Domains.DomainId LEFT JOIN Kinds ON Domains.KindId = Kinds.KindId @@ -95,7 +96,6 @@ LEFT JOIN Ips AS ServerIps ON Messages.ServerId = ServerIps.IpId LEFT JOIN Records ON Messages.RecordId = Records.RecordId LEFT JOIN Ips as RecordIps ON Records.IpId = RecordIps.IpId LEFT JOIN Exceptions ON Messages.ExceptionId = Exceptions.ExceptionId --- GROUP BY Records.IpId """, ]