prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Scan Report Edit Table
  
  
  </issue>
  <code>
  [start of app/api/proxy/urls.py]
  1 from config import settings
  2 from django.urls import re_path
  3 from revproxy.views import ProxyView
  4 
  5 # A set of urls that will override any root paths requested, and proxy them to the Next.js app.
  6 urlpatterns = [
  7     # /scanreports/ and escape any further paths
  8     re_path(
  9         r"^scanreports/(?P<path>(?!create))$",
  10         ProxyView.as_view(upstream=f"{settings.NEXTJS_URL}/scanreports"),
  11         name="scan-report-list",
  12     ),
  13     re_path(
  14         r"^scanreports/(?P<path>\d+)/?$",
  15         ProxyView.as_view(upstream=f"{settings.NEXTJS_URL}/scanreports/"),
  16         name="scan-report-tables",
  17     ),
  18     re_path(
  19         r"^scanreports/(?P<path>\d+/tables/\d+)/$",
  20         ProxyView.as_view(upstream=f"{settings.NEXTJS_URL}/scanreports/"),
  21         name="scan-report-fields",
  22     ),
  23     re_path(
  24         r"^scanreports/(?P<path>\d+/tables/\d+/fields/\d+)/$",
  25         ProxyView.as_view(upstream=f"{settings.NEXTJS_URL}/scanreports/"),
  26         name="scan-report-values",
  27     ),
  28     re_path(
  29         r"^datasets/(?P<path>(?![\d/]).*)$",
  30         ProxyView.as_view(upstream=f"{settings.NEXTJS_URL}/datasets"),
  31         name="datasets-list",
  32     ),
  33     re_path(
  34         r"^datasets/(?P<path>\d+)/?$",
  35         ProxyView.as_view(upstream=f"{settings.NEXTJS_URL}/datasets"),
  36         name="datasets-scanreports-list",
  37     ),
  38     re_path(
  39         "_next/(?P<path>.*)$",
  40         ProxyView.as_view(upstream=f"{settings.NEXTJS_URL}/_next"),
  41     ),
  42 ]
  43
  [end of app/api/proxy/urls.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/app/api/proxy/urls.py b/app/api/proxy/urls.py
  --- a/app/api/proxy/urls.py
  +++ b/app/api/proxy/urls.py
  @@ -25,6 +25,11 @@
           ProxyView.as_view(upstream=f"{settings.NEXTJS_URL}/scanreports/"),
           name="scan-report-values",
       ),
  +    re_path(
  +        r"^scanreports/(?P<path>\d+/tables/\d+/update)/$",
  +        ProxyView.as_view(upstream=f"{settings.NEXTJS_URL}/scanreports/"),
  +        name="scan-report-edit-table",
  +    ),
       re_path(
           r"^datasets/(?P<path>(?![\d/]).*)$",
           ProxyView.as_view(upstream=f"{settings.NEXTJS_URL}/datasets"),
  
verification_info: {"golden_diff": "diff --git a/app/api/proxy/urls.py b/app/api/proxy/urls.py\n--- a/app/api/proxy/urls.py\n+++ b/app/api/proxy/urls.py\n@@ -25,6 +25,11 @@\n         ProxyView.as_view(upstream=f\"{settings.NEXTJS_URL}/scanreports/\"),\n         name=\"scan-report-values\",\n     ),\n+    re_path(\n+        r\"^scanreports/(?P<path>\\d+/tables/\\d+/update)/$\",\n+        ProxyView.as_view(upstream=f\"{settings.NEXTJS_URL}/scanreports/\"),\n+        name=\"scan-report-edit-table\",\n+    ),\n     re_path(\n         r\"^datasets/(?P<path>(?![\\d/]).*)$\",\n         ProxyView.as_view(upstream=f\"{settings.NEXTJS_URL}/datasets\"),\n", "issue": "Scan Report Edit Table\n\n", "before_files": [{"content": "from config import settings\nfrom django.urls import re_path\nfrom revproxy.views import ProxyView\n\n# A set of urls that will override any root paths requested, and proxy them to the Next.js app.\nurlpatterns = [\n    # /scanreports/ and escape any further paths\n    re_path(\n        r\"^scanreports/(?P<path>(?!create))$\",\n        ProxyView.as_view(upstream=f\"{settings.NEXTJS_URL}/scanreports\"),\n        name=\"scan-report-list\",\n    ),\n    re_path(\n        r\"^scanreports/(?P<path>\\d+)/?$\",\n        ProxyView.as_view(upstream=f\"{settings.NEXTJS_URL}/scanreports/\"),\n        name=\"scan-report-tables\",\n    ),\n    re_path(\n        r\"^scanreports/(?P<path>\\d+/tables/\\d+)/$\",\n        ProxyView.as_view(upstream=f\"{settings.NEXTJS_URL}/scanreports/\"),\n        name=\"scan-report-fields\",\n    ),\n    re_path(\n        r\"^scanreports/(?P<path>\\d+/tables/\\d+/fields/\\d+)/$\",\n        ProxyView.as_view(upstream=f\"{settings.NEXTJS_URL}/scanreports/\"),\n        name=\"scan-report-values\",\n    ),\n    re_path(\n        r\"^datasets/(?P<path>(?![\\d/]).*)$\",\n        ProxyView.as_view(upstream=f\"{settings.NEXTJS_URL}/datasets\"),\n        name=\"datasets-list\",\n    ),\n    re_path(\n        r\"^datasets/(?P<path>\\d+)/?$\",\n        ProxyView.as_view(upstream=f\"{settings.NEXTJS_URL}/datasets\"),\n        name=\"datasets-scanreports-list\",\n    ),\n    re_path(\n        \"_next/(?P<path>.*)$\",\n        ProxyView.as_view(upstream=f\"{settings.NEXTJS_URL}/_next\"),\n    ),\n]\n", "path": "app/api/proxy/urls.py"}]}