Skip to content

Commit

Permalink
Fix where clause
Browse files Browse the repository at this point in the history
  • Loading branch information
captn3m0 committed May 10, 2024
1 parent b5948f3 commit f1ed902
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _includes/live-standings.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script>
// Only run this on current month
var colors = {{site.data.colors | jsonify}}
Papa.parse("{{page.sheetURL}}", {
Papa.parse("@KARTHIK; change this to a live sheet URL", {
download: true,
header: true,
complete: function (results, file) {
Expand Down
9 changes: 7 additions & 2 deletions _layouts/standings.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<img src="/images/favicon.png" class="avatar" alt="" />

<h2 role="heading">{{page.month | date:"%B %Y"}} Teams</h2>
<h4>{{page.theme}}</h4>
<h4>{{page.event.theme}}</h4>
<table>
<!-- <thead> -->
<tr>
Expand All @@ -25,7 +25,8 @@ <h4>{{page.theme}}</h4>
<!-- </thead> -->
<!-- <tbody> -->
{% assign idx=1 %}
{% assign rows = site.data.results | where: "Date", "2024-03-12" %}
{% assign rows = site.data.results | where: "Date", page.event.date %}
{% if rows.size > 0 %}
{% for row in rows %}
<tr>
<td>{{idx}}</td>
Expand All @@ -45,6 +46,10 @@ <h4>{{page.theme}}</h4>
</tr>
{% assign idx=idx|plus:1 %}
{% endfor %}
{% else %}
{% include live-standings.html %}
{% endif %}

<!-- </tbody> -->
</table>
</div>
Expand Down

0 comments on commit f1ed902

Please sign in to comment.