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
fix: Remove upcoming events from after event email text #6624
Conversation
Codecov Report
@@ Coverage Diff @@
## development #6624 +/- ##
===============================================
+ Coverage 65.06% 65.08% +0.02%
===============================================
Files 297 297
Lines 15258 15253 -5
===============================================
Hits 9927 9927
+ Misses 5331 5326 -5
Continue to review full report at Codecov.
|
@iamareebjamal Check this |
Read the complete issue again |
@iamareebjamal |
app/api/helpers/system_mails.py
Outdated
@@ -63,7 +63,7 @@ | |||
'message': ( | |||
u"Hi {email},<br/>" + | |||
u"Thank You for participating in our event. We hope you enjoyed it. " | |||
u"Please check the list of more upcoming events. <br />" + | |||
u"Please check out other upcoming events around you on eventyay.com <br />" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take out the list of upcoming events and instead link to eventyay.com
@codedsun
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please read my comment here
#6624 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the list of upcoming events which are being shown .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Omg, I thought take out means extraction -_-
@kushthedude Review now! |
app/api/helpers/system_mails.py
Outdated
@@ -63,8 +63,7 @@ | |||
'message': ( | |||
u"Hi {email},<br/>" + | |||
u"Thank You for participating in our event. We hope you enjoyed it. " | |||
u"Please check the list of more upcoming events. <br />" + | |||
u"Here are the upcoming events: {upcoming_events}. Get ready!! " | |||
u"Please check out other upcoming events around you on eventyay.com <br />" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This repository is for open-event-server, not eventyay.com
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have to use this via frontend_url? @iamareebjamal
@iamareebjamal check now |
@@ -29,13 +29,6 @@ def send_after_event_mail(): | |||
from app import current_app as app | |||
with app.app_context(): | |||
events = Event.query.filter_by(state='published', deleted_at=None).all() | |||
upcoming_events = get_upcoming_events() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If get_upcoming_events
is not used anywhere else, comment on it saying TODO: Unused function. Remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@iamareebjamal Check now |
thank you so much :)
…On Wed, Nov 27, 2019, 3:22 AM Areeb Jamal ***@***.***> wrote:
***@***.**** approved this pull request.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6624?email_source=notifications&email_token=AEYZISB63XUAP7I4BAI3RJLQVWLBDA5CNFSM4JR5FDE2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCNCUWDQ#pullrequestreview-323308302>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEYZISBAHHWBRPL47SQ2E43QVWLBDANCNFSM4JR5FDEQ>
.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Fixes #6623
Short description of what this resolves:
Changes text of email
Checklist
development
branch.