Compare commits
No commits in common. "master" and "v0.2.0" have entirely different histories.
3 changed files with 5 additions and 22 deletions
17
Dockerfile
17
Dockerfile
|
|
@ -1,17 +0,0 @@
|
||||||
FROM python:3.13-slim
|
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y git
|
|
||||||
|
|
||||||
COPY xefyl xefyl
|
|
||||||
COPY pyproject.toml pyproject.toml
|
|
||||||
COPY .git .git
|
|
||||||
COPY .env.prod .env
|
|
||||||
COPY wordenizer wordenizer
|
|
||||||
|
|
||||||
RUN git checkout v0.2.1 && pip install .
|
|
||||||
|
|
||||||
EXPOSE 5000
|
|
||||||
|
|
||||||
CMD ["/usr/bin/env", "python", "-m", "flask", "--app", "xefyl", "run", "--host", "0.0.0.0"]
|
|
||||||
|
|
@ -13,9 +13,8 @@ dependencies = [
|
||||||
"Flask-WTF",
|
"Flask-WTF",
|
||||||
"Pillow",
|
"Pillow",
|
||||||
"Pillow-Heif",
|
"Pillow-Heif",
|
||||||
"psycopg2-binary",
|
"psycopg2",
|
||||||
"alembic",
|
"alembic"
|
||||||
"suou>=0.9.0"
|
|
||||||
]
|
]
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
classifiers = [
|
classifiers = [
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ from sqlalchemy import func, select, create_engine
|
||||||
from sqlalchemy.exc import ProgrammingError
|
from sqlalchemy.exc import ProgrammingError
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
__version__ = "0.2.2"
|
__version__ = "0.2.0"
|
||||||
|
|
||||||
APP_BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
APP_BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
||||||
|
|
||||||
|
|
@ -59,6 +59,7 @@ app.url_map.converters['video_ext'] = VideoExtConverter
|
||||||
## helpers
|
## helpers
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def paginated_query(q, n_per_page, argname="page"):
|
def paginated_query(q, n_per_page, argname="page"):
|
||||||
if isinstance(argname, str) and not argname.isdigit():
|
if isinstance(argname, str) and not argname.isdigit():
|
||||||
n = int(request.args.get(argname, 1))
|
n = int(request.args.get(argname, 1))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue