chenjunkai 7 лет назад
Родитель
Сommit
c196730987
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      Controller/UserManger.py

+ 2 - 1
Controller/UserManger.py

@@ -682,7 +682,8 @@ class perfectUserInfoView(TemplateView):
                 userID = tM.accessDict.get('userID', None)
                 if userID:
                     if userIcon != None:
-                        location = 'static/User/Images/' + userID[-11:] + '/'
+                        # location = 'static/User/Images/' + userID[-11:] + '/'
+                        location = 'static/User/Images/' + userID + '/'
                         fss = FileSystemStorage(location = location)
                         if fss.exists(userIcon.name):
                             fss.delete(userIcon.name)