From 79b2b7ed3501bb6c1c914a64e51fdaa8173d9146 Mon Sep 17 00:00:00 2001 From: deadvey Date: Thu, 23 Oct 2025 14:47:25 +0100 Subject: [PATCH] some changes --- main.py | 32 -------------------------------- tuxcord/members.json | 2 +- 2 files changed, 1 insertion(+), 33 deletions(-) delete mode 100644 main.py diff --git a/main.py b/main.py deleted file mode 100644 index 987ea7e..0000000 --- a/main.py +++ /dev/null @@ -1,32 +0,0 @@ -from django.shortcuts import render -from django.urls import path -from django.http import HttpResponse -import os -from datetime import datetime - -def decide_ascii(): - day = datetime.today().strftime('%d') - month = datetime.today().strftime('%m') - - if month == "12": - return open('./ascii/christmas.html', 'r').read() - if month == "10": - return open('./ascii/halloween.html', 'r').read() - else: - return open('./ascii/normal.html', 'r').read() - -def index(request): - ascii_penguin = decide_ascii() - return render(request, 'index.html', {'ascii_penguin': ascii_penguin}) - -def mc(request): - ascii_penguin = decide_ascii() - return render(request, 'mc.html', {'ascii_penguin': ascii_penguin}) - -urlpatterns = [ - path('', index, name='index'), - path('mc', mc, name='mc'), -] - -# In your main file (e.g., manage.py or wsgi.py), set up the server to run. -# Django handles the server running automatically. Configure your settings as needed. diff --git a/tuxcord/members.json b/tuxcord/members.json index f5e48e9..65853ca 100644 --- a/tuxcord/members.json +++ b/tuxcord/members.json @@ -27,7 +27,7 @@ }, { "name": "DeaDvey", - "website": "https://deadvey.com", + "website": "https://deadvey.tuxcord.net", "pfp": "deadvey.png" }, {