From 01333f593d76355c51878da3c46c547255161de7 Mon Sep 17 00:00:00 2001 From: Paweł Dybiec Date: Sun, 3 Oct 2021 19:24:21 +0100 Subject: Cleanup --- compose/cs/cs.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'compose') diff --git a/compose/cs/cs.py b/compose/cs/cs.py index fdb32fd..1912886 100644 --- a/compose/cs/cs.py +++ b/compose/cs/cs.py @@ -2,7 +2,7 @@ import calendar import datetime import random from typing import List, Tuple -from flask import Flask, render_template +from flask import Flask, render_template, redirect, url_for app = Flask("Today's maps") all_maps = [ "mirage 🇲🇦", "inferno 🔥", @@ -16,8 +16,8 @@ all_maps = [ "mirage 🇲🇦", "cache ☭", "agency 🏢", "office 🖥", - "grind 🚛", - "mocha ☕"] + "basalt 🌈⛰️", + "insertion 🚓"] #maps = [ all_maps[i] for i in [0,1,2,3,4,5,6]] maps = all_maps LOOKAHEAD=7 @@ -82,8 +82,11 @@ def get_map_schedule(from_date: datetime.date, to_date: datetime.date, number_of output.append((day_no_to_date(day_no), maps_for_day)) return output - @app.route("/") +def main(): + return redirect(url_for('r3pack')) + +@app.route("/cielak") def cielak(): return render_template("main.html", maps=maps_of_current_week()) -- cgit 1.4.1