chenjunkai il y a 7 ans
Parent
commit
c196730987
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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)