From e7d7a287dc29bec8d62f8208a6118ac56b252825 Mon Sep 17 00:00:00 2001 From: mario872 Date: Thu, 22 Aug 2024 09:41:18 +1000 Subject: [PATCH] Fixed class-forge by updating sentralify version and changing timeout --- Dockerfile | 2 +- main.py | 2 +- templates/details.jinja | 1 + templates/version.txt | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index cb466b0..c48524a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM python:3.11-slim-bullseye LABEL maintainer="jamesaglynn10@gmail.com" -LABEL version="0.34" +LABEL version="0.35" LABEL description="This is the docker image for Class Forge" ENV IN_DOCKER=true diff --git a/main.py b/main.py index c849c47..97199b9 100644 --- a/main.py +++ b/main.py @@ -134,7 +134,7 @@ def finish_login(): 'photo_path': f'user/{data["username"]}"/photo.png' } - if sentralify(user, check_login=True): + if sentralify(user, check_login=True, timeout=10): with open(f'users/{user["username"]}/config.json', 'w') as user_config: json.dump(encrypted_user, user_config) diff --git a/templates/details.jinja b/templates/details.jinja index dc12156..dca2f50 100644 --- a/templates/details.jinja +++ b/templates/details.jinja @@ -84,6 +84,7 @@ along with this program. If not, see https://www.gnu.org/licenses/gpl-3.0.html. {% endfor %} +

This is obviously broken.