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

Modvirk duplikeret Email for samme (session,profile)-par #237

Open
Mortal opened this issue Oct 2, 2018 · 0 comments
Open

Modvirk duplikeret Email for samme (session,profile)-par #237

Mortal opened this issue Oct 2, 2018 · 0 comments
Assignees

Comments

@Mortal
Copy link
Contributor

Mortal commented Oct 2, 2018

Hvis databasen indeholder flere Email objekter med samme (session,profile)-par, så bliver kun én af dem opdateret af Session.regenerate_emails(), og man får Internal server error når man forsøger at sende mails ud.

Jeg ved ikke hvordan duplikeret Email kan opstå - formentlig en race condition et sted.

Foreslået løsning: Når get_base_recipient_data() itererer email_set.all() og finder den samme profile_id mere end én gang, skal dubletter blot slettes med det samme.

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

No branches or pull requests

1 participant