aboutsummaryrefslogtreecommitdiff
path: root/compose/cs
diff options
context:
space:
mode:
Diffstat (limited to 'compose/cs')
-rw-r--r--compose/cs/cs.py11
1 files changed, 7 insertions, 4 deletions
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())