[Pkg-debile-commits] [debile-master] 111/126: Added login field for user and run no for jobs
Sylvestre Ledru
sylvestre at alioth.debian.org
Mon Aug 19 14:56:25 UTC 2013
This is an automated email from the git hooks/post-receive script.
sylvestre pushed a commit to branch scan-build-html
in repository debile-master.
commit 591109557ae6f69f17e29359d14fc5111e65c19f
Author: Léo Cavaillé <leo at cavaille.net>
Date: Tue Jul 30 22:37:49 2013 +0200
Added login field for user and run no for jobs
---
lucy/orm.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/lucy/orm.py b/lucy/orm.py
index 729963e..6d4418d 100644
--- a/lucy/orm.py
+++ b/lucy/orm.py
@@ -16,6 +16,7 @@ def row2dict(row):
class User(Base):
__tablename__ = 'users'
id = Column(Integer, primary_key=True)
+ login = Column(String(100))
name = Column(String(100))
email = Column(String(100))
gpg_fingerprint = Column(String(100))
@@ -44,6 +45,7 @@ class Package(Base):
__mapper_args__ = {'polymorphic_on': type}
group_id = Column(Integer, ForeignKey('groups.id'))
group = relationship("Group", backref=backref('packages', order_by=package_id))
+ run = Column(Integer)
class Source(Package):
__tablename__ = 'sources'
@@ -121,3 +123,8 @@ class Job(Base):
if self.type in ['build']:
return True
return False
+
+ def is_finished(self):
+ if self.finished_at is None:
+ return False
+ return True
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git
More information about the Pkg-debile-commits
mailing list