Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix demo errors #19

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Fix demo errors #19

wants to merge 8 commits into from

Conversation

anhphung97
Copy link
Contributor

I fixed some display error from demo (add courses by semester, no need to refresh when add course, dislay all semester, recommendation by tracks)

@@ -127,57 +133,78 @@ def display_course_info(id):
courses = list(db_courses.find({'course':id}))
return render_template("courseinfo.html", courses = courses[0])

@app.route("/recommendations")
@app.route("/recommendations", methods=['GET', 'POST'])
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should use a different route for posting

for j in coursesTaken[str(i)]:
courses_taken.append(j)

if 'COMS1004' not in courses_taken and 'COMS1007' not in courses_taken:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a loop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants