Skip to content

Commit

Permalink
Fixed bug with images being labeled as GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
zagganas committed May 6, 2022
1 parent a437da1 commit 1df10e4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions controllers/JupyterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,12 @@ public function actionIndex()
foreach ($img as $i)
{
$description=$i->description;
if ($i->gpu)
if ($i->gpu==true)
{
$description.=' (GPU)';
}
$images[$i->image]=$description;

$images[$i->id]=$description;
}

return $this->render('index',['projects'=>$projects,'images'=>$images]);
Expand Down
2 changes: 1 addition & 1 deletion database_schema/schema_db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ ALTER TABLE public."user" OWNER TO schema;
--

CREATE SEQUENCE public.user_id_seq
START WITH 1
START WITH 2
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
Expand Down
2 changes: 1 addition & 1 deletion views/jupyter/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<td class="col-md-3"><strong><?=$name?><strong></td>
<td class="col-md-1"><?=$resources['cpu']?></td>
<td class="col-md-1"><?=$resources['memory']?></td>
<td class="col-md-3"><?=isset($resources['server'])? $images[$resources['server']->image] : 'N/A'?></td>
<td class="col-md-3"><?=isset($resources['server'])? $images[$resources['server']->image_id] : 'N/A'?></td>
<td class="col-md-2"><?=$date?></td>
<td class="col-md-2">
<?php
Expand Down

0 comments on commit 1df10e4

Please sign in to comment.