Skip to content

Commit

Permalink
Fix email
Browse files Browse the repository at this point in the history
  • Loading branch information
Jumitti committed Apr 26, 2024
1 parent 6e22c30 commit c89048f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions navigation/aio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c89048f

Please sign in to comment.