Skip to content

Commit

Permalink
Adding Dijkstra download
Browse files Browse the repository at this point in the history
  • Loading branch information
thdfw committed Dec 20, 2024
1 parent f827c6e commit 74b9977
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ def download_excel(house_alias, start_ms):
Session = sessionmaker(bind=engine)
session = Session()

house_alias = 'beech'
start_ms = int(pendulum.datetime(2024, 12, 19, 0, 0, tz="America/New_York").timestamp() * 1000)
end_ms = int(pendulum.datetime(2024, 12, 21, 0, 0, tz="America/New_York").timestamp() * 1000)

flo_params_msg = session.query(MessageSql).filter(
MessageSql.message_type_name == "flo.params.house0",
MessageSql.from_alias.like(f'%{house_alias}%'),
Expand Down
Binary file modified result.xlsx
Binary file not shown.
2 changes: 1 addition & 1 deletion visualizer_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ async def get_csv(request: CsvRequest, apirequest: Request):
# ------------------------------

@app.post('/download_excel')
async def download_excel(request: DijkstraRequest):
async def get_excel(request: DijkstraRequest):

print("made it here")

Expand Down

0 comments on commit 74b9977

Please sign in to comment.