Skip to content

Commit 6e41e7b

Browse files
authored
Merge pull request #8648 from fossasia/development
Dev to master
2 parents 171611b + 461273f commit 6e41e7b

File tree

6 files changed

+39
-39
lines changed

6 files changed

+39
-39
lines changed

app/api/helpers/order.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,15 @@ def calculate_order_amount(tickets, discount_code=None):
283283
f"{ticket.min_price} to {ticket.max_price}",
284284
)
285285
else:
286-
price = ticket.price if ticket.type != 'free' else 0.0
286+
price = ticket.price if ticket.type not in ['free', 'freeRegistration'] else 0.0
287287

288288
if tax:
289289
if tax_included:
290290
ticket_tax = price - price / (1 + tax.rate / 100)
291291
else:
292292
ticket_tax = price * tax.rate / 100
293293

294-
if discount_code and ticket.type != 'free':
294+
if discount_code and ticket.type not in ['free', 'freeRegistration']:
295295
code = (
296296
DiscountCode.query.with_parent(ticket)
297297
.filter_by(id=discount_code.id)

app/templates/email/ticket_purchased.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<a href="https://calendar.yahoo.com/?v=60&title={{ order.event.name }}&st={{ order.event.starts_at.strftime('%Y%m%dT%H%M') }}&et={{ order.event.ends_at.strftime('%Y%m%dT%H%M') }}&desc={{ order.event.description }}&in_loc={{ order.event.normalized_location }}">{{ _('Yahoo') }}</a> &bull;
2222
<a href="https://outlook.live.com/calendar/0/deeplink/compose?subject={{ order.event.name }}&startdt={{ order.event.starts_at.strftime('%Y-%m-%dT%H:%M') }}&enddt={{ order.event.ends_at.strftime('%Y-%m-%dT%H:%M') }}&body={{ order.event.description }}&location={{ order.event.normalized_location }}">{{ _('Outlook') }}</a>
2323
<br/>
24-
{% if order.event.after_order_message %}
24+
{% if order.event.after_order_message | strip_tags != '' %}
2525
<br/>{{ _('Below you find a message from the organizer') }}:
2626
<br/>
2727
<div style="white-space: pre-line;">

app/templates/email/ticket_purchased_attendee.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<br/>{{ order.event.normalized_location }}
1616
<br/><br/>{{ _('Best regards') }},
1717
<br/>{{ settings.app_name }} {{ _('Team') }}
18-
{% if order.event.after_order_message %}
18+
{% if order.event.after_order_message | strip_tags != '' %}
1919
<br/><br/>{{ _('Below you find a message from the organizer') }}:
2020
<br/><br/>
2121
<div style="white-space: pre-line;">

poetry.lock

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ psycopg2-binary = "2.9.3"
6767
SQLAlchemy-Utils = "0.38.2"
6868
itsdangerous = "2.0.1"
6969
humanize = "4.0.0"
70-
celery = "5.2.3"
71-
redis = "4.2.1"
70+
celery = "5.2.6"
71+
redis = "4.2.2"
7272
apscheduler = "3.9.1"
7373
pillow = "9.1.0"
7474
gunicorn = "20.1.0"
7575
boto = "2.49"
7676
geoip2 = "4.5.0"
7777
SQLAlchemy-Continuum = "1.3.12"
7878
bleach = "4.1.0"
79-
stripe = "2.70.0"
79+
stripe = "2.71.0"
8080
xhtml2pdf = "0.2.6"
8181
flask-caching = "1.10.1"
8282
forex-python = "1.8"
@@ -101,7 +101,7 @@ wtforms = {version = "2.3.3", extras = ["email"]}
101101
flask-admin = "1.6.0"
102102
google-compute-engine = "2.8.13"
103103
factory_boy = "3.2.1"
104-
sentry-sdk = {version = "1.5.8", extras = ["flask"]}
104+
sentry-sdk = {version = "1.5.9", extras = ["flask"]}
105105
healthcheck = "1.3.3"
106106
elasticsearch-dsl = "7.0.0"
107107
flask-redis = "0.4"
@@ -133,14 +133,14 @@ Flask-Migrate = "2.7.0"
133133

134134
[tool.poetry.dev-dependencies]
135135
nose = "1.3.7"
136-
pylint = "2.13.4"
136+
pylint = "2.13.5"
137137
pep8 = "1.7.1"
138138
isort = "5.10.1"
139139
black = "22.3.0"
140-
pre-commit = "2.17.0"
140+
pre-commit = "2.18.1"
141141
pytype = "2022.2.8"
142142
pycln = "1.2.5"
143-
pyupgrade = "2.31.1"
143+
pyupgrade = "2.32.0"
144144
# For testing
145145
coverage = "6.3.2"
146146
dredd_hooks = "0.2"

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2563,9 +2563,9 @@ module-not-found-error@^1.0.0:
25632563
integrity sha1-z4tP9PKWQGdNbN0CsOO8UjwrvcA=
25642564

25652565
moment@^2.8.4:
2566-
version "2.24.0"
2567-
resolved "https://registry.yarnpkg.com/moment/-/moment-2.24.0.tgz#0d055d53f5052aa653c9f6eb68bb5d12bf5c2b5b"
2568-
integrity sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==
2566+
version "2.29.2"
2567+
resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.2.tgz#00910c60b20843bcba52d37d58c628b47b1f20e4"
2568+
integrity sha512-UgzG4rvxYpN15jgCmVJwac49h9ly9NurikMWGPdVxm8GZD6XjkKPxDTjQQ43gtGgnV3X0cAyWDdP2Wexoquifg==
25692569

25702570
25712571
version "0.7.1"

0 commit comments

Comments
 (0)