security.py and models.py swap places in modules
This commit is contained in:
@@ -12,11 +12,11 @@ After importing an app such as `main.py`:
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
from typing import List
|
from typing import List
|
||||||
from src.vue_apps_py.security import SecurityHelper
|
from vue_apps_py.client import ClientAPI
|
||||||
from src.vue_apps_py.server import VueApp, name_intents
|
from vue_apps_py.models import AutoModel, SuggestionsModel
|
||||||
from src.vue_apps_py.client import ClientAPI
|
from vue_apps_py.server import VueApp, name_intents
|
||||||
from src.vue_apps_py.server_utils.intents import Intent, InlineQuery
|
from vue_apps_py.server_utils.intents import Intent, InlineQuery
|
||||||
from src.vue_apps_py.server_utils.models import AutoModel, SuggestionsModel
|
from vue_apps_py.server_utils.security import SecurityHelper
|
||||||
|
|
||||||
|
|
||||||
def autocomplete_handler(query_model: AutoModel) -> SuggestionsModel:
|
def autocomplete_handler(query_model: AutoModel) -> SuggestionsModel:
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ from typing import Dict, List
|
|||||||
from fastapi import FastAPI, Request, HTTPException, status
|
from fastapi import FastAPI, Request, HTTPException, status
|
||||||
|
|
||||||
from .client import ClientAPI
|
from .client import ClientAPI
|
||||||
from .security import SecurityHelper
|
from .models import AutoModel, InteractionModel, MentionModel, PageModel, PongModel, SuggestionsModel
|
||||||
from .server_utils.intents import Intent, InlineQuery, PageMentions, Interactions, PageApp
|
from .server_utils.intents import Intent, PageApp, InlineQuery, PageMentions, Interactions
|
||||||
from .server_utils.models import PongModel, SuggestionsModel, AutoModel, MentionModel, InteractionModel, PageModel
|
from .server_utils.security import SecurityHelper
|
||||||
|
|
||||||
|
|
||||||
def name_intents(intents: List[Intent]) -> Dict[str, Intent]:
|
def name_intents(intents: List[Intent]) -> Dict[str, Intent]:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
from typing import Callable
|
from typing import Callable
|
||||||
|
|
||||||
from .models import AutoModel, SuggestionsModel, MentionModel, InteractionModel, PageModel
|
from ..models import AutoModel, InteractionModel, MentionModel, PageModel, SuggestionsModel
|
||||||
|
|
||||||
|
|
||||||
class Intent:
|
class Intent:
|
||||||
|
|||||||
Reference in New Issue
Block a user