Archived
修改部分细节
This commit is contained in:
5 files changed
+245
-301
No files matched your search
@@ -3,7 +3,7 @@
|
||||
# @Author: markushammered@gmail.com
|
||||
# @Development Tool: PyCharm
|
||||
# @Create Time: 2022/3/25
|
||||
# @File Name: view.py
|
||||
# @File Name: response.py
|
||||
|
||||
|
||||
from ..db.db import SQLite as db
|
||||
@@ -12,7 +12,7 @@ from flask import render_template
|
||||
from typing import Tuple
|
||||
|
||||
|
||||
def view_(theme: str, length: int, name: str, count: str) -> str or Tuple[bool, str]:
|
||||
def index_(theme: str, length: int, name: str, count: str) -> str or Tuple[bool, str]:
|
||||
"""
|
||||
渲染模板
|
||||
:param theme:
|
||||
@@ -77,13 +77,3 @@ def view_(theme: str, length: int, name: str, count: str) -> str or Tuple[bool,
|
||||
address=request.remote_addr,
|
||||
general_height=general_height,
|
||||
general_width=general_width)
|
||||
|
||||
|
||||
def listing_(data: list):
|
||||
"""
|
||||
展示数据库内所有的数据
|
||||
:param data:
|
||||
:return:
|
||||
"""
|
||||
return render_template('list.html',
|
||||
data=data)
|
||||
Reference in New Issue
Block a user