Skip to content

Commit d4cd5d3

Browse files
authored
correct table names in exports (#82)
1 parent 227cf10 commit d4cd5d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

masterbase/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ async def demodata(request: Request, api_key: str, session_id: str) -> Stream:
175175
def db_export(request: Request, api_key: str, table: ExportTable) -> Stream:
176176
"""Return a database export of the requested `table`."""
177177
engine = request.app.state.engine
178-
filename = f"demo_sessions-{datetime.now()}.csv"
178+
filename = f"{table.value}-{datetime.now()}.csv"
179179
return Stream(
180180
lambda: db_export_chunks(engine, table.value),
181181
headers={

0 commit comments

Comments
 (0)