Skip to content

Commit

Permalink
feat: added cloud to gui-available
Browse files Browse the repository at this point in the history
Closes: #408
Change-Id: I53fed79ef97cbd5d654d69d2a862f03a0e24f945
  • Loading branch information
grafuls committed May 13, 2022
1 parent 1ad073c commit 2dd7ab5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/main.py
Expand Up @@ -50,7 +50,7 @@ def available(search):
current = False
if Schedule.current_schedule(host=host):
current = True
host_dict = {"name": host.name, "model": host.model, "current": current}
host_dict = {"name": host.name, "cloud": host.cloud.name, "model": host.model, "current": current}
available_hosts.append(host_dict)

return jsonify(available_hosts)
Expand Down
2 changes: 2 additions & 0 deletions web/templates/index.html
Expand Up @@ -80,6 +80,7 @@ <h2>QUADS Available Hosts</h2>
<tr>
<th scope="col">#</th>
<th scope="col">Hostname</th>
<th scope="col">Cloud</th>
<th scope="col">Model</th>
</tr>
</thead>
Expand All @@ -92,6 +93,7 @@ <h2>QUADS Available Hosts</h2>
{% endif %}
<th scope="row">{{ loop.index }}</th>
<td>{{ host["name"] }}</td>
<td>{{ host["cloud"] }}</td>
<td>{{ host["model"] }}</td>
</tr>
{% endfor %}
Expand Down

0 comments on commit 2dd7ab5

Please sign in to comment.