Skip to content

Commit

Permalink
correct table names in exports (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
kavorite authored Jun 24, 2024
1 parent 227cf10 commit d4cd5d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion masterbase/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ async def demodata(request: Request, api_key: str, session_id: str) -> Stream:
def db_export(request: Request, api_key: str, table: ExportTable) -> Stream:
"""Return a database export of the requested `table`."""
engine = request.app.state.engine
filename = f"demo_sessions-{datetime.now()}.csv"
filename = f"{table.value}-{datetime.now()}.csv"
return Stream(
lambda: db_export_chunks(engine, table.value),
headers={
Expand Down

0 comments on commit d4cd5d3

Please sign in to comment.