This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import subprocess | |
from datetime import datetime | |
from dateutil import parser | |
import os.path as op | |
import pytz | |
FORMATTER_ADOPTION_DATE = pytz.UTC.localize(datetime(2018, 7, 1)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% macro render_pagination(pagination, endpoint) %} | |
<ul class="pagination"> | |
{% if pagination.has_prev %} | |
<li> | |
<a href="{{ url_for(endpoint, page=pagination.prev_num) }}" aria-label="Previous"> | |
<span aria-hidden="true">«</span> | |
</a> | |
</li> |