-- PostgreSQL database dump
--
-\restrict iyF1xJX6Rr5HXWxSVy3hc4tk2qFzInuecwfyZcCbdOKUcUhTZab2fHQNbRay16f
+\restrict 6nJVr9P5tK3JEHqsf1GqOxn2ArIH0TeeAQGlXEqO2KxOZaX0g6qxzMEPFvsyQVJ
-- Dumped from database version 17.6 (Debian 17.6-0+deb13u1)
-- Dumped by pg_dump version 17.6 (Debian 17.6-0+deb13u1)
deleted_at timestamp with time zone,
deleted_by text,
license text NOT NULL,
- updated_at timestamp with time zone,
+ updated_at timestamp with time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
description text
);
-- PostgreSQL database dump complete
--
-\unrestrict iyF1xJX6Rr5HXWxSVy3hc4tk2qFzInuecwfyZcCbdOKUcUhTZab2fHQNbRay16f
+\unrestrict 6nJVr9P5tK3JEHqsf1GqOxn2ArIH0TeeAQGlXEqO2KxOZaX0g6qxzMEPFvsyQVJ
"",
]
- # Add the license
lines += [
" License : %s" % self.list.license,
- ]
-
- # Add the update timestamp
- if self.list.updated_at:
- lines += [
- " Updated : %s" % self.list.updated_at.isoformat(),
- ]
-
- lines += [
+ " Updated : %s" % self.list.updated_at.isoformat(),
"",
" Copyright (C) %s - IPFire Team" % now.strftime("%Y"),
"",
zone = dns.zone.Zone(origin)
# Make the serial
- if self.list.updated_at:
- serial = self.list.updated_at.strftime("%s")
- else:
- serial = "0"
+ serial = self.list.updated_at.strftime("%s")
# Create the SOA
soa = dns.rdataset.from_text(
self.updated_at = sqlmodel.func.current_timestamp()
# Updated At
- updated_at : datetime.datetime | None
+ updated_at : datetime.datetime
@functools.cached_property
def zone(self):