Skip to content

Commit 8a7186f

Browse files
Set bottom of plot to 0
1 parent 516ff49 commit 8a7186f

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

Dockerfile.arm

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM alpine:latest as base
2+
3+
RUN apk add --update --no-cache python3 python3-dev py3-pip
4+
5+
FROM base as builder
6+
7+
ENV POETRY_NO_INTERACTION=1 \
8+
POETRY_VIRTUALENVS_IN_PROJECT=1 \
9+
POETRY_VIRTUALENVS_CREATE=1 \
10+
POETRY_CACHE_DIR=/tmp/poetry_cache
11+
12+
RUN apk update && \
13+
apk add musl-dev build-base gcc gfortran openblas-dev
14+
15+
WORKDIR /app
16+
17+
# Install Poetry
18+
RUN apk add pipx
19+
RUN pipx install poetry
20+
ENV PATH="/root/.local/bin:${PATH}"
21+
# Install the app
22+
COPY pyproject.toml poetry.lock ./
23+
RUN poetry install --without dev --no-root && rm -rf $POETRY_CACHE_DIR;
24+
25+
26+
#FROM base as runtime
27+
28+
#COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
29+
30+
#COPY src ./src
31+
#COPY main.py ./main.py
32+
#WORKDIR /app/src
33+
34+
#ENTRYPOINT ["poetry", "run", "python", "main.py"]

src/extensions/tasks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ async def panel(self):
216216
try:
217217
if port == 25565:
218218
server = JavaServer.lookup(ip, 3)
219-
logger.warn(ip)
219+
#logger.warn(ip)
220220
else:
221221
server = JavaServer.lookup(f"{ip}:{port}", 3)
222222
status = await server.async_status()
@@ -254,6 +254,8 @@ async def panel(self):
254254
ax.plot(a, b, "#6bf414")
255255
ax.set_ylabel("Player Count")
256256
ax.set_xlabel("Last 10 minutes")
257+
plt.yt
258+
ax.set_ylim(bottom=0)
257259
buf = io.BytesIO()
258260

259261
plt.savefig(buf, format="PNG")

0 commit comments

Comments
 (0)