Skip to content

Commit

Permalink
deleted unused routes and functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bledsoef committed Jan 21, 2025
1 parent 546780d commit b37fafa
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions app/controllers/minor/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ def addSummerExperience(username):
logging.error(f'An error occurred while adding the summer experience: {e}')
return redirect(url_for('minor.viewCceMinor', username=username))




@minor_bp.route('/profile/<username>/withdrawSummerExperience', methods=['POST'])
def withdrawSummerExperience(username):
try:
Expand All @@ -66,9 +63,6 @@ def withdrawSummerExperience(username):
flash('An error occurred while withdrawing the proposal.', 'danger')
return jsonify({'status': 'error', 'message': 'An error occurred while withdrawing the proposal.'}), 500




@minor_bp.route('/cceMinor/<username>/updateSummerExperience', methods=['GET', 'POST'])
def updateSummerExperience(username):
try:
Expand Down Expand Up @@ -139,15 +133,6 @@ def view_other_engagement(username):
other_experience = None
return render_template('minor/profile.html', user=user, other_experience=other_experience)




def get_terms():
terms = Term.select()
term_list = [{'id': term.id, 'name': term.description} for term in terms]
return jsonify(term_list)


@minor_bp.route('/withdrawOtherExperience/<int:experience_id>', methods=['POST'])
def withdraw_other_experience(experience_id):
try:
Expand Down Expand Up @@ -181,8 +166,6 @@ def edit_other_engagement(username):

# ###############################################################################



@minor_bp.route('/cceMinor/<username>/getEngagementInformation/<type>/<term>/<id>', methods=['GET'])
def getEngagementInformation(username, type, id, term):
"""
Expand Down Expand Up @@ -237,13 +220,3 @@ def requestOtherEngagement(username):
return render_template("/minor/requestOtherEngagement.html",
user=user,
terms=terms)
def addSummerExperience(username):
saveSummerExperience(username, request.form, g.current_user)

return ""

@minor_bp.route('/cceMinor/<username>/deleteSummerExperience', methods=['POST'])
def deleteSummerExperience(username):
removeSummerExperience(username)

return ""

0 comments on commit b37fafa

Please sign in to comment.