From 312bf06ed8a6c8a724e76524f6f829fd6c1ffa06 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 16 Jul 2018 07:02:24 +0200 Subject: [PATCH] [fix] Worker model wasn't bound to good db for some reason --- models.py | 3 +++ 1 file changed, 3 insertions(+) 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]: