prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Have next 7 days in hours sidebar
  This means all our normal hours are visible on a normal week.
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `ocfweb/main/home.py`
  Content:
  ```
  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 FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
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"}], "after_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(5)\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"}]}