Une nouvelle version du portail de gestion des comptes externes sera mise en production lundi 09 août. Elle permettra d'allonger la validité d'un compte externe jusqu'à 3 ans. Pour plus de détails sur cette version consulter : https://doc-si.inria.fr/x/FCeS

Commit a0040fb5 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

file.py strip preceding and trailing spaces from id strings

At.js will add a trailing space to input after inserting the completed
text. It also makes sense from a rousbtness standpoint, should a user
accidentally add any preceding or trailing whitespace, the controller
will not fail.
parent aec165d0
......@@ -17,7 +17,7 @@ if request.env.http_origin:
def extract_id(target, error):
try:
id = int(target.split('(')[-1][:-1])
id = int(target.strip().split('(')[-1][:-1])
return id
except:
raise ValueError('invalid input %s' % target)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment