Browse Source

Minor fix

pull/307/head
Florian Mounier 9 years ago
parent
commit
326435da3f
  1. 13
      demo/moulinrouge.py
  2. 3
      pygal/graph/public.py

13
demo/moulinrouge.py

@ -37,19 +37,6 @@ try:
except:
pass
try:
import wsreload
except ImportError:
app.logger.debug('wsreload not found')
else:
url = "http://moulinrouge.l:21112/*"
def log(httpserver):
app.logger.debug('WSReloaded after server restart')
wsreload.monkey_patch_http_server({'url': url}, callback=log)
app.logger.debug('HTTPServer monkey patched for url %s' % url)
try:
from wdb.ext import WdbMiddleware, add_w_builtin
except ImportError:

3
pygal/graph/public.py

@ -155,7 +155,8 @@ class PublicApi(BaseGraph):
margin=5,
min_scale=1,
max_scale=2,
explicit_size=True
explicit_size=True,
no_data_text=''
)
spark_options.update(kwargs)
return self.render(**spark_options)

Loading…
Cancel
Save