fix: provide clan_id

This commit is contained in:
TrèsAbhi committed 2023-10-14 18:50:08 -05:00
1 parent 630a37025e
commit db846c0680
3 files changed
+2 -18

No files matched your search

-14
View File
@@ -127,17 +127,3 @@ export const ownedTanksCommand: CommandRegistry = {
autocomplete: autocompleteUsername, autocomplete: autocompleteUsername,
}; };
// TODO: make this work in the future
// console.log('Caching tank images...');
// TANKS.then((tanks) =>
// jsxToSvg(
// <div style={{ display: 'flex' }}>
// {tanks.map(({ images, tank_id }) => {
// return (
// images.normal && <img key={tank_id} src={images.normal} width={0} />
// );
// })}
// </div>,
// ),
// ).then(() => console.log('Cached tank images'));
+1 -3
View File
@@ -1,12 +1,10 @@
import { AllStats, SupplementaryStats } from '../../core/blitz/getAccountInfo'; import { AllStats, SupplementaryStats } from '../../core/blitz/getAccountInfo';
import getWN8Percentile from '../../core/statistics/getWN8Percentile';
import isNumber from '../../core/math/isNumber'; import isNumber from '../../core/math/isNumber';
import getWN8Percentile from '../../core/statistics/getWN8Percentile';
import { Card } from './components/Card'; import { Card } from './components/Card';
import { Root } from './components/Root'; import { Root } from './components/Root';
import { Row } from './components/Row'; import { Row } from './components/Row';
// TODO: remove the .js endings
export interface GenericAllStatsProps { export interface GenericAllStatsProps {
stats: AllStats; stats: AllStats;
supplementaryStats?: SupplementaryStats; supplementaryStats?: SupplementaryStats;
+1 -1
View File
@@ -32,7 +32,7 @@ export async function getClanAccountInfo<
: IndividualClanAccountInfo[], : IndividualClanAccountInfo[],
>(region: Region, ids: Ids, extra?: string[]) { >(region: Region, ids: Ids, extra?: string[]) {
const object = await fetchBlitz<ClanAccountInfo>( const object = await fetchBlitz<ClanAccountInfo>(
`https://api.wotblitz.${region}/wotb/clans/info/?application_id=${WARGAMING_APPLICATION_ID}&account_id=${normalizeIds( `https://api.wotblitz.${region}/wotb/clans/info/?application_id=${WARGAMING_APPLICATION_ID}&clan_id=${normalizeIds(
ids, ids,
)}${normalizeExtra(extra)}`, )}${normalizeExtra(extra)}`,
); );