changeset 1887:708cdf7c4dad

types and import fixes. jquery dep for reconnecting websocket display Ignore-this: f74f3abcc899abfe0da9c0e1497fd73e
author Drew Perttula <drewp@bigasterisk.com>
date Tue, 28 May 2019 06:56:07 +0000
parents ce6bd8ff49e2
children 9e6596b7f1a2
files light9/greplin_cyclone.py light9/web/live/elements.html
diffstat 2 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/light9/greplin_cyclone.py	Tue May 28 06:55:35 2019 +0000
+++ b/light9/greplin_cyclone.py	Tue May 28 06:56:07 2019 +0000
@@ -1,6 +1,8 @@
+from typing import List
+
 import cyclone.web
 
-import greplin.scales.twistedweb, greplin.scales.formats
+import greplin.scales.twistedweb, greplin.scales.formats, greplin.scales.util
 from greplin import scales
 
 
@@ -9,9 +11,8 @@
 class StatsForCyclone(cyclone.web.RequestHandler):
 
     def get(self):
-        parts = []
-        statDict = greplin.scales.twistedweb.util.lookup(
-            scales.getStats(), parts)
+        parts: List[str] = []
+        statDict = greplin.scales.util.lookup(scales.getStats(), parts)
 
         if statDict is None:
             self.set_status(404)
--- a/light9/web/live/elements.html	Tue May 28 06:55:35 2019 +0000
+++ b/light9/web/live/elements.html	Tue May 28 06:56:07 2019 +0000
@@ -9,7 +9,7 @@
 <link rel="import" href="../resource-display.html">
 <link rel="import" href="../light9-color-picker.html">
 <link rel="import" href="../edit-choice.html">
-
+<script src="web/lib/jquery/dist/jquery.slim.min.js"></script>
 <dom-module id="light9-listbox">
   <template>
     <style>