Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
cassidysymons committed Sep 12, 2023
1 parent b8aa0b3 commit 6a988f3
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 56 deletions.
12 changes: 4 additions & 8 deletions microsetta_interface/implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,8 @@ class Source:
OTHER_ID
]

DAKLAPACK_KIT_RE = re.compile(r"DMK[234689ACDEFHJKMNPRTVWXY]{6}")


def _render_with_defaults(template_name, **context):
defaults = {}
Expand Down Expand Up @@ -2522,21 +2524,15 @@ def admin_barcode_search_query_qiita(body):


def get_ajax_check_kit_valid(kit_name):
if re.match(
r"[dD][mM][kK][234689ACDEFHJKMNPRTVWXYacdefhjkmnprtvwxy]{6}",
kit_name
):
if DAKLAPACK_KIT_RE.match(kit_name.upper()):
kit_name = kit_name.upper()
kit, error, _ = _get_kit(kit_name)
result = True if error is None else error
return flask.jsonify(result)


def get_ajax_list_kit_samples(kit_name):
if re.match(
r"[dD][mM][kK][234689ACDEFHJKMNPRTVWXYacdefhjkmnprtvwxy]{6}",
kit_name
):
if DAKLAPACK_KIT_RE.match(kit_name.upper()):
kit_name = kit_name.upper()
kit, error, code = _get_kit(kit_name)
result = kit if error is None else error
Expand Down
50 changes: 26 additions & 24 deletions microsetta_interface/translations/es_ES/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2023-09-12 14:28-0700\n"
"POT-Creation-Date: 2023-09-12 16:00-0700\n"
"PO-Revision-Date: 2023-06-16 12:25-0800\n"
"Last-Translator: \n"
"Language: es_ES\n"
Expand All @@ -18,94 +18,94 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.1\n"

#: implementation.py:773
#: implementation.py:776
msgid "The provided Kit ID is not in our system or has already been used."
msgstr ""
"El ID del kit proporcionado no está registrado en nuestro sistema o ya ha"
" sido utilizado."

#: implementation.py:1422 implementation.py:1427 templates/sitebase.jinja2:99
#: implementation.py:1425 implementation.py:1430 templates/sitebase.jinja2:99
#: templates/sitebase.jinja2:103 templates/survey.jinja2:15
msgid "SKIP"
msgstr "Saltar"

#: implementation.py:2191 model_i18n.py:69
#: implementation.py:2196 model_i18n.py:69
msgid "Blood (skin prick)"
msgstr "Sangre (punción cutánea)"

#: implementation.py:2192 model_i18n.py:70
#: implementation.py:2197 model_i18n.py:70
msgid "Saliva"
msgstr "Saliva"

#: implementation.py:2193 model_i18n.py:82
#: implementation.py:2198 model_i18n.py:82
msgid "Stool"
msgstr "Heces"

#: implementation.py:2194 model_i18n.py:77
#: implementation.py:2199 model_i18n.py:77
msgid "Mouth"
msgstr "Boca"

#: implementation.py:2195 model_i18n.py:78
#: implementation.py:2200 model_i18n.py:78
msgid "Nares"
msgstr "Fosas nasales"

#: implementation.py:2196 model_i18n.py:79
#: implementation.py:2201 model_i18n.py:79
msgid "Nasal mucus"
msgstr "Moco nasal"

#: implementation.py:2197 model_i18n.py:80
#: implementation.py:2202 model_i18n.py:80
msgid "Right hand"
msgstr "Mano derecha"

#: implementation.py:2198 model_i18n.py:75
#: implementation.py:2203 model_i18n.py:75
msgid "Left hand"
msgstr "Mano izquierda"

#: implementation.py:2199 model_i18n.py:72
#: implementation.py:2204 model_i18n.py:72
msgid "Forehead"
msgstr "Frente"

#: implementation.py:2200 model_i18n.py:84
#: implementation.py:2205 model_i18n.py:84
msgid "Torso"
msgstr "Torso"

#: implementation.py:2201 model_i18n.py:81
#: implementation.py:2206 model_i18n.py:81
msgid "Right leg"
msgstr "Pierna derecha"

#: implementation.py:2202 model_i18n.py:76
#: implementation.py:2207 model_i18n.py:76
msgid "Left leg"
msgstr "Pierna izquierda"

#: implementation.py:2203 model_i18n.py:85
#: implementation.py:2208 model_i18n.py:85
msgid "Vaginal mucus"
msgstr "Moco vaginal"

#: implementation.py:2204 model_i18n.py:83
#: implementation.py:2209 model_i18n.py:83
msgid "Tears"
msgstr "Lágrimas"

#: implementation.py:2205 model_i18n.py:71
#: implementation.py:2210 model_i18n.py:71
msgid "Ear wax"
msgstr "Cera de oído"

#: implementation.py:2206 model_i18n.py:74
#: implementation.py:2211 model_i18n.py:74
msgid "Hair"
msgstr "Cabello"

#: implementation.py:2207 model_i18n.py:73
#: implementation.py:2212 model_i18n.py:73
msgid "Fur"
msgstr "Piel"

#: implementation.py:2541
#: implementation.py:2550
msgid "Unable to validate Activation Code at this time"
msgstr "No se ha podido validar el código de activación en este momento"

#: implementation.py:2856
#: implementation.py:2865
msgid "Address 1, Postal Code, and Country are required"
msgstr "Dirección 1, Código Postal y País son requeridos"

#: implementation.py:3268 implementation.py:3386
#: implementation.py:3277 implementation.py:3395
msgid "Sorry, there was a problem saving your information."
msgstr "Lo sentimos, hubo un problema al guardar su información."

Expand Down Expand Up @@ -1167,7 +1167,9 @@ msgstr "Perfiles activos"

#: templates/account_overview.jinja2:53
msgid "Please note: animal and environmental profiles are currently unavailable."
msgstr "Tenga en cuenta: Actualmente, no están disponibles los perfiles de animales y ambientales."
msgstr ""
"Tenga en cuenta: Actualmente, no están disponibles los perfiles de "
"animales y ambientales."

#: templates/account_overview.jinja2:64 templates/account_overview.jinja2:66
msgid "You have"
Expand Down
50 changes: 26 additions & 24 deletions microsetta_interface/translations/es_MX/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2023-09-12 14:28-0700\n"
"POT-Creation-Date: 2023-09-12 16:00-0700\n"
"PO-Revision-Date: 2023-06-16 12:25-0800\n"
"Last-Translator: \n"
"Language: es_MX\n"
Expand All @@ -18,94 +18,94 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.1\n"

#: implementation.py:773
#: implementation.py:776
msgid "The provided Kit ID is not in our system or has already been used."
msgstr ""
"El ID del kit proporcionado no está registrado en nuestro sistema o ya ha"
" sido utilizado."

#: implementation.py:1422 implementation.py:1427 templates/sitebase.jinja2:99
#: implementation.py:1425 implementation.py:1430 templates/sitebase.jinja2:99
#: templates/sitebase.jinja2:103 templates/survey.jinja2:15
msgid "SKIP"
msgstr "Saltar"

#: implementation.py:2191 model_i18n.py:69
#: implementation.py:2196 model_i18n.py:69
msgid "Blood (skin prick)"
msgstr "Sangre (punción cutánea)"

#: implementation.py:2192 model_i18n.py:70
#: implementation.py:2197 model_i18n.py:70
msgid "Saliva"
msgstr "Saliva"

#: implementation.py:2193 model_i18n.py:82
#: implementation.py:2198 model_i18n.py:82
msgid "Stool"
msgstr "Heces"

#: implementation.py:2194 model_i18n.py:77
#: implementation.py:2199 model_i18n.py:77
msgid "Mouth"
msgstr "Boca"

#: implementation.py:2195 model_i18n.py:78
#: implementation.py:2200 model_i18n.py:78
msgid "Nares"
msgstr "Fosas nasales"

#: implementation.py:2196 model_i18n.py:79
#: implementation.py:2201 model_i18n.py:79
msgid "Nasal mucus"
msgstr "Moco nasal"

#: implementation.py:2197 model_i18n.py:80
#: implementation.py:2202 model_i18n.py:80
msgid "Right hand"
msgstr "Mano derecha"

#: implementation.py:2198 model_i18n.py:75
#: implementation.py:2203 model_i18n.py:75
msgid "Left hand"
msgstr "Mano izquierda"

#: implementation.py:2199 model_i18n.py:72
#: implementation.py:2204 model_i18n.py:72
msgid "Forehead"
msgstr "Frente"

#: implementation.py:2200 model_i18n.py:84
#: implementation.py:2205 model_i18n.py:84
msgid "Torso"
msgstr "Torso"

#: implementation.py:2201 model_i18n.py:81
#: implementation.py:2206 model_i18n.py:81
msgid "Right leg"
msgstr "Pierna derecha"

#: implementation.py:2202 model_i18n.py:76
#: implementation.py:2207 model_i18n.py:76
msgid "Left leg"
msgstr "Pierna izquierda"

#: implementation.py:2203 model_i18n.py:85
#: implementation.py:2208 model_i18n.py:85
msgid "Vaginal mucus"
msgstr "Moco vaginal"

#: implementation.py:2204 model_i18n.py:83
#: implementation.py:2209 model_i18n.py:83
msgid "Tears"
msgstr "Lágrimas"

#: implementation.py:2205 model_i18n.py:71
#: implementation.py:2210 model_i18n.py:71
msgid "Ear wax"
msgstr "Cera de oído"

#: implementation.py:2206 model_i18n.py:74
#: implementation.py:2211 model_i18n.py:74
msgid "Hair"
msgstr "Cabello"

#: implementation.py:2207 model_i18n.py:73
#: implementation.py:2212 model_i18n.py:73
msgid "Fur"
msgstr "Piel"

#: implementation.py:2541
#: implementation.py:2550
msgid "Unable to validate Activation Code at this time"
msgstr "No se ha podido validar el código de activación en este momento"

#: implementation.py:2856
#: implementation.py:2865
msgid "Address 1, Postal Code, and Country are required"
msgstr "Dirección 1, Código Postal y País son requeridos"

#: implementation.py:3268 implementation.py:3386
#: implementation.py:3277 implementation.py:3395
msgid "Sorry, there was a problem saving your information."
msgstr "Lo sentimos, hubo un problema al guardar su información."

Expand Down Expand Up @@ -1167,7 +1167,9 @@ msgstr "Perfiles activos"

#: templates/account_overview.jinja2:53
msgid "Please note: animal and environmental profiles are currently unavailable."
msgstr "Tenga en cuenta: Actualmente, no están disponibles los perfiles de animales y ambientales."
msgstr ""
"Tenga en cuenta: Actualmente, no están disponibles los perfiles de "
"animales y ambientales."

#: templates/account_overview.jinja2:64 templates/account_overview.jinja2:66
msgid "You have"
Expand Down

0 comments on commit 6a988f3

Please sign in to comment.