Limit MTG Page Size to 1 card
This commit is contained in:
parent
2b90358ca5
commit
35a4f4a122
1 changed files with 5 additions and 1 deletions
|
@ -29,7 +29,11 @@ namespace Geekbot.net.Commands.Integrations
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var service = new CardService();
|
var service = new CardService();
|
||||||
var result = service.Where(x => x.Name, cardName);
|
var result = service
|
||||||
|
.Where(x => x.Name, cardName)
|
||||||
|
// fewer cards less risk of deserialization problems, don't need more than one anyways...
|
||||||
|
// ToDo: fix the deserialization issue in card[n].foreignNames[]
|
||||||
|
.Where(x => x.PageSize, 1);
|
||||||
|
|
||||||
var card = result.All().Value.FirstOrDefault();
|
var card = result.All().Value.FirstOrDefault();
|
||||||
if (card == null)
|
if (card == null)
|
||||||
|
|
Loading…
Reference in a new issue