Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
126d5310f5 | ||
|
|
ee3003c09a | ||
|
|
b556f2f948 | ||
|
|
d9016a0cb0 |
+9
-4
@@ -23,14 +23,19 @@ COPY static ./
|
|||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM python:3.14-slim
|
FROM python:3.14-slim
|
||||||
ENV PATH="/app/.venv/bin:$PATH"
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
|
ENV PLAYWRIGHT_BROWSERS_PATH="/opt/playwright-browsers"
|
||||||
|
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
||||||
|
--mount=type=cache,target=/var/lib/apt,sharing=locked \
|
||||||
|
pip install playwright && \
|
||||||
|
playwright install --with-deps chromium
|
||||||
|
|
||||||
|
ENV PATH="/app/.venv/bin:$PATH"
|
||||||
ENV TZ="Europe/Moscow"
|
ENV TZ="Europe/Moscow"
|
||||||
|
|
||||||
COPY --from=builder /app ./
|
WORKDIR /app
|
||||||
RUN .venv/bin/playwright install chromium --with-deps --only-shell
|
|
||||||
|
|
||||||
|
COPY --from=builder /app ./
|
||||||
COPY --from=node-builder /app/dist ./static/dist
|
COPY --from=node-builder /app/dist ./static/dist
|
||||||
|
|
||||||
COPY gallery gallery/
|
COPY gallery gallery/
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class RowType(Enum):
|
|||||||
def _iter_table_rows(table: Tag) -> Iterable[tuple[RowType, Tag]]:
|
def _iter_table_rows(table: Tag) -> Iterable[tuple[RowType, Tag]]:
|
||||||
for row in table.select("tr"):
|
for row in table.select("tr"):
|
||||||
title = row.select_one("td").text.strip().lower()
|
title = row.select_one("td").text.strip().lower()
|
||||||
if "сегодня" in title:
|
if "сегодня" in title or "завтра" in title:
|
||||||
yield RowType.DATE, row
|
yield RowType.DATE, row
|
||||||
elif "местное время" in title:
|
elif "местное время" in title:
|
||||||
yield RowType.TIME, row
|
yield RowType.TIME, row
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "gallery"
|
name = "gallery"
|
||||||
description = ""
|
description = ""
|
||||||
version = "0.8.2"
|
version = "0.8.3"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = [{ name = "shmyga", email = "shmyga.z@gmail.com" }]
|
authors = [{ name = "shmyga", email = "shmyga.z@gmail.com" }]
|
||||||
requires-python = '>=3.14,<4.0'
|
requires-python = '>=3.14,<4.0'
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "gallery",
|
"name": "gallery",
|
||||||
"version": "0.8.2",
|
"version": "0.8.3",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "gallery",
|
"name": "gallery",
|
||||||
"version": "0.8.2",
|
"version": "0.8.3",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@popperjs/core": "^2.11.8",
|
"@popperjs/core": "^2.11.8",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gallery",
|
"name": "gallery",
|
||||||
"version": "0.8.2",
|
"version": "0.8.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack --mode production",
|
"build": "webpack --mode production",
|
||||||
|
|||||||
Reference in New Issue
Block a user