Skip to content

Add new POST /admin/download/{id}/prepare endpoint #74#77

Merged
patrick-austin merged 2 commits intomasterfrom
74_prepare_data_endpoint
Apr 2, 2025
Merged

Add new POST /admin/download/{id}/prepare endpoint #74#77
patrick-austin merged 2 commits intomasterfrom
74_prepare_data_endpoint

Conversation

@patrick-austin
Copy link

Closes #74

print("UPDATE DOWNLOAD set PREPARED_ID = '" + prepared_id + "', STATUS = 'RESTORING' WHERE ID = " + download_id)


download_ids = input("Enter download id(s): ")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should also indicate what the separator should be eg: "Enter download id(s) - space separated if multiple:"

print(" * 1: Show download.")
print(" * 2: Get a list of all the file locations for a download.")
print(" * 3: Create preparedId for a download and generate update SQL.")
print(" * 3: Prepare download.")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be "Prepare download(s)" now

@patrick-austin patrick-austin merged commit a71e439 into master Apr 2, 2025
1 check passed
@patrick-austin patrick-austin deleted the 74_prepare_data_endpoint branch April 2, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor admin script option 3

2 participants