From 6ab9806a2d4dc8ecf302cefbab4143aec8e38b06 Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Thu, 19 Nov 2026 01:30:51 +0000 Subject: [PATCH] feat: collect bounty, mining, colonisation and black market leaderboards --- main.py | 2 +- static/index.html | 24 ++++++++++++++++++++++++ utils.py | 4 ++++ web.py | 4 ++++ 4 files changed, 33 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index a601e45..65d4933 100644 --- a/main.py +++ b/main.py @@ -49,7 +49,7 @@ def main(): Run in specified mode from command line main.py update all - - make all 21 requests (7 leaderboards * 3 platforms) + - request every leaderboard type for every platform main.py update - update specified leaderboard for all platforms (3 requests) diff --git a/static/index.html b/static/index.html index 1333eae..c3c0e53 100644 --- a/static/index.html +++ b/static/index.html @@ -36,6 +36,18 @@ TRADE + + BOUNTY + + + COLONISATION + + + MINING + + + BLACK MARKET +
@@ -65,6 +77,18 @@ TRADE + + BOUNTY + + + COLONISATION + + + MINING + + + BLACK MARKET +

In order to access to api, add /api/ prefix to any endpoint url
diff --git a/utils.py b/utils.py index 3df1b4d..5bb3d04 100644 --- a/utils.py +++ b/utils.py @@ -43,6 +43,10 @@ class LeaderboardTypes(enum.Enum): BGS = 'bgs' POWERPLAY = 'powerplay' TRADE = 'trade' + TRADE_ILLICIT = 'trade_illicit' + BOUNTY = 'bounty' + MINING = 'mining' + COLONISATION_CONTRIBUTION = 'colonisation_contribution' class FAPIDownForMaintenance(Exception): diff --git a/web.py b/web.py index 3df150c..a6e4574 100644 --- a/web.py +++ b/web.py @@ -18,6 +18,10 @@ leaderboard_type - one of aegis bgs combat + trade_illicit + bounty + mining + colonisation_contribution platform - one of XBOX