Giter Club home page Giter Club logo

cw_wiki_sync's People

Contributors

avee avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cw_wiki_sync's Issues

Data duplication and out of date information

This might be two different issues, but here goes.

I'm using your repository for some of my own stuff (generally great work btw), and I've come across an issue:

Data in the resources_v2.json file is duplicated and partially out of date (in fact it's an issue in both v1 and v2, but I guess v1 isn't as important anymore).

The item I noticed it with is a118 - it exists twice.

First entry

{
    "id": "a118",
    "eventItem": false,
    "name": "Indissoluble Cloak",
    "type": "Cape",
    "attack": 4,
    "defense": 11,
    "mana": 0,
    "levelRequirement": 60,
    "depositable": true,
    "auction": true,
    "enchantable": true,
    "craftable": true,
    "recipeIncomplete": false,
    "craftCommand": "/c_a118",
    "craftSkill": "Crafting (Skill)",
    "craftLevel": 6,
    "craftMana": 800,
    "recipe": [
        {
            "name": "Indissoluble Apron recipe",
            "qty": "1",
            "personalized": false
        },
        {
            "name": "Indissoluble Apron part",
            "qty": "4",
            "personalized": false
        },
        ...
    ],
    "pagename": "Indissoluble Apron",
    "lastModified": "2021-04-14T21:10:12Z",
    "revision": 16997,
    "wikiUrl": "https://chatwars-wiki.de/index.php?title=Indissoluble+Apron"
}

second entry

{
    "id": "a118",
    "eventItem": false,
    "name": "Indissoluble Cloak",
    "type": "Cape",
    "description": "Modifiers: Heavy Armor Mastery↑ 0.50 Per enchant",
    "attack": 4,
    "defense": 11,
    "mana": 0,
    "weight": 60,
    "levelRequirement": 60,
    "depositable": true,
    "shopSellPrice": 302,
    "exchange": false,
    "auction": true,
    "freeText": "Modifiers: Heavy Armor Mastery↑ 0.50 Per enchant",
    "quest": false,
    "enchantable": true,
    "enchantAtk1": 0,
    "enchantAtk2": 2,
    "enchantAtk3": 0,
    "enchantAtk4": 2,
    "enchantDef1": 2,
    "enchantDef2": 0,
    "enchantDef3": 2,
    "enchantDef4": 0,
    "enchantMana1": 0,
    "enchantMana2": 0,
    "enchantMana3": 0,
    "enchantMana4": 0,
    "craftable": true,
    "recipeIncomplete": false,
    "craftCommand": "/craft_a118",
    "craftSkill": "Crafting (Skill)",
    "craftLevel": 6,
    "craftMana": 800,
    "recipe": [
        {
            "name": "Indissoluble Cloak Recipe",
            "qty": "1",
            "personalized": false
        },
        {
            "name": "Indissoluble Cloak Part",
            "qty": "4",
            "personalized": false
        },
        ...
    ],
    "pagename": "Indissoluble Cloak",
    "lastModified": "2022-05-05T19:05:12Z",
    "revision": 17373,
    "wikiUrl": "https://chatwars-wiki.de/index.php?title=Indissoluble+Cloak"
}

As you can see, the first entry contains outdated data - calling the item "Indissoluble Apron" in everything but the "name" field - including referring to the Apron recipes as ingredients.


A local fix for others running into this issue could be to sort the data by lastModified or revision and only use the newer entry, at least that's what let me work around the issue for now.

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.