Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Commit 8a6a9be

Browse files
authored
Move dashboard code to a directory (#75)
1 parent aa9762f commit 8a6a9be

5 files changed

Lines changed: 4 additions & 3 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def build_grid(self, packages: Iterable[package.Package]) -> str:
147147
results = _ResultHolder(package_to_results, pairwise_to_results)
148148
current_timestamp = datetime.datetime.now().strftime(
149149
'%Y-%m-%d %H:%M:%S')
150-
template = _JINJA2_ENVIRONMENT.get_template('grid-template.html')
150+
template = _JINJA2_ENVIRONMENT.get_template('dashboard/grid-template.html')
151151
return template.render(
152152
packages=packages,
153153
results=results,

nox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import nox
2222

23-
LINT_UNIT_DIR = ['compatibility_server', '.']
23+
LINT_UNIT_DIR = ['compatibility_server', 'dashboard', '.']
2424

2525
LOCAL_DEPS = ['compatibility_lib']
2626

scripts/update_dashboard.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env bash
12
# Copyright 2018, Google LLC
23
#
34
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,7 +18,7 @@ set -ev
1718
# Build dashboard
1819
function build_dashboard {
1920
if [ -n "$GOOGLE_APPLICATION_CREDENTIALS" ]; then
20-
python grid_builder.py > dashboard/index.html
21+
python dashboard/grid_builder.py > dashboard/index.html
2122
else
2223
echo "No credentials. Dashboard will not build."
2324
fi

0 commit comments

Comments
 (0)