I'm not familiar with that framework, so I can only provide some general points:
- You can rewrite the
if
statement tosubject = ad.title or 'Reminder'
(see here here). - You are a bit inconsistent with spacings (before and after
=
,,
,()
, etc.), and string formatting (your second and thirdlogging.info
) - I'd recomment spreading both those chained
filters
and overly long strings over multiple lines. - Maybe you could use some helper method to derive the HTML version of the message from the plain-text version or vice versa?
I'm not familiar with that framework, so I can only provide some general points:
- You can rewrite the
if
statement tosubject = ad.title or 'Reminder'
(see here). - You are a bit inconsistent with spacings (before and after
=
,,
,()
, etc.), and string formatting (your second and thirdlogging.info
) - I'd recomment spreading both those chained
filters
and overly long strings over multiple lines. - Maybe you could use some helper method to derive the HTML version of the message from the plain-text version or vice versa?
I'm not familiar with that framework, so I can only provide some general points:
- You can rewrite the
if
statement tosubject = ad.title or 'Reminder'
(see here). - You are a bit inconsistent with spacings (before and after
=
,,
,()
, etc.), and string formatting (your second and thirdlogging.info
) - I'd recomment spreading both those chained
filters
and overly long strings over multiple lines. - Maybe you could use some helper method to derive the HTML version of the message from the plain-text version or vice versa?
I'm not familiar with that framework, so I can only provide some general points:
- You can rewrite the
if
statement tosubject = ad.title or 'Reminder'
(see here ). - You are a bit incosistentinconsistent with spacings (before and after
=
,,
,()
, etc.), and string formatting (your second and thirdlogging.info
) - I'd recomment spreading both those chained
filters
and overly long strings over multiple lines. - Maybe you could use some helper method to derive the HTML version of the message from the plain-text version or vice versa?
I'm not familiar with that framework, so I can only provide some general points:
- You can rewrite the
if
statement tosubject = ad.title or 'Reminder'
. - You are a bit incosistent with spacings (before and after
=
,,
,()
, etc.), and string formatting (your second and thirdlogging.info
) - I'd recomment spreading both those chained
filters
and overly long strings over multiple lines. - Maybe you could use some helper method to derive the HTML version of the message from the plain-text version or vice versa?
I'm not familiar with that framework, so I can only provide some general points:
- You can rewrite the
if
statement tosubject = ad.title or 'Reminder'
(see here ). - You are a bit inconsistent with spacings (before and after
=
,,
,()
, etc.), and string formatting (your second and thirdlogging.info
) - I'd recomment spreading both those chained
filters
and overly long strings over multiple lines. - Maybe you could use some helper method to derive the HTML version of the message from the plain-text version or vice versa?
I'm not familiar with that framework, so I can only provide some general points:
- You can rewrite the
if
statement tosubject = ad.title or 'Reminder'
. - You are a bit incosistent with spacings (before and after
=
,,
,()
, etc.), and string formatting (your second and thirdlogging.info
) - I'd recomment spreading both those chained
filters
and overly long strings over multiple lines. - Maybe you could use some helper method to derive the HTML version of the message from the plain-text version or vice versa?