Compare commits
No commits in common. "master" and "fix/relative-path-and-docs" have entirely different histories.
master
...
fix/relati
19
Makefile
19
Makefile
@ -1,19 +0,0 @@
|
|||||||
VENV = venv
|
|
||||||
PYTHON = $(VENV)/bin/python3
|
|
||||||
PIP = $(VENV)/bin/pip
|
|
||||||
|
|
||||||
run: $(VENV)/bin/activate
|
|
||||||
$(PYTHON) init_db.py
|
|
||||||
$(PYTHON) run.py
|
|
||||||
|
|
||||||
|
|
||||||
$(VENV)/bin/activate: requirements.txt
|
|
||||||
python3 -m venv $(VENV)
|
|
||||||
$(PIP) install -r requirements.txt
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -rf __pycache__
|
|
||||||
rm -rf $(VENV)
|
|
||||||
rm -r taskmanager/__pycache__/
|
|
||||||
rm instance/taskmanager.db
|
|
@ -29,7 +29,7 @@ def addtask():
|
|||||||
username = request.form['username']
|
username = request.form['username']
|
||||||
# Input sanitation
|
# Input sanitation
|
||||||
# Task name
|
# Task name
|
||||||
if not taskname.isprintable() or ("<" in taskname and ">" in taskname):
|
if not taskname.printable() or ("<" in taskname and ">" in taskname):
|
||||||
return render_template('pages/response.html', response = "Task name has to be made only of letters or numbers.")
|
return render_template('pages/response.html', response = "Task name has to be made only of letters or numbers.")
|
||||||
if len(taskname) < 1 or len(taskname) > 40:
|
if len(taskname) < 1 or len(taskname) > 40:
|
||||||
return render_template('pages/response.html', response = "Task name lenght invalid, only smaller then 40 charachters allowed")
|
return render_template('pages/response.html', response = "Task name lenght invalid, only smaller then 40 charachters allowed")
|
||||||
|
Loading…
Reference in New Issue
Block a user