Skip to content
Snippets Groups Projects
Commit 3187d940 authored by Stefan Knauff's avatar Stefan Knauff
Browse files

make streaming optional.

parent 16a313fa
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
...@@ -5,8 +5,10 @@ from plotly.subplots import make_subplots ...@@ -5,8 +5,10 @@ from plotly.subplots import make_subplots
import os import os
class Xgta: class Xgta:
def __init__(self, creds=False, build_cache = False) -> None: def __init__(self, creds=False, build_cache = False, streaming = True) -> None:
print("Begin Initialization") print("Begin Initialization")
self.streaming = streaming
if creds != False : if creds != False :
self.conn = f"postgresql://{creds.PGUSER}:{creds.PGPASSWORD}@{creds.PGHOST}:{creds.PGPORT}/{creds.PGDATABASE}" self.conn = f"postgresql://{creds.PGUSER}:{creds.PGPASSWORD}@{creds.PGHOST}:{creds.PGPORT}/{creds.PGDATABASE}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment