[fix] Worker model wasn't bound to good db for some reason

This commit is contained in:
Laurent Peuch 2018-07-16 07:02:24 +02:00
parent e3355f5081
commit 312bf06ed8

View file

@ -43,6 +43,9 @@ class Worker(peewee.Model):
('busy', 'Busy'),
))
class Meta:
database = db
# peewee is a bit stupid and will crash if the table already exists
for i in [Repo, Job, Worker]: