Skip to content

Commit

Permalink
Fixed Merge Conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
nitini committed Apr 23, 2013
2 parents 4c6081a + 72174e3 commit 70ad0e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion static/custom.css
Expand Up @@ -45,8 +45,11 @@ ul.nav {
padding-top: 30px;
}

.datepicker {
z-index: 2000;
}

.textarea {
margin-top: 20px;
margin-bottom: 20px;
}

5 changes: 4 additions & 1 deletion ticket_app.py
Expand Up @@ -50,14 +50,14 @@ def signup(user_models, user_string, next_url='/'):
request.form.get('confirm_password'))
db.session.add(user)
db.session.commit()
session[user_string] = str(user.id)
except models.UserError as e:
flash(str(e))
return redirect(next_url)


def logout(user_string, next_url='/'):
del session[user_string]
flash("You are Logged Out!")
return redirect(next_url)


Expand Down Expand Up @@ -132,11 +132,13 @@ def delete_event(event_id):
db.session.delete(event_del)
session.commit()


@app.route("/group_event/<event_id>", methods=['GET'])
def group_view_event(event_id):
event = models.Event.query.get(event_id)
return render_template('group_view_event.html', event=event)


@app.route("/event/<event_id>/purchase", methods=['POST'])
def attending_event(event_id):
student = get_model(models.Student, 'student')
Expand Down Expand Up @@ -166,6 +168,7 @@ def leader_board():
happening.append(event)
return render_template('leaderboard.html', leaders=this_week)


def datetime_to_str(date):
frmt = "%I:%M %p, %m/%d/%y"
return date.strftime(frmt)
Expand Down

0 comments on commit 70ad0e3

Please sign in to comment.