mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 00:48:32 +01:00
rename get_alias_info -> get_alias_infos
This commit is contained in:
parent
2d570f7290
commit
e230b120d9
2 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,7 @@ from app.api.base import api_bp, verify_api_key
|
|||
from app.config import EMAIL_DOMAIN
|
||||
from app.config import PAGE_LIMIT
|
||||
from app.dashboard.views.alias_log import get_alias_log
|
||||
from app.dashboard.views.index import get_alias_info, AliasInfo
|
||||
from app.dashboard.views.index import get_alias_infos, AliasInfo
|
||||
from app.extensions import db
|
||||
from app.log import LOG
|
||||
from app.models import EmailLog
|
||||
|
@ -48,7 +48,7 @@ def get_aliases():
|
|||
if data:
|
||||
query = data.get("query")
|
||||
|
||||
alias_infos: [AliasInfo] = get_alias_info(user, page_id=page_id, query=query)
|
||||
alias_infos: [AliasInfo] = get_alias_infos(user, page_id=page_id, query=query)
|
||||
|
||||
return (
|
||||
jsonify(
|
||||
|
|
|
@ -176,7 +176,7 @@ def index():
|
|||
return render_template(
|
||||
"dashboard/index.html",
|
||||
client_users=client_users,
|
||||
aliases=get_alias_info(current_user, query, highlight_alias_id),
|
||||
aliases=get_alias_infos(current_user, query, highlight_alias_id),
|
||||
highlight_alias_id=highlight_alias_id,
|
||||
query=query,
|
||||
AliasGeneratorEnum=AliasGeneratorEnum,
|
||||
|
@ -184,7 +184,7 @@ def index():
|
|||
)
|
||||
|
||||
|
||||
def get_alias_info(
|
||||
def get_alias_infos(
|
||||
user, query=None, highlight_alias_id=None, page_id=None
|
||||
) -> [AliasInfo]:
|
||||
if query:
|
||||
|
|
Loading…
Reference in a new issue