1. Wayne Werner
  2. Boog Slayer

Commits

Wayne Werner  committed 54ab8aa

Added fix for session issue

  • Participants
  • Parent commits b6ef829
  • Branches default
  • Tags 0.0.5

Comments (0)

Files changed (1)

File server.py

View file
  • Ignore whitespace
         flash("Added task #{} {}".format(task.id, task.desc), 'info')
         return redirect(url_for('display_task', task_id=task.id))
     else:
-        form.project.data = slayer.get_project(session['project'])
+        form.project.data = slayer.get_project(session.get('project', ''))
         return render_template("add_task.html", 
                                users=slayer.list_users(),
                                current_user=current_user,