Skip to content

Commit

Permalink
Remove 'over 30 days'
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Dec 1, 2024
1 parent bc88d11 commit 033229b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ <h2 id="charts">The charts</h2>
<div>
<p>Last updated <span ng-bind="last_update"></span>. (Updated monthly.)</p>
<span ng-bind="now_showing_packages">...</span>
<span ng-bind="now_showing_days">...</span>
</div>
<button ng-click="show(100)" >Show 100</button>
<button ng-click="show(1000)" >Show 1,000</button>
Expand All @@ -156,7 +155,6 @@ <h2 id="charts">The charts</h2>
</div>
<div>
<span ng-bind="now_showing_packages"></span>
<span ng-bind="now_showing_days"></span>
</div>
<button ng-click="show(100)" >Show 100</button>
<button ng-click="show(1000)" >Show 1,000</button>
Expand All @@ -180,12 +178,11 @@ <h2 id="charts">The charts</h2>
$scope.show = function (number) {
$scope.packages = $scope.all_packages.slice(0, number);
$scope.num_packages = number;
$scope.now_showing_packages = 'Showing ' + number.toLocaleString() + ' packages';
$scope.now_showing_packages = 'Showing ' + number.toLocaleString() + ' packages.';
};
$scope.days_30 = function () {
$scope.all_packages = $scope.all_packages_30;
$scope.show($scope.num_packages);
$scope.now_showing_days = 'over 30 days.';
};
$http.get('top-pypi-packages-30-days.min.json').then(function(res) {
$scope.last_update = res.data.last_update;
Expand Down

0 comments on commit 033229b

Please sign in to comment.