|  |  | @@ -38,7 +38,7 @@ class Command(CompatibilityBaseCommand): | 
            
            
              | 38 | 38 |              distributors = DistributorInfo.objects.filter(brand_id=b.brand_id, status=True) | 
            
            
              | 39 | 39 |              models = ModelInfo.objects.filter(brand_id=b.brand_id, status=True) | 
            
            
              | 40 | 40 |              for m in models: | 
            
            
              | 41 |  | -                logs = SaleclerkSubmitLogInfo.objects.filter(model_pk=m.pk, dupload=False, test_sn=False, status=True) | 
            
            
              |  | 41 | +                logs = SaleclerkSubmitLogInfo.objects.filter(model_pk=m.pk, dupload=False, test_sn=False, ym__gle=lastmonth, status=True) | 
            
            
              | 42 | 42 |                  for d in distributors: | 
            
            
              | 43 | 43 |                      saleclerks = SaleclerkInfo.objects.filter(brand_id=b.brand_id, distributor_id=d.distributor_id, status=True) | 
            
            
              | 44 | 44 |                      yesterday_num = 0 | 
            
            
            
            
              |  |  | @@ -66,7 +66,6 @@ class Command(CompatibilityBaseCommand): | 
            
            
              | 66 | 66 |   | 
            
            
              | 67 | 67 |              srs = SalesResponsibilityInfo.objects.filter(brand_id=b.brand_id, status=True) | 
            
            
              | 68 | 68 |              for s in srs: | 
            
            
              | 69 |  | -                print s | 
            
            
              | 70 | 69 |                  if s.is_super: | 
            
            
              | 71 | 70 |                      continue | 
            
            
              | 72 | 71 |                  sums = SalesResponsibilityInfoModelsSaleStatisticInfo.objects.filter( |