Skip to content

Commit 3f8eb2a

Browse files
committed
print number of search results only if not single search.
1 parent a5496c7 commit 3f8eb2a

3 files changed

Lines changed: 55 additions & 3 deletions

File tree

carddl.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
BASIC = ['Plains', 'Swamp', 'Island', 'Mountain', 'Forest']
1818

1919
def downloader(card, output, url, language, replace=False):
20-
if len(output) > 50:
21-
out = output[:40] + '...'
20+
if len(output) > 60:
21+
out = output[:50] + '...'
2222
else:
2323
out = output
2424
print(f"{out} \033[70G| {DICT[card.set]} ({card.set})")
@@ -184,7 +184,8 @@ def main(edition, name, path, single, high, language, frmt, unleash):
184184
names = [card.name for card in sets]
185185
dlist = set(card for card in names if names.count(card) > 1)
186186

187-
print(f"RESULTS :{len(cards)}")
187+
if not single:
188+
print(f"RESULTS :{len(cards)}")
188189
for card in cards:
189190
if single:
190191
search(card, path, high, language)

decklist/PuresteelStorm.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2 Plains
2+
3 Hallowed Fountain
3+
1 Sacred Foundry
4+
4 Flooded Strand
5+
1 Arid Mesa
6+
3 Marsh Flats
7+
1 Seachrome Coast
8+
4 Puresteel Paladin
9+
4 Sram, Senior Edificer
10+
4 Mox Opal
11+
4 Retract
12+
2 Noxious Revival
13+
2 Serum Visions
14+
1 Grapeshot
15+
4 Repeal
16+
4 Paradise Mantle
17+
4 Spidersilk Net
18+
4 Accorder's Shield
19+
4 Cathar's Shield
20+
4 Sigil of Distinction
21+
22+
Sideboard
23+
4 Burrenton Forge-Tender
24+
4 Monastery Mentor
25+
3 Silence
26+
2 Fragmentize
27+
1 Hurkyl's Recall
28+
1 Ghirapur Aether Grid

decklist/SimicNexus.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
6 Island
2+
6 Forest
3+
4 Breeding Pool
4+
4 Hinterland Harbor
5+
4 Memorial to Genius
6+
1 Arch of Orazca
7+
3 Hydroid Krasis
8+
4 Opt
9+
4 Growth Spiral
10+
4 Root Snare
11+
3 Search for Azcanta
12+
2 Blink of an Eye
13+
3 Sinister Sabotage
14+
4 Chemister's Insight
15+
4 Wilderness Reclamation
16+
4 Nexus of Fate
17+
18+
Sideboard
19+
3 Druid of the Cowl
20+
3 Kraul Harpooner
21+
3 Biogenic Ooze
22+
3 Negate
23+
3 Crushing Canopy

0 commit comments

Comments
 (0)