home · contact · privacy
In GET/POST /todo, remove unnecessary node ID differentiation in previous "fill_for_...
authorChristian Heller <c.heller@plomlompom.de>
Thu, 18 Jul 2024 02:56:30 +0000 (04:56 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 18 Jul 2024 02:56:30 +0000 (04:56 +0200)
plomtask/http.py
templates/todo.html

index 3d8508cdb67655e0be86f709fd090ad21861021e..f61a9f18b9498cc6ea96c73dc6e79e6e5274f001 100644 (file)
@@ -631,7 +631,7 @@ class TaskHandler(BaseHTTPRequestHandler):
         adopted_child_ids = self._form_data.get_all_int('adopt')
         processes_to_make_full = self._form_data.get_all_int('make_full')
         processes_to_make_empty = self._form_data.get_all_int('make_empty')
-        fill_fors = self._form_data.get_first_strings_starting('fill_for_')
+        step_fillers = self._form_data.get_all_str('step_filler')
         with_effort_post = True
         try:
             effort = self._form_data.get_float_or_none('effort')
@@ -644,7 +644,7 @@ class TaskHandler(BaseHTTPRequestHandler):
         is_done = len(self._form_data.get_all_str('done')) > 0
         calendarize = len(self._form_data.get_all_str('calendarize')) > 0
         comment = self._form_data.get_str('comment', ignore_strict=True)
-        for v in fill_fors.values():
+        for v in step_fillers:
             target_id: int
             to_int = v
             for prefix in [p for p in ['make_empty_', 'make_full_']
index 45e247f304e20fc3656dd0fb5a63feb4c4a7c027..732f7885d118a3d0aee383f41d329ef278d06d3e 100644 (file)
@@ -23,7 +23,7 @@ select{ font-size: 0.5em; margin: 0; padding: 0; }
 {% else %}
 {{item.process.title.newest|e}}
 {% if indent == 0 %}
-· fill: <select name="fill_for_{{item.node_id}}">
+· fill: <select name="step_filler">
 <option value="ignore">--</option>
 <option value="make_empty_{{item.process.id_}}">make empty</option>
 <option value="make_full_{{item.process.id_}}">make full</option>