feat: collect bounty, mining, colonisation and black market leaderboards

This commit is contained in:
norohind committed 2026-11-19 01:34:58 +00:00
1 parent 74bac4a3e6
commit 6ab9806a2d
4 files changed
+33 -1

No files matched your search

+1 -1
View File
@@ -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 <leaderboard: string>
- update specified leaderboard for all platforms (3 requests)
+24
View File
@@ -36,6 +36,18 @@
<tr>
<td><a href="/leaderboard/trade/platform/pc">TRADE</a></td>
</tr>
<tr>
<td><a href="/leaderboard/bounty/platform/pc">BOUNTY</a></td>
</tr>
<tr>
<td><a href="/leaderboard/colonisation_contribution/platform/pc">COLONISATION</a></td>
</tr>
<tr>
<td><a href="/leaderboard/mining/platform/pc">MINING</a></td>
</tr>
<tr>
<td><a href="/leaderboard/trade_illicit/platform/pc">BLACK MARKET</a></td>
</tr>
</table>
</div>
<div style="display: inline-block;">
@@ -65,6 +77,18 @@
<tr>
<td><a href="/leaderboard-state/now/trade/platform/pc">TRADE</a></td>
</tr>
<tr>
<td><a href="/leaderboard-state/now/bounty/platform/pc">BOUNTY</a></td>
</tr>
<tr>
<td><a href="/leaderboard-state/now/colonisation_contribution/platform/pc">COLONISATION</a></td>
</tr>
<tr>
<td><a href="/leaderboard-state/now/mining/platform/pc">MINING</a></td>
</tr>
<tr>
<td><a href="/leaderboard-state/now/trade_illicit/platform/pc">BLACK MARKET</a></td>
</tr>
</table>
</div><br>
<a>In order to access to api, add /api/ prefix to any endpoint url<br>
+4
View File
@@ -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):
+4
View File
@@ -18,6 +18,10 @@ leaderboard_type - one of
aegis
bgs
combat
trade_illicit
bounty
mining
colonisation_contribution
platform - one of
XBOX