security.py and models.py swap places in modules

This commit is contained in:
havlong
2022-12-16 17:55:37 +03:00
parent 537c7ed714
commit 49faf73208
5 changed files with 9 additions and 9 deletions

View File

@@ -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:

View File

@@ -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]:

View File

@@ -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: