Skip to content

Commit

Permalink
small fix + rebase
Browse files Browse the repository at this point in the history
# Conflicts:
#	user.py
  • Loading branch information
SamuelVch98 committed Oct 17, 2024
1 parent ae962fc commit 24d5961
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions user.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ def user_profile(user_id, current_year):
if researcher:
preferences = db.session.query(PreferenceAssignment).filter_by(researcher_id=researcher.id,
course_year=current_year).all()

courses = []
if current_user and requested_user.organization:
courses = db.session.query(Course).filter(Course.year == current_year,
Expand Down Expand Up @@ -201,7 +200,6 @@ def update_user_profile(user_id):
user.organization_id = organization_code
user.is_admin = is_admin
user.is_teacher = is_teacher
user.is_researcher = is_researcher
if is_researcher:
if researcher is None:
create_researcher(user.id, researcher_type, max_loads)
Expand Down

0 comments on commit 24d5961

Please sign in to comment.