Jump to content

CrispyChicken

Member
  • Posts

    15
  • Joined

  • Last visited

Posts posted by CrispyChicken

  1. 43 minutes ago, Maze said:

    my cardSlug is also just generated with this as a basis: https://hub.backend.skylords.eu/api/auctions/cards?id=all

    just make everything lower-case, add "-promo" if it's a promo, add "-r"/"-p"/"-g"/"-b" for the respective affinities and in case of Protector's Seal add either "-tl" or "-ls". but if there would ever be a card that needs all 3 different extensions I would probably go with the order: color -> promo -> affinity, just as a suggestion.

    already coded it like that and not to forget the backend "bug" with sandstorm-r which was changed to -b 😂
    Thank you!

     

    43 minutes ago, Maze said:

    I use cardSlug for the mapping most of the time, since all my data objects are set up to always have a cardSlug, but in theory I could just get rid of the cardSlugs and replace it with my own ID everywhere, but having it readable if I need to look something up helps and also sometimes there is more than one instance of a card, like in the details. so I only use my ID, in cases where there is only one instance of a card, like with buyouts, notables, or the static data, as the _id should never change. I used the cardSlug for that in the beginning, but then Lord Cyrian changed, so I switched to the official id, but then Plague changed. xD

    hmm.. yea ID's should never change but in case of plague.. irony 😉

  2. 10 hours ago, Maze said:

    these might also interest you then: 🙂

    https://smj.cards/api/buyouts (current buyouts by card)

    https://smj.cards/api/details   (current details by auction)

    the full data from the details api will be used by the reinstation of the deals page once it's done, but currently it is only used by the current auctions at the bottom of each card page 🙂

     

    lol, didn't notice that, but yeah sucks to be nox trooper xD Luckily there is at least no card with 500 as the id, xD

    I should be able to change that, but I don't think that many people look for nox trooper by it's official id either way. xD

    true, pretty shure barely anyone will use Official-ID and your ID is working fine.
    Many thanks for the API links I'm going to take advantage from!!

  3. 28 minutes ago, Maze said:

    I still don't know why you would need the full table view for that? Were you scraping the site for the values before? If so, you could have just used the same apis that the site uses. 🙂

     

    https://smj.cards/api/notables

    might give you the data that you are looking for. (I still have some problems updating the values though, because of the way they are generated from the database. so they are not always correct yet. all other price apis should be accurate though, it's just this one that's been bugging me even on the old site...)

    obviously it was just laziness not reading through skylords backend and just copy / pasting smj2.herokuapp table 😜
    Thanks for the Link! Verry helpful, fast and easy to fetch!


    Just recognized that your webserver (or any webserver) dislikes nox troopers https://smj.cards/404
    lol

  4. 10 hours ago, Maze said:

    What do you wish to gain from a static view? Please tell me more, as I have something planned down the line that may be what you are interested in, but maybe not. 🙂

    I made the table virtual to make the rendering faster when you filter as it only renders what you are able to see, since otherwise the site would have been quite slow in that regard.

    to speed up rendering..  i understand..
    I must confess that i abused your smj2.herokuapp website to fetch information about cards available including mean and buyout price for my own table and logics, filters, sortings..
    I am fetching all basics from the API now (CardID and i build the Card Names by my own, Auctions) and just fetch median once every week or two from your smj.cards.

    My concerns are cleared so far! 🙂

    And not to forget! smj.cards is a really nice masterpiece! Design, Graphs, Median, Reforge, CardID URL, and so on and on and on 🤘

    Thank you!

  5. 1 hour ago, Maze said:

    Hey, I am working on the new version of the website and since it is pretty close to being viable I will finish it up and won't update the old site anymore. I hope to release the new version by new year 🤞.

    exciting and nice to hear 🤘. Thx for your great work!
    I hope there will be a "display as table" including an option to list all cards available similar to the current site 🥺

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use