Skip to content

Commit

Permalink
Update logic for extension
Browse files Browse the repository at this point in the history
Co-authored-by: Jaeseok Kang <[email protected]>
  • Loading branch information
oliiso and ziesski authored Jul 10, 2024
1 parent c3528db commit 52d06c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,12 @@ TableCell::TableCell(float d, const std::string& c, int precision, const std::st
if (event == "Overridden"){
override = true;
bad_status = inquiry = extension = version_conflict = cancelled = false;
} else if (event == "Extension" && reason != ""){
} else if (event == "Extension"){
extension = true;
inquiry = bad_status = override = version_conflict = cancelled = false;
if (reason != ""){
hoverText = "class=\"hoverable-cell\" data-hover-text=\"" + userName + " received a " + std::to_string(daysExtended) + " day extension due to " + reason + " on " + gID + "\" ";
}
} else if (event == "Open"){
inquiry = true;
bad_status = override = extension = version_conflict = cancelled = false;
Expand Down

0 comments on commit 52d06c1

Please sign in to comment.