File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -112,20 +112,15 @@ LEFT JOIN proj_phase_end ppe
112112  ON  ppe .project_id  =  base .project_id 
113113WHERE 
114114  COALESCE(b .billing_account_id , proj .project_billing_account_id ) =  80000062 
115-   AND  COALESCE(
116-         CASE WHEN base .challenge_status  =  ' COMPLETED' lp .last_phase_end  END,
117-         base .planned_end_at ,
118-         base .challenge_created_at 
119-       ) BETWEEN $1 ::timestamptz  AND  $2 ::timestamptz 
120115  AND  (
121116    (base .challenge_status  =  ' COMPLETED' 
122-       AND  lp .last_phase_end  )  BETWEEN $ 1 :: timestamptz  AND  $ 2 ::timestamptz 
117+       AND  lp .last_phase_end  BETWEEN ' 2025-09-28T00:00:00Z ' :: timestamptz  AND  ' 2025-10-05T23:59:59.999Z ' timestamptz 
123118    )
124119    OR 
125120    (base .challenge_status  =  ' ACTIVE' AND  (
126-          base .challenge_created_at  )  BETWEEN $ 1 :: timestamptz  AND  $ 2 ::timestamptz 
127-       OR  base .challenge_updated_at  )  BETWEEN $ 1 :: timestamptz  AND  $ 2 ::timestamptz 
128-       OR  base .planned_end_at        )  BETWEEN $ 1 :: timestamptz  AND  $ 2 ::timestamptz 
121+          base .challenge_created_at  BETWEEN ' 2025-09-28T00:00:00Z ' :: timestamptz  AND  ' 2025-10-05T23:59:59.999Z ' timestamptz 
122+       OR  base .challenge_updated_at  BETWEEN ' 2025-09-28T00:00:00Z ' :: timestamptz  AND  ' 2025-10-05T23:59:59.999Z ' timestamptz 
123+       OR  base .planned_end_at        BETWEEN ' 2025-09-28T00:00:00Z ' :: timestamptz  AND  ' 2025-10-05T23:59:59.999Z ' timestamptz 
129124    ))
130125  )
131126ORDER BY  base .challenge_id  DESC , reg .registrant_handle ;
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments