Skip to content

Commit

Permalink
tableForm: fix old generateCSV path not working
Browse files Browse the repository at this point in the history
  • Loading branch information
dezhidki committed Feb 19, 2025
1 parent fee5c18 commit f199576
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion timApp/plugin/tableform/tableForm.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def check_field_filtering(
@use_args(GenerateSpreadSheetSchema())
def gen_csv_legacy(args: GenerateSpreadSheetModel) -> Response | str:
"""Legacy route for documents that have direct links to the route."""
return gen_spreadsheet(args)
return gen_spreadsheet_impl(args)


@tableForm_plugin.get("/generateReport")
Expand All @@ -463,6 +463,10 @@ def gen_spreadsheet(args: GenerateSpreadSheetModel) -> Response | str:
# TODO: generic, move
:return: SpreadSheet in CSV or .xlsx format containing header row and rows for users and values
"""
return gen_spreadsheet_impl(args)


def gen_spreadsheet_impl(args: GenerateSpreadSheetModel) -> Response | str:
curr_user = get_current_user_object()
(
docid,
Expand Down

0 comments on commit f199576

Please sign in to comment.