added a bunch of to-dos. tried to make the base_board update automatically on launch of routes.py, added a bunch of to-dos to make it into a cool product
This commit is contained in:
19
routes.py
19
routes.py
@@ -5,13 +5,29 @@ from flask import Flask, render_template, request, jsonify, redirect, url_for
|
||||
|
||||
from config import config
|
||||
from models import session, get_color_num_dict, base_board, colors, color_num_dict, get_board, get_boards, \
|
||||
create_board
|
||||
create_board, update_base_table
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
num_squares = config['num_squares']
|
||||
|
||||
|
||||
# TODO: export an animtated gif of the progress of a piece
|
||||
# TODO: fix loading/saving
|
||||
# TODO: add undo/redo
|
||||
# TODO: add Eno-like soothing tones when you tap a box
|
||||
# TODO: make selected color slightly larger
|
||||
# TODO: dislpay filename
|
||||
# TODO: allow renaming
|
||||
# TODO: allow live view of progress via web/app
|
||||
|
||||
# not related to the app
|
||||
# TODO: make simon.averba.ch and put his art up there because he wants to "send it to everybody in the world"
|
||||
# TODO: make sylvia.averba.ch and put his art up there because he wants to "send it to everybody in the world"
|
||||
# TODO: make abi.averba.ch and put his art up there because he wants to "send it to everybody in the world"
|
||||
# TODO: use IFPS for the above
|
||||
|
||||
|
||||
|
||||
@app.route('/<board_name>')
|
||||
def main_board(board_name=None):
|
||||
@@ -21,6 +37,7 @@ def main_board(board_name=None):
|
||||
|
||||
@app.route('/')
|
||||
def main():
|
||||
update_base_table()
|
||||
return render_template('100_blocks.html',
|
||||
all_boards=get_boards(),
|
||||
board=base_board)
|
||||
|
||||
Reference in New Issue
Block a user