X-Git-Url: https://git.decadent.org.uk/gitweb/?p=dak.git;a=blobdiff_plain;f=daklib%2Fdbconn.py;h=3d3561f59618b3c03154a31826f8e9d02ad0d7eb;hp=3a7f55bbe942df3db4807865dd28a7bf2203627a;hb=e1efe0c5ee9f7568a28fff59cab0e3cd4319f37e;hpb=2e2d8e7081496b3214a31a8dc1d85f8b84dff6a8 diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 3a7f55bb..3d3561f5 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -2158,7 +2158,8 @@ class BinaryMetadata(ORMObject): def __init__(self, key = None, value = None, binary = None): self.key = key self.value = value - self.binary = binary + if binary is not None: + self.binary = binary def properties(self): return ['binary', 'key', 'value'] @@ -2174,7 +2175,8 @@ class SourceMetadata(ORMObject): def __init__(self, key = None, value = None, source = None): self.key = key self.value = value - self.source = source + if source is not None: + self.source = source def properties(self): return ['source', 'key', 'value']