aboutsummaryrefslogtreecommitdiff
path: root/uploader/platforms
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/platforms')
-rw-r--r--uploader/platforms/views.py15
1 files changed, 2 insertions, 13 deletions
diff --git a/uploader/platforms/views.py b/uploader/platforms/views.py
index 0a4eabb..2ff45b8 100644
--- a/uploader/platforms/views.py
+++ b/uploader/platforms/views.py
@@ -109,16 +109,5 @@ def create_platform(species_id: int):
species_id=species_id))
flash("Platform created successfully", "alert-success")
- return redirect(url_for("species.platforms.view_platform",
- species_id=species_id,
- platform_id=new_platform["Id"]))
-
-
-@platformsbp.route("<int:species_id>/platforms/<int:platform_id>/view",
- methods=["GET"])
-@require_login
-def view_platform(species_id: int, platform_id: int):
- """View details for a specific platform."""
- with database_connection(app.config["SQL_URI"]) as conn:
- return platform_by_species_and_id(
- conn, species_id, platform_id)
+ return redirect(url_for("species.platforms.list_platforms",
+ species_id=species_id))