diff --git a/models.py b/models.py index 87c4421..64bc6cb 100644 --- a/models.py +++ b/models.py @@ -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]: