Skip to content

Commit

Permalink
Merge 0e1e706 into d909129
Browse files Browse the repository at this point in the history
  • Loading branch information
marctheshark3 authored Apr 17, 2024
2 parents d909129 + 0e1e706 commit 2b94d9e
Show file tree
Hide file tree
Showing 40 changed files with 207 additions and 61,422 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
*flask_session
*_files/
*venv
**__pycache__/
Binary file removed __pycache__/locustfile.cpython-312.pyc
Binary file not shown.
11 changes: 5 additions & 6 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# app.py
from dash import Dash, html, dcc, Input, Output, State

from layouts import front_page_1, mining_page_1
from layouts import front_page, mining_page
from urllib.parse import quote, unquote
import dash_bootstrap_components as dbc
from utils.api_reader import SigmaWalletReader, PriceReader
from layouts.front_page_1 import setup_front_page_callbacks
# from layouts.main_page import setup_main_page_callbacks
from layouts.mining_page_1 import setup_mining_page_callbacks
from layouts.front_page import setup_front_page_callbacks
from layouts.mining_page import setup_mining_page_callbacks
from flask_login import LoginManager, UserMixin, login_user
from flask import Flask, request, session, redirect, url_for
from flask_session import Session
Expand Down Expand Up @@ -49,9 +48,9 @@ def display_page(pathname):
mining_address = unquote(pathname.lstrip('/'))
# Use the mining address to generate the page content
# This is where you might call a function to get the layout based on the mining address
return mining_page_1.get_layout(reader)
return mining_page.get_layout(reader)
else:
return front_page_1.get_layout(reader)
return front_page.get_layout(reader)

# Define callback to update page content or handle business logic
@app.callback(
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions export

This file was deleted.

186 changes: 0 additions & 186 deletions front_appy.py

This file was deleted.

Loading

0 comments on commit 2b94d9e

Please sign in to comment.