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

Fixed crashing bug with generate_mutual_friends_for_one_voter. #1849

Merged
merged 1 commit into from
Jun 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion friend/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2043,7 +2043,9 @@ def generate_mutual_friends_for_one_voter(voter_we_vote_id='', update_existing_d
friend_manager = FriendManager()
voter_manager = VoterManager()
# Retrieve list of all CurrentFriend entries connected to voter_we_vote_id
current_friend_list_results = friend_manager.retrieve_current_friend_list(voter_we_vote_id=voter_we_vote_id)
current_friend_list_results = friend_manager.retrieve_current_friend_list(
voter_we_vote_id=voter_we_vote_id,
read_only=False)
if not current_friend_list_results['success']:
status += current_friend_list_results['status']
success = False
Expand Down