We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Update colors of progress states
The current color scheme for our progress states makes it hard to know when something needs further attention and when it does not. Previously we had three colors: Red-Failed, Yellow-Not evaluated yet and Green-Passed. 

The new 'Asked to Repeat' progress state option  is also yellow and so it conflicts with the 'Not Evaluated Yet' option.

**Please update the color for 'Asked to Repeat' to blue.. Any shade will do.**

Progress state colors can be viewed on the [More>Trainees page ](https://amy.carpentries.org/trainings/trainees/)

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `amy/workshops/templatetags/training_progress.py`
Content:
```
1 from django import template
2 from django.template.defaultfilters import escape
3 from django.utils.safestring import mark_safe
4 
5 from workshops.models import TrainingProgress
6 
7 register = template.Library()
8 
9 
10 @register.simple_tag
11 def progress_label(progress):
12     assert isinstance(progress, TrainingProgress)
13 
14     if progress.discarded:
15         additional_label = "dark"
16 
17     else:
18         switch = {
19             "n": "warning",
20             "f": "danger",
21             "a": "warning",
22             "p": "success",
23         }
24         additional_label = switch[progress.state]
25 
26     fmt = "badge badge-{}".format(additional_label)
27     return mark_safe(fmt)
28 
29 
30 @register.simple_tag
31 def progress_description(progress):
32     assert isinstance(progress, TrainingProgress)
33 
34     text = "{discarded}{state} {type}<br />{evaluated_by}<br />on {day}.{notes}".format(
35         discarded="discarded " if progress.discarded else "",
36         state=progress.get_state_display(),
37         type=progress.requirement,
38         evaluated_by=(
39             "evaluated by {}".format(progress.evaluated_by.full_name)
40             if progress.evaluated_by is not None
41             else "submitted"
42         ),
43         day=progress.created_at.strftime("%A %d %B %Y at %H:%M"),
44         notes="<br />Notes: {}".format(escape(progress.notes))
45         if progress.notes
46         else "",
47     )
48     text = text[0].upper() + text[1:]
49     return mark_safe(text)
50
```
--- 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()

```

diff --git a/amy/workshops/templatetags/training_progress.py b/amy/workshops/templatetags/training_progress.py
--- a/amy/workshops/templatetags/training_progress.py
+++ b/amy/workshops/templatetags/training_progress.py
@@ -18,7 +18,7 @@
         switch = {
             "n": "warning",
             "f": "danger",
-            "a": "warning",
+            "a": "info",
             "p": "success",
         }
         additional_label = switch[progress.state]

{"golden_diff": "diff --git a/amy/workshops/templatetags/training_progress.py b/amy/workshops/templatetags/training_progress.py\n--- a/amy/workshops/templatetags/training_progress.py\n+++ b/amy/workshops/templatetags/training_progress.py\n@@ -18,7 +18,7 @@\n         switch = {\n             \"n\": \"warning\",\n             \"f\": \"danger\",\n-            \"a\": \"warning\",\n+            \"a\": \"info\",\n             \"p\": \"success\",\n         }\n         additional_label = switch[progress.state]\n", "issue": "Update colors of progress states\nThe current color scheme for our progress states makes it hard to know when something needs further attention and when it does not. Previously we had three colors: Red-Failed, Yellow-Not evaluated yet and Green-Passed. \r\n\r\nThe new 'Asked to Repeat' progress state option  is also yellow and so it conflicts with the 'Not Evaluated Yet' option.\r\n\r\n**Please update the color for 'Asked to Repeat' to blue.. Any shade will do.**\r\n\r\nProgress state colors can be viewed on the [More>Trainees page ](https://amy.carpentries.org/trainings/trainees/)\n", "before_files": [{"content": "from django import template\nfrom django.template.defaultfilters import escape\nfrom django.utils.safestring import mark_safe\n\nfrom workshops.models import TrainingProgress\n\nregister = template.Library()\n\n\n@register.simple_tag\ndef progress_label(progress):\n    assert isinstance(progress, TrainingProgress)\n\n    if progress.discarded:\n        additional_label = \"dark\"\n\n    else:\n        switch = {\n            \"n\": \"warning\",\n            \"f\": \"danger\",\n            \"a\": \"warning\",\n            \"p\": \"success\",\n        }\n        additional_label = switch[progress.state]\n\n    fmt = \"badge badge-{}\".format(additional_label)\n    return mark_safe(fmt)\n\n\n@register.simple_tag\ndef progress_description(progress):\n    assert isinstance(progress, TrainingProgress)\n\n    text = \"{discarded}{state} {type}<br />{evaluated_by}<br />on {day}.{notes}\".format(\n        discarded=\"discarded \" if progress.discarded else \"\",\n        state=progress.get_state_display(),\n        type=progress.requirement,\n        evaluated_by=(\n            \"evaluated by {}\".format(progress.evaluated_by.full_name)\n            if progress.evaluated_by is not None\n            else \"submitted\"\n        ),\n        day=progress.created_at.strftime(\"%A %d %B %Y at %H:%M\"),\n        notes=\"<br />Notes: {}\".format(escape(progress.notes))\n        if progress.notes\n        else \"\",\n    )\n    text = text[0].upper() + text[1:]\n    return mark_safe(text)\n", "path": "amy/workshops/templatetags/training_progress.py"}], "after_files": [{"content": "from django import template\nfrom django.template.defaultfilters import escape\nfrom django.utils.safestring import mark_safe\n\nfrom workshops.models import TrainingProgress\n\nregister = template.Library()\n\n\n@register.simple_tag\ndef progress_label(progress):\n    assert isinstance(progress, TrainingProgress)\n\n    if progress.discarded:\n        additional_label = \"dark\"\n\n    else:\n        switch = {\n            \"n\": \"warning\",\n            \"f\": \"danger\",\n            \"a\": \"info\",\n            \"p\": \"success\",\n        }\n        additional_label = switch[progress.state]\n\n    fmt = \"badge badge-{}\".format(additional_label)\n    return mark_safe(fmt)\n\n\n@register.simple_tag\ndef progress_description(progress):\n    assert isinstance(progress, TrainingProgress)\n\n    text = \"{discarded}{state} {type}<br />{evaluated_by}<br />on {day}.{notes}\".format(\n        discarded=\"discarded \" if progress.discarded else \"\",\n        state=progress.get_state_display(),\n        type=progress.requirement,\n        evaluated_by=(\n            \"evaluated by {}\".format(progress.evaluated_by.full_name)\n            if progress.evaluated_by is not None\n            else \"submitted\"\n        ),\n        day=progress.created_at.strftime(\"%A %d %B %Y at %H:%M\"),\n        notes=\"<br />Notes: {}\".format(escape(progress.notes))\n        if progress.notes\n        else \"\",\n    )\n    text = text[0].upper() + text[1:]\n    return mark_safe(text)\n", "path": "amy/workshops/templatetags/training_progress.py"}]}