SamStudio8 / ocarina2

on-computer agent (for) remembering input actions
MIT License
8 stars 1 forks source link

Seems to be trying to call `strip` on an is_surveillance flag #9

Closed btemperton closed 3 years ago

btemperton commented 3 years ago

If you use the --is-surveillance flag, e.g.

ocarina put biosample --adm1 UK-ENG --is-surveillance \
    --central-sample-id EXET-13A00C \
    --received-date 2020-11-22

it returns an error suggesting it is trying to call strip() on the boolean associated with the variable is-surveillance

Response========================================================================
{
    "errors": 1,
    "ignored": [],
    "messages": [
        "'bool' object has no attribute 'strip'"
    ],
    "new": [],
    "request": "e9712f2a-1f92-4cf2-ab72-5191bccb4c0c",
    "success": false,
    "tasks": [],
    "updated": [],
    "warnings": 0
}
SamStudio8 commented 3 years ago

Fixed by https://github.com/SamStudio8/majora/commit/bd84f18b7bd56e056d84e5d5a1062f700022044a Thanks