瀏覽代碼

set the theme to make plots look nicer

Daniel Sheffield 1 年之前
父節點
當前提交
aad23aac05
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/rest/pyapi.py

+ 2 - 0
app/rest/pyapi.py

@@ -27,6 +27,8 @@ password = f"password={os.getenv('PASSWORD','')}"
 if not password.split('=',1)[1]:
     password = ''
 conn = connect(f"{host} {db} {user} {password}")
+sns.set_theme()
+
 from io import StringIO
 @route('/grocery/trend')
 def trend():