Skip to content

Commit

Permalink
Show Job Details Bug Fix (#5071)
Browse files Browse the repository at this point in the history
* 	Job Status Bug Fix
	- when a user has turned show_job_status it will no longer show in the api

* fixed the incorrect key for job_salary
  • Loading branch information
androolloyd authored and danlipert committed Sep 10, 2019
1 parent b0019d2 commit 952f437
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,12 @@ def previous_worked():
'show_job_status', 'job_location', 'job_salary', 'job_search_status',
'job_type', 'linkedin_url', 'resume', 'remote', 'keywords',
'organizations', 'is_org']}

if user.show_job_status is False:
del profile_json['job_salary']
del profile_json['job_location']
del profile_json['job_type']

profile_json['job_status'] = user.job_status_verbose if user.job_search_status else None
profile_json['previously_worked'] = user.previous_worked_count > 0
profile_json['position_contributor'] = user.get_contributor_leaderboard_index()
Expand Down

0 comments on commit 952f437

Please sign in to comment.