Skip to content

Commit

Permalink
fix programming mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lucky-sideburn committed Aug 13, 2024
1 parent 26bd209 commit 32051e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions html5/mode_controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function startGameMode() {
document.getElementById("gameContainer").style.height = "100%";
//document.getElementById("loadButtonGroup").style.width = "650px";
$("#gameModeButton").text("Disable Game Mode");
$("#programmingModeButton").text("Enable Prog. Mode (alpha)");
$("#programmingModeButton").text("Enable Prog. Mode");
programming_mode_switch = false;
}
if (game_buttons.style.display === "none") {
Expand All @@ -44,7 +44,7 @@ function startProgrammingMode() {

if (programming_mode_switch) {
programming_mode_switch = false;
$("#programmingModeButton").text("Enable Prog. Mode (alpha)");
$("#programmingModeButton").text("Enable Prog. Mode");
} else {
document.getElementById("gameContainer").style.width = "100%";
document.getElementById("gameContainer").style.height = "100%";
Expand Down
2 changes: 1 addition & 1 deletion scripts/programming_mode/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def create_job(job_name, pod_template):
if 'additional-labels' in job_attrs and 'chaos-codename' in job_attrs['additional-labels']:
codename = job_attrs['additional-labels']['chaos-codename']
metric_job_name = job_name.replace("-","_");
r.set(f"chaos_jobs_status:{codename}:{exp['name']}:{job_name}", 0.0)
r.set(f"chaos_jobs_status:{codename}:{exp['name']}:{metric_job_name}", 0.0)

if r.exists('chaos_node_jobs_total') == 1:
r.incr('chaos_node_jobs_total')
Expand Down

0 comments on commit 32051e5

Please sign in to comment.