Docker deployment Realised
This commit is contained in:
@@ -52,7 +52,11 @@ target_db = current_app.extensions['migrate'].db
|
||||
# ... etc.
|
||||
|
||||
# List of Tenants
|
||||
tenants = [tenant.id for tenant in Tenant.query.all()]
|
||||
tenants_ = Tenant.query.all()
|
||||
if tenants_:
|
||||
tenants = [tenant.id for tenant in tenants_]
|
||||
else:
|
||||
tenants = []
|
||||
|
||||
|
||||
def get_metadata():
|
||||
|
||||
Reference in New Issue
Block a user