diff --git a/lib/newfol/database.py b/lib/newfol/database.py index 5814494..ca7d93f 100644 --- a/lib/newfol/database.py +++ b/lib/newfol/database.py @@ -288,11 +288,8 @@ class Schema: newrecs.append(i) vault.store(newrecs) - @staticmethod - def load(path): - sch = Schema() - sch.load_file("%s/schema" % path) - return sch + def load(self, path): + self.load_file("%s/schema" % path) def load_file(self, path): vault = newfol.filemanip.FileStorage('csv', path) @@ -397,7 +394,8 @@ class Database: @classmethod def load(klass, location, txntype=None): version = klass.read_version(location) - schema = Schema.load(location) + schema = Schema() + schema.load(location) if type(txntype) is str: schema._txntype = [txntype] elif txntype is not None: