diff --git a/pyfpdb/TourneySummary.py b/pyfpdb/TourneySummary.py index 884d724e..9ca4c27b 100644 --- a/pyfpdb/TourneySummary.py +++ b/pyfpdb/TourneySummary.py @@ -37,6 +37,7 @@ from Exceptions import * import pprint import DerivedStats import Card +import Database log = logging.getLogger("parser") @@ -118,6 +119,8 @@ class TourneySummary(object): if builtFrom=="IMAP": # Fix line endings? pass + if self.db == None: + self.db = Database.Database(config) self.parseSummary() self.insertOrUpdate()