Closed twelvelabs closed 4 years ago
Hey, just want to let you know I've seen this and thanks for reporting. I will look into it as soon as I find time in the next couple of days :)
You are very much correct in that it should use self.db
. I've release version v1.1.1
of FlaskSeeder now which includes this fix.
Thanks!
When setting up
FlaskSeeder
in the following way, thedb
instance does not get configured correctly, and attempts to useflask seed run
fail.The error:
It looks to me like it's due to:
https://github.com/diddi-/flask-seeder/blob/1dbd6dd6d9a627c6865f0a20df7e29e928bc0c72/flask_seeder/__init__.py#L53
Which should be
SeedConfig(self.db)
rather than justdb
, correct?