mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-18 08:51:30 +00:00
perf: 切割一次就可以了
This commit is contained in:
parent
755fa8efa8
commit
ab34b9906e
@ -171,7 +171,7 @@ class PrepareRequestMixin:
|
|||||||
valid_attrs = ['username', 'name', 'email', 'comment', 'phone']
|
valid_attrs = ['username', 'name', 'email', 'comment', 'phone']
|
||||||
|
|
||||||
for attr, value in attrs.items():
|
for attr, value in attrs.items():
|
||||||
attr = attr.rsplit('/')[-1]
|
attr = attr.rsplit('/', 1)[-1]
|
||||||
if attr not in valid_attrs:
|
if attr not in valid_attrs:
|
||||||
continue
|
continue
|
||||||
user_attrs[attr] = self.value_to_str(value)
|
user_attrs[attr] = self.value_to_str(value)
|
||||||
|
Loading…
Reference in New Issue
Block a user