| 
                
               | 
              
                
               | 
              
                @@ -1057,9 +1057,16 @@ def refresh_thumbnail(): 
               | 
            
            
            
              | 
                1057
               | 
              
                1057
               | 
              
                     return 'Refresh Thumbnail OK' 
               | 
            
            
            
              | 
                1058
               | 
              
                1058
               | 
              
                  
               | 
            
            
            
              | 
                1059
               | 
              
                1059
               | 
              
                  
               | 
            
            
            
              | 
                1060
               | 
              
                
               | 
              
                -def statistic_thumbnail_size(): 
               | 
            
            
            
              | 
                1061
               | 
              
                
               | 
              
                -    """ 统计缩略图大小 """ 
               | 
            
            
            
              | 
                1062
               | 
              
                
               | 
              
                -    photos = GroupPhotoInfo.objects.filter(status=True) 
               | 
            
            
            
              | 
                
               | 
              
                1060
               | 
              
                +def statistic_thumbnail_size(pfrom): 
               | 
            
            
            
              | 
                
               | 
              
                1061
               | 
              
                +    """ 
               | 
            
            
            
              | 
                
               | 
              
                1062
               | 
              
                +    统计缩略图大小 
               | 
            
            
            
              | 
                
               | 
              
                1063
               | 
              
                +    :param pfrom: 0 for APP_GROUP, 1 for SESSION_GROUP, -1 for ALL 
               | 
            
            
            
              | 
                
               | 
              
                1064
               | 
              
                +    :return: 
               | 
            
            
            
              | 
                
               | 
              
                1065
               | 
              
                +    """ 
               | 
            
            
            
              | 
                
               | 
              
                1066
               | 
              
                +    if pfrom == -1: 
               | 
            
            
            
              | 
                
               | 
              
                1067
               | 
              
                +        photos = GroupPhotoInfo.objects.filter(status=True) 
               | 
            
            
            
              | 
                
               | 
              
                1068
               | 
              
                +    else: 
               | 
            
            
            
              | 
                
               | 
              
                1069
               | 
              
                +        photos = GroupPhotoInfo.objects.filter(photo_from=pfrom, status=True) 
               | 
            
            
            
              | 
                1063
               | 
              
                1070
               | 
              
                  
               | 
            
            
            
              | 
                1064
               | 
              
                1071
               | 
              
                     photo_count = photos.count() 
               | 
            
            
            
              | 
                1065
               | 
              
                1072
               | 
              
                  
               |