Ver Fonte

set the theme to make plots look nicer

Daniel Sheffield há 1 ano atrás
pai
commit
aad23aac05
1 ficheiros alterados com 2 adições e 0 exclusões
  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():