perf: 切割一次就可以了

pull/7606/head
jiangweidong 2022-02-10 18:05:28 +08:00 committed by 老广
parent 755fa8efa8
commit ab34b9906e
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class PrepareRequestMixin:
valid_attrs = ['username', 'name', 'email', 'comment', 'phone']
for attr, value in attrs.items():
attr = attr.rsplit('/')[-1]
attr = attr.rsplit('/', 1)[-1]
if attr not in valid_attrs:
continue
user_attrs[attr] = self.value_to_str(value)