diff options
author | Paweł Dybiec <pawel@dybiec.info> | 2021-10-03 19:24:21 +0100 |
---|---|---|
committer | Paweł Dybiec <pawel@dybiec.info> | 2021-10-03 19:24:21 +0100 |
commit | 01333f593d76355c51878da3c46c547255161de7 (patch) | |
tree | c41ded033293a6be22117da8603cca94d9efa32f /compose/cs | |
parent | New maps in csgo (diff) |
Cleanup main
Diffstat (limited to 'compose/cs')
-rw-r--r-- | compose/cs/cs.py | 11 |
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()) |