Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lfsjesus committed Nov 6, 2022
1 parent f551564 commit cdfc7ae
Show file tree
Hide file tree
Showing 74 changed files with 12,563 additions and 3,252 deletions.
2 changes: 1 addition & 1 deletion Classes/Managing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ void Managing::processRequests() {
bool balance = checkBalancing(*it);
bool space = checkSpaceAvailable((*it));
auto schedule = schedules.find(new Schedule((*it)));
bool overlap = checkScheduleOverlap(*students.find(*student), (*schedule));
bool overlap = checkScheduleOverlap((*student), (*schedule));

if (balance && space && !overlap) {
auto student = students.find(new Student(request->getStudentCode1()));
Expand Down
2 changes: 1 addition & 1 deletion Classes/Turma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ bool Turma::operator<(const Turma &rhs) const {

if (classCode == rhs.classCode) {
if (ucCode == "UP001") {
return 1;
return ucCode < rhs.ucCode;
}
return ucCode < rhs.ucCode;
}
Expand Down
Loading

0 comments on commit cdfc7ae

Please sign in to comment.