prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Have next 7 days in hours sidebar
  This means all our normal hours are visible on a normal week.
  
  
  </issue>
  <code>
  [start of ocfweb/main/home.py]
  1 from datetime import date
  2 from datetime import timedelta
  3 
  4 from django.shortcuts import render_to_response
  5 from django.template import RequestContext
  6 from django.utils import timezone
  7 from ocflib.lab.hours import get_hours
  8 from ocflib.lab.staff_hours import get_staff_hours_soonest_first
  9 
  10 from ocfweb.component.blog import get_blog_posts
  11 from ocfweb.component.lab_status import get_lab_status
  12 
  13 
  14 def home(request):
  15     hours = [
  16         get_hours(date.today() + timedelta(days=i)) for i in range(7)
  17     ]
  18 
  19     blog_posts = [
  20         post for post
  21         in get_blog_posts()
  22         if timezone.now() - post.published < timedelta(days=365)
  23     ][:2]
  24 
  25     return render_to_response(
  26         'home.html',
  27         {
  28             'fulltitle': 'Open Computing Facility at UC Berkeley',
  29             'description': (
  30                 'The Open Computing Facility is an all-volunteer student '
  31                 'organization dedicated to free and open-source computing for all UC '
  32                 'Berkeley students.'''
  33             ),
  34             'staff_hours': get_staff_hours_soonest_first()[:2],
  35             'hours': hours,
  36             'today': hours[0],
  37             'blog_posts': blog_posts,
  38             'lab_status': get_lab_status(),
  39         },
  40         context_instance=RequestContext(request),
  41     )
  42
  [end of ocfweb/main/home.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/ocfweb/main/home.py b/ocfweb/main/home.py
  --- a/ocfweb/main/home.py
  +++ b/ocfweb/main/home.py
  @@ -13,7 +13,7 @@
   
   def home(request):
       hours = [
  -        get_hours(date.today() + timedelta(days=i)) for i in range(7)
  +        get_hours(date.today() + timedelta(days=i)) for i in range(5)
       ]
   
       blog_posts = [
  
verification_info: {"golden_diff": "diff --git a/ocfweb/main/home.py b/ocfweb/main/home.py\n--- a/ocfweb/main/home.py\n+++ b/ocfweb/main/home.py\n@@ -13,7 +13,7 @@\n \n def home(request):\n     hours = [\n-        get_hours(date.today() + timedelta(days=i)) for i in range(7)\n+        get_hours(date.today() + timedelta(days=i)) for i in range(5)\n     ]\n \n     blog_posts = [\n", "issue": "Have next 7 days in hours sidebar\nThis means all our normal hours are visible on a normal week.\n\n", "before_files": [{"content": "from datetime import date\nfrom datetime import timedelta\n\nfrom django.shortcuts import render_to_response\nfrom django.template import RequestContext\nfrom django.utils import timezone\nfrom ocflib.lab.hours import get_hours\nfrom ocflib.lab.staff_hours import get_staff_hours_soonest_first\n\nfrom ocfweb.component.blog import get_blog_posts\nfrom ocfweb.component.lab_status import get_lab_status\n\n\ndef home(request):\n    hours = [\n        get_hours(date.today() + timedelta(days=i)) for i in range(7)\n    ]\n\n    blog_posts = [\n        post for post\n        in get_blog_posts()\n        if timezone.now() - post.published < timedelta(days=365)\n    ][:2]\n\n    return render_to_response(\n        'home.html',\n        {\n            'fulltitle': 'Open Computing Facility at UC Berkeley',\n            'description': (\n                'The Open Computing Facility is an all-volunteer student '\n                'organization dedicated to free and open-source computing for all UC '\n                'Berkeley students.'''\n            ),\n            'staff_hours': get_staff_hours_soonest_first()[:2],\n            'hours': hours,\n            'today': hours[0],\n            'blog_posts': blog_posts,\n            'lab_status': get_lab_status(),\n        },\n        context_instance=RequestContext(request),\n    )\n", "path": "ocfweb/main/home.py"}]}