diff --git a/navigation/aio.py b/navigation/aio.py index 6d46c14a..8cb6abea 100644 --- a/navigation/aio.py +++ b/navigation/aio.py @@ -65,11 +65,7 @@ def email(excel_file, csv_file, txt_output, email_receiver, body, jaspar): filename=f'Results_TFinder_{current_date_time}.csv') msg.attach(attachment_csv) - if jaspar == 'PWM': - if matrix_type == 'With FASTA sequences': - image = MIMEImage(st.session_state['weblogo'].read(), name=f'LOGOMAKER_{current_date_time}.jpg') - msg.attach(image) - elif jaspar == 'Individual Motif': + if jaspar == 'PWM' or jaspar == 'Individual Motif': image = MIMEImage(st.session_state['weblogo'].read(), name=f'LOGOMAKER_{current_date_time}.jpg') msg.attach(image)