diff options
author | Karel Kočí <cynerd@email.cz> | 2015-07-28 21:56:56 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-07-28 21:56:56 +0200 |
commit | 798da7f0a729c4c2d790b276e46b816bd53c8d47 (patch) | |
tree | 8222c0864b661306cf0078265a7756887ddced97 /scripts/database.py | |
parent | 3642eed625296d4ad3b3b3c46a90914d34ad148c (diff) | |
download | linux-conf-perf-798da7f0a729c4c2d790b276e46b816bd53c8d47.tar.gz linux-conf-perf-798da7f0a729c4c2d790b276e46b816bd53c8d47.tar.bz2 linux-conf-perf-798da7f0a729c4c2d790b276e46b816bd53c8d47.zip |
Add generator identifier to configuration in database
This identifier is for recognition what generator generated specified configuration as first.
Diffstat (limited to 'scripts/database.py')
-rw-r--r-- | scripts/database.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/database.py b/scripts/database.py index 3db66fe..16556a8 100644 --- a/scripts/database.py +++ b/scripts/database.py @@ -78,17 +78,17 @@ class database: ps(ds, cm) return self.check_linuxgit() - def add_configuration(self, hash, cfile): + def add_configuration(self, hash, cfile, generator): "Add configuration to database." ps = self.db.prepare("""INSERT INTO configurations - (hash, cfile, gtime, toolgit, linuxgit) + (hash, cfile, gtime, toolgit, linuxgit, generator) VALUES - ($1, $2, $3, $4, $5); + ($1, $2, $3, $4, $5, $6); """) gt = self.check_toolsgit() lgt = self.check_linuxgit() tm = datetime.datetime.now() - ps(hash, cfile, tm, gt, lgt) + ps(hash, cfile, tm, gt, lgt, generator) def get_configration(self, hash): "Return configration id for inserted hash." |