Merge pull request #24 from kangaroo/dev

Minor fixes and cleanup
pull/11/head
Paulus Schoutsen 2015-01-21 23:00:59 -08:00
commit 4d0bd03569
4 changed files with 33 additions and 36 deletions

View File

@ -1,2 +1,2 @@
""" DO NOT MODIFY. Auto-generated by build_frontend script """
VERSION = "d44fb74a23d83756ed92d5d55f4d81ea"
VERSION = "43699d5ec727d3444985a1028d21e0d9"

File diff suppressed because one or more lines are too long

View File

@ -375,7 +375,7 @@ def get_devices(filter, constructor):
devices = []
for item in items:
id = item.get(filter)
if id is not None:
if (id is not None and item.get("hidden_at") is None):
devices.append(constructor(item))
return devices

View File

@ -24,4 +24,10 @@ mv polymer/bower_components/polymer/polymer.html.bak polymer/bower_components/po
# Generate the MD5 hash of the new frontend
cd ..
echo '""" DO NOT MODIFY. Auto-generated by build_frontend script """' > frontend.py
if [ $(command -v md5) ]; then
echo 'VERSION = "'`md5 -q www_static/frontend.html`'"' >> frontend.py
elif [ $(command -v md5sum) ]; then
echo 'VERSION = "'`md5sum www_static/frontend.html | cut -c-32`'"' >> frontend.py
else
echo 'Could not find a MD5 utility'
fi