Skip to content

Commit 823a529

Browse files
owockiKevin Owockinutrina
authored
addresses #10762 (#10763)
* fixes #10762 * Update app/perftools/management/commands/create_page_cache.py Co-authored-by: nutrina <nutrina9@gmail.com> Co-authored-by: Kevin Owocki <owocki@Kevins-MacBook-Pro-2.local> Co-authored-by: nutrina <nutrina9@gmail.com>
1 parent 2388f83 commit 823a529

File tree

2 files changed

+2
-27
lines changed

2 files changed

+2
-27
lines changed

app/perftools/management/commands/create_page_cache.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ def create_results_cache():
329329
print(f"- executing {keyword}")
330330
data = build_stat_results(keyword)
331331
print("- creating")
332+
if 'hackathons' in data:
333+
del data['hackathons']
332334
items.append(JSONStore(
333335
view=view,
334336
key=keyword,

app/retail/templates/results.html

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -286,33 +286,6 @@ <h4 class="m-1 p-1">{{kudos_leaderboard.0}}</h4>
286286
</div>
287287

288288

289-
<div class="content-block content-block--grey">
290-
<div class="container" >
291-
<h2 class="content-block__title">{{hackathons | length }} {% trans "Virtual Hackathons" %} worth ${{hackathon_total|floatformat:0|intcomma}}.</h2>
292-
293-
<div class="hackathon-breakdown">
294-
{% for hackathon in hackathons %}
295-
<div class="{% if forloop.counter > 7 %}hidden{%endif%}" >
296-
{% if hackathon.1.logo %}
297-
<img data-src="{{hackathon.1.logo}}"/>
298-
{%else %}
299-
<img data-src="/dynamic/avatar/gitcoinbot"/>
300-
{%endif %}
301-
<h4>{{hackathon.0.name}}</h4>
302-
{% if hackathon.1.num_bounties and hackathon.1.total_volume > 1 %}
303-
<p>{{hackathon.1.num_bounties}} Bounties</p>
304-
<p>${{hackathon.1.total_volume|floatformat:0|intcomma}} In Prizes</p>
305-
{% endif %}
306-
<p>{{hackathon.1.range}}</p>
307-
<a href="{% url 'hackathon' hackathon.0.slug %}">View Prize Explorer</a>
308-
</div>
309-
{% endfor %}
310-
<h4>
311-
<a class="btn btn-primary view_more" role="button" href="#">{% trans "See more" %}</a>
312-
</div>
313-
</div>
314-
</div>
315-
316289

317290
<div class="row mt-5 pb-5 text-center">
318291
<div class="col">

0 commit comments

Comments
 (0)