Mercurial > code > home > repos > light9
changeset 2182:5db8e7698d6a
reformat
author | drewp@bigasterisk.com |
---|---|
date | Fri, 19 May 2023 17:00:06 -0700 |
parents | 8cab6a80215a |
children | 081f36506ad3 |
files | light9/ascoltami/musictime_client.py light9/ascoltami/webapp.py |
diffstat | 2 files changed, 11 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/ascoltami/musictime_client.py Fri May 19 16:59:45 2023 -0700 +++ b/light9/ascoltami/musictime_client.py Fri May 19 17:00:06 2023 -0700 @@ -17,10 +17,7 @@ upon request, adjusted to be more precise with the system clock """ - def __init__(self, - period=.2, - onChange=lambda position: None, - pollCurvecalc='ignored'): + def __init__(self, period=.2, onChange=lambda position: None, pollCurvecalc='ignored'): """period is the seconds between http time requests. @@ -67,8 +64,7 @@ def cb(response): if response.code != 200: - raise ValueError("%s %s", response.code, - (yield response.content())) + raise ValueError("%s %s", response.code, (yield response.content())) position = yield response.json()
--- a/light9/ascoltami/webapp.py Fri May 19 16:59:45 2023 -0700 +++ b/light9/ascoltami/webapp.py Fri May 19 17:00:06 2023 -0700 @@ -34,14 +34,15 @@ def get(self): self.set_header("Content-Type", "application/json") self.write( - json.dumps(dict( - host=socket.gethostname(), - show=str(showUri()), - times={ - # these are just for the web display. True values are on Player.__init__ - 'intro': 4, - 'post': 0 - }))) + json.dumps( + dict( + host=socket.gethostname(), + show=str(showUri()), + times={ + # these are just for the web display. True values are on Player.__init__ + 'intro': 4, + 'post': 0 + }))) def playerSongUri(graph, player):