fixed rest api bug (stripped whitespace)

This commit is contained in:
Ross Mountjoy 2020-02-02 17:49:11 -05:00
parent d4919ffd09
commit 9fb86b7cdb

View File

@ -204,7 +204,7 @@ def get_rest_data(template):
while template and template.find("{{") > -1:
start_braces = template.find("{{") + 2
end_braces = template.find("}}")
key = template[start_braces:end_braces]
key = template[start_braces:end_braces].strip()
key_w_braces = template[start_braces - 2 : end_braces + 2]
value = do_api_call(key)
template = template.replace(key_w_braces, value)