From 8c70390fae5434973db98c7828d72bb7998cde9b Mon Sep 17 00:00:00 2001 From: Joey Hagedorn Date: Thu, 3 Aug 2006 04:53:30 +0000 Subject: NewReports: More DB Schema changes and default (example) file updates. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2033 ce84e21b-d406-0410-9b95-82705330c041 --- reports/brpt/importscript.py | 2 +- reports/brpt/reports/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'reports') diff --git a/reports/brpt/importscript.py b/reports/brpt/importscript.py index 81d921613..29deee688 100755 --- a/reports/brpt/importscript.py +++ b/reports/brpt/importscript.py @@ -77,7 +77,7 @@ if __name__ == '__main__': for node in statsdata.findall('Node'): name = node.get('name') if not clients.has_key(name): - cursor.execute("INSERT INTO reports_client VALUES (NULL, %s, %s, NULL)", [datetime.now(),name]) + cursor.execute("INSERT INTO reports_client VALUES (NULL, %s, %s, NULL, NULL)", [datetime.now(),name]) clients[name] = cursor.lastrowid if verbose: print("Client %s added to db"%name) diff --git a/reports/brpt/reports/models.py b/reports/brpt/reports/models.py index 3a786a796..dff68d272 100644 --- a/reports/brpt/reports/models.py +++ b/reports/brpt/reports/models.py @@ -23,7 +23,7 @@ class Client(models.Model): current_interaction = models.ForeignKey('Interaction', null=True, blank=True, related_name="parent_client") - expiration = models.DateTimeField() + expiration = models.DateTimeField(blank=True, null=True) def __str__(self): return self.name -- cgit v1.2.3-1-g7c22