Compare commits

..

No commits in common. "7dd9881943d5edfe58d3f0c078d2bd3f14ed5e0f" and "4bae8bc64a365a7cb95a8b3ab4d0a064e4a2721e" have entirely different histories.

2 changed files with 4 additions and 17 deletions

View file

@ -7,8 +7,10 @@ import json
import os import os
import sys import sys
import typing import typing
from datetime import datetime, timezone from collections import Counter
from datetime import date, datetime, timedelta
import pytz
import requests import requests
config = configparser.ConfigParser() config = configparser.ConfigParser()
@ -68,7 +70,7 @@ def parse_date(date_str: str | None) -> datetime | None:
return None return None
fmt = "%Y-%m-%dT%H:%M:%SZ" if date_str.endswith("Z") else "%Y-%m-%dT%H:%M:%S%z" fmt = "%Y-%m-%dT%H:%M:%SZ" if date_str.endswith("Z") else "%Y-%m-%dT%H:%M:%S%z"
return datetime.strptime(date_str, fmt).astimezone(timezone.utc) return datetime.strptime(date_str, fmt).astimezone(pytz.utc)
def count_open_bugs(bug_reports: list[Bug]) -> list[tuple[str, int]]: def count_open_bugs(bug_reports: list[Bug]) -> list[tuple[str, int]]:

View file

@ -5,8 +5,6 @@
<title>Open bugs over time</title> <title>Open bugs over time</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script> <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-date-fns/dist/chartjs-adapter-date-fns.bundle.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-date-fns/dist/chartjs-adapter-date-fns.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/hammerjs@2.0.8"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-zoom/dist/chartjs-plugin-zoom.min.js"></script>
</head> </head>
<body> <body>
@ -33,20 +31,7 @@ document.addEventListener('DOMContentLoaded', function () {
data: data data: data
}] }]
}, },
options: { options: {
plugins: {
zoom: {
pan: {
enabled: true,
},
zoom: {
wheel: { enabled: true },
pinch: { enabled: true },
mode: 'xy',
}
}
},
scales: { scales: {
x: { x: {
type: 'time', type: 'time',