🐛 Fix ohmyapi.core.runtime.App.models
This commit is contained in:
parent
e3abc642ed
commit
4ec2f87ce2
1 changed files with 2 additions and 4 deletions
|
|
@ -129,7 +129,7 @@ class Project:
|
||||||
}
|
}
|
||||||
|
|
||||||
for app_name, app in self._apps.items():
|
for app_name, app in self._apps.items():
|
||||||
modules = list(app.models.keys())
|
modules = list(app._models.keys())
|
||||||
if modules:
|
if modules:
|
||||||
config["apps"][app_name] = {
|
config["apps"][app_name] = {
|
||||||
"models": modules,
|
"models": modules,
|
||||||
|
|
@ -372,9 +372,7 @@ class App:
|
||||||
for module in self._models:
|
for module in self._models:
|
||||||
for model in self._models[module]:
|
for model in self._models[module]:
|
||||||
out.append(model)
|
out.append(model)
|
||||||
return {
|
return out
|
||||||
module: out,
|
|
||||||
}
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def routers(self):
|
def routers(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue