Skip to content

Commit

Permalink
Use config.py to set live reload
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyeager committed Oct 11, 2024
1 parent f9b96c3 commit af7224c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.sample.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LIVE_RELOAD = True
8 changes: 7 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

from lightdark import LightDarkScript, LightLink, DarkLink
from receipts import ReceiptHandler
try:
from config import LIVE_RELOAD
except:
LIVE_RELOAD = True



RECEIPTS_URL = "https://alpha.minting.tfchain.grid.tf/api/v1/"
CSV_DIR = "csvs"
Expand All @@ -25,7 +31,7 @@
# We can run into some trouble with multiple threads trying to use gql at the
# same time. Bit primitive, but we just lock it for now
gql_lock = threading.Lock()
app, rt = fast_app(live=True)
app, rt = fast_app(live=LIVE_RELOAD)

receipt_handler = ReceiptHandler()

Expand Down

0 comments on commit af7224c

Please sign in to comment.