Giter Club home page Giter Club logo

magic-api's People

Contributors

aloisdg avatar stegriff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

magic-api's Issues

Duplicate cards going into database

Assume Ætherling is in the database (first character is unicode combined AE). If a user searches for Aetherling (using regular ASCII), the database search does not find the existing entry. As a result, Ætherling is downloaded again, and put in a new record.

This also happens with partial names of long, unambiguous card names. For example, 'Our Market Research Shows' will keep downloading new copies of the long-name card.

Remedy ideas:

  • DB field for 'original query' to store the search string which downloaded the record. Can compare against this before card name when searching for cards.
  • Do character conversion some way to fix comparisons with Unicode, and use LIKE statements to catch long card names

Card text field size may be insufficient for some cards

~~I made a design assumption that card texts would not be longer than 255 characters. Some cards, for example, "Varolz, the Scar-Striped", exceed this limit.

I'll write a database alteration to expand card text to a new limit.~~

The character limit is now 500, but it remains to be seen if there are cards with longer text. This is not well documented.

Card name field can not contain longest card name

The longest card name is "Our Market Research Shows That Players Like Really Long Card Names So We Made this Card to Have the Absolute Longest Card Name Ever Elemental" from Unhinged.

This is 141 characters long. The field is currently varchar(50), so it needs to be expanded.

[http://gatherer.wizards.com/Pages/Card/Details.aspx?multiverseid=74237]

Investigate some searches timing out

Some searches like 'Staunch hearted warrior' are running endlessly. Real card name is 'staunch-hearted warrior'. Will investigate -- probably a bug in the card_extractor.

Include the multiverse ID

Having the multiverse ID available in the API would be a huge help. This would allow a developer to link to the gatherer page, look up card images from mtgimage, etc.

MTG image no longer exists

The Scry frontend tries to load images from mtgimage.com which was taken down due to a copyright claim by WotC (fair enough).

Remove this functionality

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.