Skip to content

Commit

Permalink
deckbox add set id column
Browse files Browse the repository at this point in the history
  • Loading branch information
nicol authored and nicol committed Nov 28, 2024
1 parent 2836133 commit 7f957f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/org/magic/api/exports/impl/DeckBoxExport.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class DeckBoxExport extends AbstractFormattedFileCardExport {


private static final String REGEX = "REGEX";
private String columns="Count,Tradelist Count,Name,Edition,Card Number,Condition,Language,Foil,Signed,Artist Proof,Altered Art,Misprint,Promo,Textless,My Price\n";
private String columns="Count,Tradelist Count,Name,Edition,Edition Code,Card Number,Condition,Language,Foil,Signed,Artist Proof,Altered Art,Misprint,Promo,Textless,My Price\n";



Expand Down Expand Up @@ -50,6 +50,7 @@ public void exportStock(List<MTGCardStock> stock, File dest) throws IOException
line.append(mc.getQte()).append(getSeparator());
line.append(name).append(getSeparator());
line.append(mc.getProduct().getEdition().getSet()).append(getSeparator());
line.append(mc.getProduct().getEdition().getId()).append(getSeparator());
line.append(mc.getProduct().getNumber()).append(getSeparator());
line.append(aliases.getConditionFor(this,mc.getCondition())).append(getSeparator());
line.append(mc.getLanguage()).append(getSeparator());
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/data/pluginsAliases.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
},
"DeckBox": {
"regex": {
"default": "(\\d+),(\\d+),((?=\")\".*?\"|.*?),(.*?),(\\d+)?,(.*?),(.*?),(foil)?,(signed)?,(proof)?,(altered)?,(misprint)?,(promo)?,(textless)?,(.*?),(.*?),\\$(\\d+(\\.\\d{1,2})?)"
"default": "(\\d+),(\\d+),((?=\")\".*?\"|.*?),(.*?),(.*?),(\\d+)?,(.*?),(.*?),(foil)?,(signed)?,(proof)?,(altered)?,(misprint)?,(promo)?,(textless)?,(.*?),(.*?),\\$(\\d+(\\.\\d{1,2})?)"
},
"nameSet": {},
"idSet": {},
Expand Down

0 comments on commit 7f957f2

Please sign in to comment.