mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[fix] Worker model wasn't bound to good db for some reason
This commit is contained in:
parent
e3355f5081
commit
312bf06ed8
1 changed files with 3 additions and 0 deletions
|
@ -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]:
|
||||
|
|
Loading…
Add table
Reference in a new issue