Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
update : math float in soring save part
Browse files Browse the repository at this point in the history
  • Loading branch information
minjunj committed Jun 17, 2024
1 parent 5267342 commit 93136d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions src/scoring/scoring.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@ export class ScoringController {
@Param('lecture_id') lecture_id: number,
@Param('prof_id') prof_id?: number,
): Promise<any> {
console.log('ing');
await this.scoringService.scoring(lecture_id, prof_id);
console.log('out scoring func');
await this.scoringService.updateScoring(lecture_id, prof_id);
console.log('out update scoring func');
return await this.scoringService.getScoring(lecture_id, prof_id);
}

Expand Down
7 changes: 0 additions & 7 deletions src/scoring/scoring.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ export class ScoringService {
main_lecture_id: number,
prof_id?: number,
) {
console.log('in scoring function');
// let prof_id = prof_i1d;
let i: number;
let diff_sum = 0;
Expand Down Expand Up @@ -261,12 +260,6 @@ export class ScoringService {
inter_sum = inter_sum / i;
lots_sum = lots_sum / i;
sati_sum = sati_sum / i;
console.log('diff sum' + diff_sum);
console.log('stren sum' + stren_sum);
console.log('help sum' + help_sum);
console.log('inter sum' + inter_sum);
console.log('lots sum' + lots_sum);
console.log('sati sum' + sati_sum);
// total_score =
// (diff_sum + stren_sum + help_sum + inter_sum + lots_sum + sati_sum) / 6;
const found = await this.lectureRepository.findOne({
Expand Down

0 comments on commit 93136d2

Please sign in to comment.