diff --git a/translations/ar/LC_MESSAGES/messages.po b/translations/ar/LC_MESSAGES/messages.po index 488f02ade6f..80e8a22c304 100644 --- a/translations/ar/LC_MESSAGES/messages.po +++ b/translations/ar/LC_MESSAGES/messages.po @@ -1260,6 +1260,9 @@ msgstr "ليس لديك حساب؟" msgid "no_accounts" msgstr "لا يوجد حسابات ليتم انشاءها." +msgid "no_adventures_yet" +msgstr "لا يوجد مغامرات عامة بعد..." + #, fuzzy msgid "no_certificate" msgstr "This user hasn't earned the Hedy Certificate of Completion" @@ -1512,6 +1515,9 @@ msgstr "هل تريد الإنضمام الى هذا الصف؟" msgid "public" msgstr "Public" +msgid "public_adventures" +msgstr "المغامرات العامة" + msgid "public_invalid" msgstr "اختيار الاتفاقية هذا غير صالح" @@ -2178,12 +2184,6 @@ msgstr "اختر العلامة" msgid "Unused Variable" msgstr "You defined the variable {variable_name} on line {line_number}, but you did not use it." -msgid "no_adventures_yet" -msgstr "" - -msgid "public_adventures" -msgstr "" - msgid "title_public-adventures" msgstr "" diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index 343da8ebaa0..34af9b722fc 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -1025,7 +1025,7 @@ msgid "no_accounts" msgstr "There are no accounts to create." msgid "no_adventures_yet" -msgstr "" +msgstr "There are no public adventures yet..." msgid "no_certificate" msgstr "This user hasn't earned the Hedy Certificate of Completion" @@ -1256,7 +1256,7 @@ msgid "public" msgstr "Public" msgid "public_adventures" -msgstr "" +msgstr "Public adventures" msgid "public_invalid" msgstr "This agreement selection is invalid" diff --git a/website/database.py b/website/database.py index 2b3b151c7db..9aab2ea2501 100644 --- a/website/database.py +++ b/website/database.py @@ -597,7 +597,7 @@ def batch_get_adventures(self, adventure_ids): return ADVENTURES.batch_get(keys) if keys else {} def get_public_adventures(self): - return ADVENTURES.get_many({"public": 1}) + return ADVENTURES.get_many({"public": True}) def delete_adventure(self, adventure_id): ADVENTURES.delete({"id": adventure_id})