Only sync svgs from the mining pool logos repo

This commit is contained in:
Felipe Knorr Kuhn 2026-08-05 05:54:08 +09:00
parent 9398bf912f
commit e31299c4e9
No known key found for this signature in database
GPG key ID: 79619B52BB097C1A

View file

@ -230,7 +230,7 @@ const downloadMiningPoolLogos = async () => {
const poolLogos = await fetchGitHubContents('/repos/mempool/mining-pool-logos/contents/', !!config.githubToken); const poolLogos = await fetchGitHubContents('/repos/mempool/mining-pool-logos/contents/', !!config.githubToken);
let downloadedCount = 0; let downloadedCount = 0;
const validFiles = poolLogos.filter(item => item.type === 'file' && item.download_url); const validFiles = poolLogos.filter(item => item.type === 'file' && item.download_url && item.name.toLowerCase().endsWith('.svg'));
for (const poolLogo of validFiles) { for (const poolLogo of validFiles) {
if (config.verbose) { if (config.verbose) {