[bug] Fix bug in agent session templates
This commit is contained in:
@ -18,7 +18,7 @@ tasks, Todoist tasks, web pages I've read and trails I've hiked has turned out
|
|||||||
to be sometimes cathartic and sometimes functional as I try to remember when I
|
to be sometimes cathartic and sometimes functional as I try to remember when I
|
||||||
did a thing.
|
did a thing.
|
||||||
|
|
||||||
* Backlog [0/30] :vrobbler:project:personal:
|
* Backlog [1/31] :vrobbler:project:personal:
|
||||||
** TODO [#C] Configure IMAP folder/start in user profile :imap:settings:
|
** TODO [#C] Configure IMAP folder/start in user profile :imap:settings:
|
||||||
*** Description
|
*** Description
|
||||||
|
|
||||||
@ -590,3 +590,7 @@ The Edit log form should have from top to bottom:
|
|||||||
- People (which should be similar to the Bird widget on BirdLocation and allow setting per user score, win true/false, rank, new true/false, seat_ordrer)
|
- People (which should be similar to the Bird widget on BirdLocation and allow setting per user score, win true/false, rank, new true/false, seat_ordrer)
|
||||||
- Expansion ids (which should a multi-select widget of expansions for this game)
|
- Expansion ids (which should a multi-select widget of expansions for this game)
|
||||||
- Location (which should be a drop down of BoardGameLocations for this user)
|
- Location (which should be a drop down of BoardGameLocations for this user)
|
||||||
|
** DONE [#A] Fix bug in agent session templates :templates:homepage:scrobbles:agents:
|
||||||
|
:PROPERTIES:
|
||||||
|
:ID: 187aae32-e98b-c74d-5a8b-3284108ff0eb
|
||||||
|
:END:
|
||||||
|
|||||||
@ -1089,7 +1089,7 @@ def test_homepage_shows_agent_sessions_with_first_prompt_title(
|
|||||||
response = client.get(reverse("vrobbler-home"))
|
response = client.get(reverse("vrobbler-home"))
|
||||||
|
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
assert b"Agent Sessions" in response.content
|
assert b"AgentSession" in response.content
|
||||||
assert first_prompt.encode() in response.content
|
assert first_prompt.encode() in response.content
|
||||||
assert settings.LLM_MODEL.encode() not in response.content
|
assert settings.LLM_MODEL.encode() not in response.content
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,11 @@
|
|||||||
<a href="{{ scrobble.get_absolute_url }}">{{ scrobble.media_obj.strings.verb }} now</a> |
|
<a href="{{ scrobble.get_absolute_url }}">{{ scrobble.media_obj.strings.verb }} now</a> |
|
||||||
<a href="{% url 'scrobbles:finish' scrobble.id %}">Finish</a> —
|
<a href="{% url 'scrobbles:finish' scrobble.id %}">Finish</a> —
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if scrobble.media_type == "AgentSession" and scrobble.logdata.title %}
|
||||||
|
<a href="{{ scrobble.media_obj.get_absolute_url }}">{{ scrobble.logdata.title|truncatechars_html:60 }}</a>
|
||||||
|
{% else %}
|
||||||
<a href="{{ scrobble.media_obj.get_absolute_url }}">{{ scrobble.media_obj|truncatechars_html:60 }}</a>
|
<a href="{{ scrobble.media_obj.get_absolute_url }}">{{ scrobble.media_obj|truncatechars_html:60 }}</a>
|
||||||
|
{% endif %}
|
||||||
<span class="timeline-meta text-muted">({{ scrobble.media_type|lower }}·{{ scrobble.elapsed_time|natural_duration }})</span>
|
<span class="timeline-meta text-muted">({{ scrobble.media_type|lower }}·{{ scrobble.elapsed_time|natural_duration }})</span>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user