Browse Source

para que los N/A de avaluo no cuenten como 0 y no se reporten

parent
commit
5e83351ab1

+ 1
- 1
app/controllers/OutcomesController.php View File

@@ -983,7 +983,7 @@ class OutcomesController extends \BaseController
983 983
             ->first();
984 984
         Log::info($program);
985 985
 
986
-
986
+// exit();
987 987
         return View::make('local.managers.pCoords.new_assessment_report', compact('title', 'program'));
988 988
     }
989 989
 

+ 1
- 1
app/database/seeds/CourseStudentTableSeeder.php View File

@@ -15,7 +15,7 @@ class CourseStudentTableSeeder extends Seeder {
15 15
         $time_start = microtime(true);
16 16
 
17 17
         // Open file
18
-        if($file = fopen('app/database/csv/ARCEXTPR-20-20220829-030414.TXT', 'r'))
18
+        if($file = fopen('app/database/csv/estusLabC21.txt', 'r'))
19 19
         {
20 20
             // Initialize count variables
21 21
             $read = 0;

+ 1
- 0
app/models/Criterion.php View File

@@ -105,6 +105,7 @@ class Criterion extends Eloquent
105 105
 			$students_attempted += DB::table('assessments')
106 106
 				->join('activity_criterion', 'assessments.activity_criterion_id', '=', 'activity_criterion.id')
107 107
 				->where('activity_criterion.id', $activity_criterion->id)
108
+				->whereNotNull('score')
108 109
 				->count();
109 110
 		}
110 111
 		return $students_attempted;

+ 4
- 2
app/views/local/managers/pCoords/new_assessment_report.blade.php View File

@@ -99,7 +99,7 @@
99 99
                                     <br>
100 100
                                     <h5 style="display: inline;">Performance Indicators: </h5>
101 101
                                     <?php
102
-                                    Log::info($activity->rubric[0]);
102
+//                                     Log::info($activity->rubric[0]);
103 103
                                     ?>
104 104
                                     <p style="display: inline;"><i>{{ $activity->rubric[0]->num_scales }} (
105 105
                                             <?php
@@ -165,6 +165,7 @@
165 165
                                         </thead>
166 166
                                         <tbody>
167 167
                                             @foreach ($activity->allActivityCriterionInfo() as $index5 => $ac_criterion)
168
+                                             @if ( Criterion::students_attempted($ac_criterion->criterion_id, $activity->id) )
168 169
                                                 <tr>
169 170
                                                     <td> {{ $ac_criterion->name }}</td>
170 171
                                                     <td>{{ Criterion::students_attempted($ac_criterion->criterion_id, $activity->id) }}
@@ -203,6 +204,7 @@
203 204
 
204 205
                                                     </td>
205 206
                                                 </tr>
207
+                                             @endif
206 208
                                             @endforeach
207 209
                                         </tbody>
208 210
 
@@ -330,7 +332,7 @@
330 332
                                     <br>
331 333
                                     <h5 style="display: inline;">Performance Indicators: </h5>
332 334
                                     <?php
333
-                                    Log::info($activity->rubric[0]);
335
+//                                     Log::info($activity->rubric[0]);
334 336
                                     ?>
335 337
                                     <p style="display: inline;"><i>{{ $activity->rubric[0]->num_scales }} (
336 338
                                             <?php