- Run `python manager.py testinit` - Access `http://localhost:5000/taskhall/list` to get the list of tasks. Here is some parameters: - page: The page number, starting from 1. Default is 1. - keyword: One of 'time', 'vote', or 'view'. Default is 'time' - per_page: Tasks per page. Default is 2 (`FLASKY_TASKS_PER_PAGE` in config.py) For example: - `http://localhost:5000/taskhall/list?page=2` will get the 2nd page sorted by time(descent) and 2 tasks per page. - `http://localhost:5000/taskhall/list?page=1&keyword='vote'&per_page=100` will get the first page sorted by vote(descent) and 100 tasks per page.
python manager.py testinithttp://localhost:5000/taskhall/listto get the list of tasks. Here is some parameters:FLASKY_TASKS_PER_PAGEin config.py)For example:
http://localhost:5000/taskhall/list?page=2will get the 2nd page sorted by time(descent) and 2 tasks per page.http://localhost:5000/taskhall/list?page=1&keyword='vote'&per_page=100will get the first page sorted by vote(descent) and 100 tasks per page.