Skip to content

Commit

Permalink
Fix for issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Shayan Doust committed Jul 19, 2024
1 parent 36020e0 commit eea3918
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/views/TrackA.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ import {BAlert} from "bootstrap-vue-next";
import router from "@/router/index.js";
import {FontAwesomeIcon} from "@fortawesome/vue-fontawesome";
// $cookies.set("pscomp_oauth", JSON.stringify({"email": "shayan.doust@outlook.com"}));
//$cookies.set("pscomp_oauth", JSON.stringify({"email": "shayan.doust@outlook.com"}));
// Check if oauth cookie is set. If not, redirect to login.
if ($cookies.get("pscomp_oauth") == null) {
console.log("Not logged in... routing to login page");
Expand Down Expand Up @@ -164,8 +164,13 @@ import Powersort as Powersort
import Timsort as Timsort
import Counters as Counters
import json
def cost(lst, sorter):
lst = json.loads(lst)
wrapped = [Counters.ComparisonCounter(x) for x in lst]
Counters.reset_counters()
sorter.sort(wrapped)
assert Counters.ComparisonCounter.EQ_COMPARISONS == 0
Expand Down

0 comments on commit eea3918

Please sign in to comment.