I like commiting broken code

This commit is contained in:
famfo 2022-04-15 20:05:56 +02:00
parent e0a88d78fa
commit 368492e943
3 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ use serde::{Deserialize, Serialize};
#[derive(Deserialize)]
pub struct Request {
pub r#move: String,
pub move_task: String,
}
#[derive(Debug, Deserialize)]

View file

@ -185,7 +185,7 @@ impl App {
pub async fn handle_post(form: task::Request) -> impl warp::Reply {
// TODO: intelligent SQL code here (or maybe in another function idk, it's up to the reader to
// decide whats more intelligent)
tracing::debug!("Got POST on /api/task/move: {}", form.r#move);
tracing::debug!("Got POST on /api/task/move: {}", form.move_task);
warp::redirect(warp::http::Uri::from_static("/"))
}

View file

@ -13,7 +13,7 @@ navbar<br>
<a href="api/task/create">Create issue</a><br><br>
<label for="group">Task group</label>
<select name="group" id="group" style="width:auo">
<select name="group" id="group" style="width:auto">
<option value="ideas">ideas</option>
<option value="assigned">assigned</option>
<option value="in-progress">in progreess</option>