diff options
author | 2016-01-10 17:35:44 +0100 | |
---|---|---|
committer | 2016-01-10 17:35:44 +0100 | |
commit | cb322ccb29e1a6dd74c0381628f749ca7d5f9de6 (patch) | |
tree | 3c332965c9cb15be82273043ed61e91d898d845f | |
parent | add static dir (diff) | |
download | tinderbox-cluster-www-cb322ccb29e1a6dd74c0381628f749ca7d5f9de6.tar.gz tinderbox-cluster-www-cb322ccb29e1a6dd74c0381628f749ca7d5f9de6.tar.bz2 tinderbox-cluster-www-cb322ccb29e1a6dd74c0381628f749ca7d5f9de6.zip |
change from checksum to mtime on Manifest
-rw-r--r-- | python/tbc_www/models.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/tbc_www/models.py b/python/tbc_www/models.py index e864cf8..dda8c3b 100644 --- a/python/tbc_www/models.py +++ b/python/tbc_www/models.py @@ -36,13 +36,13 @@ class Packages(models.Model): CategoryId = models.ForeignKey(Categories, db_column='category_id') Package = models.CharField(max_length=150, db_column='package') RepoId = models.ForeignKey(Repos, db_column='repo_id') - Checksum = models.CharField(max_length=100, db_column='checksum') + Mtime = models.DateTimeField(db_column='mtime') Active = models.BooleanField(db_column='active') TimeStamp = models.DateTimeField(db_column='time_stamp') class Meta: db_table = 'packages' def __str__(self): - return '%s %s %s %s %s %s %s' % (self.PackageId, self.CategoryId, self.Package, self.RepoId, self.Checksum, self.Active, self.TimeStamp) + return '%s %s %s %s %s %s %s' % (self.PackageId, self.CategoryId, self.Package, self.RepoId, self.Mtime, self.Active, self.TimeStamp) class PackagesMetadata(models.Model): Id = models.IntegerField(primary_key=True, db_column='id') @@ -52,7 +52,7 @@ class PackagesMetadata(models.Model): class Meta: db_table = 'packages_metadata' def __str__(self): - return '%s %s %s %s' % (self.Id, self.PackageId, self.Changlog, self.Descriptions) + return '%s %s %s %s' % (self.Id, self.PackageId, self.Gitlog, self.Descriptions) class Ebuilds(models.Model): EbuildId = models.IntegerField(primary_key=True, db_column='ebuild_id') @@ -75,7 +75,7 @@ class EbuildsMetadata(models.Model): class Meta: db_table = 'ebuilds_metadata' def __str__(self): - return '%s %s %s %s' % (self.Id, self.EbuildId, self.Revision, self.Descriptions) + return '%s %s %s %s' % (self.Id, self.EbuildId, self,Commit, self.New, self.Descriptions) class BuildLogs(models.Model): BuildLogId = models.IntegerField(primary_key=True, db_column='build_log_id') |