[REV] runbot: Avoid infinite loop fetching"

This reverts commit 1207daded1.

A too quick review, setting a default value is a good idea but since field is a float now,
default value should be time.time
This commit is contained in:
Xavier-Do 2019-10-18 20:20:10 +02:00
parent 3308829e80
commit 5b12f37c74

View File

@ -44,7 +44,7 @@ class runbot_repo(models.Model):
('hook', 'Hook')],
default='poll',
string="Mode", required=True, help="hook: Wait for webhook on /runbot/hook/<id> i.e. github push event")
hook_time = fields.Datetime('Last hook time', default=fields.Datetime.now)
hook_time = fields.Float('Last hook time')
get_ref_time = fields.Float('Last refs db update')
duplicate_id = fields.Many2one('runbot.repo', 'Duplicate repo', help='Repository for finding duplicate builds')
modules = fields.Char("Modules to install", help="Comma-separated list of modules to install and test.")