Skip to content

Commit

Permalink
Merge branch 'master' into feat--add-language-dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin authored May 8, 2024
2 parents 99d08fb + 887fc56 commit b8020bb
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 45 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

<!--next-version-placeholder-->

## v5.16.25 (2024-05-07)

### Fix

* Bump up version ([`9dce52f`](https://github.com/ocadotechnology/rapid-router/commit/9dce52f46400a465679f06d30a3ad1623b171a54))

## v5.16.24 (2024-04-19)

### Fix
Expand Down
14 changes: 0 additions & 14 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ of the Code for Life website, all copyright, trademarks, and other
intellectual property rights in and relating to Code for Life (including all
content of the Code for Life website, the Rapid Router application, the
Kurono application, related software (including any drawn and/or animated
avatars, whether or not such avatars have any modifications) and any other
games, applications or any other content that we make available from time to
time) are owned by Ocado Innovation Limited.
avatars, whether such avatars have any modifications) and any other games,
applications or any other content that we make available from time to time) are
owned by Ocado Innovation Limited.

The source code of the Code for Life portal, the Rapid Router application
and the Kurono/aimmo application are [licensed under the GNU Affero General
Expand Down
1 change: 1 addition & 0 deletions example_project/rapid_router_test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"NAME": os.path.join(
os.path.abspath(os.path.dirname(__file__)), "db.sqlite3"
), # Or path to database file if using sqlite3.
"ATOMIC_REQUESTS": True,
}
}

Expand Down
1 change: 1 addition & 0 deletions example_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"NAME": os.path.join(
os.path.abspath(os.path.dirname(__file__)), "db.sqlite3"
), # Or path to database file if using sqlite3.
"ATOMIC_REQUESTS": True,
}
}

Expand Down
2 changes: 1 addition & 1 deletion game/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.16.24"
__version__ = "5.16.25"
26 changes: 10 additions & 16 deletions game/level_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@
from builtins import str
from itertools import chain

from common.helpers.emails import NOTIFICATION_EMAIL, send_email
from common.mail import campaign_ids, send_dotdigital_email

from game.character import get_character_by_pk
from game.decor import get_decor_element
from game.messages import (
level_creation_email_subject,
level_creation_email_text_content,
)
from game.theme import get_theme_by_pk
from .models import Block, LevelBlock, LevelDecor

Expand Down Expand Up @@ -191,16 +187,14 @@ def email_new_custom_level(
teacher_email, moderate_url, level_url, home_url, student_name, class_name
):
# email teacher when a new custom level is created by a pupil, so it can be moderated ASAP
send_email(
NOTIFICATION_EMAIL,

send_dotdigital_email(
campaign_ids["level_creation"],
[teacher_email],
level_creation_email_subject(),
level_creation_email_text_content().format(
moderate_url=moderate_url,
level_url=level_url,
student_name=student_name,
class_name=class_name,
home_url=home_url,
),
level_creation_email_subject(),
personalization_values={
"STUDENT_NAME": student_name,
"CLASS_NAME": class_name,
"LEVEL_URL": level_url,
"MODERATE_URL": moderate_url
}
)
11 changes: 0 additions & 11 deletions game/messages.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
from builtins import str


def level_creation_email_subject():
return "Custom level to moderate"


def level_creation_email_text_content():
return (
"Your student {student_name} from your class {class_name} has created this level: {level_url}. "
"If you want to moderate it, you can do it on the moderation board: {moderate_url}."
)


def youtube_link(url, border):
return (
"<div class='popup_video'>"
Expand Down

0 comments on commit b8020bb

Please sign in to comment.