Skip to content

Commit

Permalink
Final fixes for SmartMesk SDK 1.1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
twatteyneadi committed Apr 2, 2017
1 parent ea67300 commit 09119db
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
11 changes: 8 additions & 3 deletions app/JsonServer/JsonServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,10 @@ def _managers_PUT(self,newmanagers):
def _managers_DELETE(self,oldmanagers):
with self.dataLock:
for m in oldmanagers:
self.config['managers'].remove(m)
try:
self.config['managers'].remove(m)
except ValueError:
pass # happens when manager doesn't exist
self._saveConfig()
self._syncManagers()

Expand Down Expand Up @@ -970,7 +973,7 @@ def _send_notif(self,notifname,jsonToSend):
# send notifications
if urls:
for url in urls:
threading.Thread(
notifthread = threading.Thread(
target = self._send_notif_thread,
args = (
url,
Expand All @@ -981,7 +984,9 @@ def _send_notif(self,notifname,jsonToSend):
'Content-type': 'application/json',
},
}
).start()
)
notifthread.name = '{0}->{1}'.format(notifname,url)
notifthread.start()

def _send_notif_thread(self,*args,**kwargs):
try:
Expand Down
2 changes: 1 addition & 1 deletion app/SeeTheMesh/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ body {
margin: 0 auto;
color: #333;
font-weight: 300;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serf;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
background-image: url(/static/background.jpg);
background-repeat: repeat;
}
Expand Down
8 changes: 4 additions & 4 deletions app/SeeTheMesh/views/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@
// pagetitle
$('#pagetitle').offset(
{
top: 50,
left: 70
top: 20,
left: 20
}
);
// version
$('#version').offset(
{
top: $(window).height()-80-20,
left: 70
top: $(window).height()-60,
left: 20
}
);
// logo
Expand Down

0 comments on commit 09119db

Please sign in to comment.