diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-10-12 07:58:28 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-10-12 07:58:28 +0200 |
| commit | e4b17f02edfb52b9055dee754bb3b494dc4684bd (patch) | |
| tree | ee3088e6c36cebff8865c13f42a001f92c94ec62 | |
| parent | 1c63462e8bfd30fb91c89ac0da91a8e3700f40fb (diff) | |
| download | orm-e4b17f02edfb52b9055dee754bb3b494dc4684bd.tar.gz orm-e4b17f02edfb52b9055dee754bb3b494dc4684bd.zip | |
rm ts casual again
| -rw-r--r-- | generate_model.js | 2 | ||||
| -rw-r--r-- | mappings.js | 8 | ||||
| -rw-r--r-- | models/participant.js | 8 | ||||
| -rw-r--r-- | models/player.js | 8 |
4 files changed, 7 insertions, 19 deletions
diff --git a/generate_model.js b/generate_model.js index 23da576..9ee0a39 100644 --- a/generate_model.js +++ b/generate_model.js @@ -2,7 +2,7 @@ var SequelizeAuto = require("sequelize-auto") -var auto = new SequelizeAuto("vainweb", "vainweb", "vainweb", { +var auto = new SequelizeAuto("vaintest", "vaintest", "vaintest", { host: "localhost", dialect: "mariadb", directory: "models", diff --git a/mappings.js b/mappings.js index 1da6d6e..e5a3f31 100644 --- a/mappings.js +++ b/mappings.js @@ -13,8 +13,12 @@ module.exports = { map: mappings, // TODO wtf? isItem: (str) => str.indexOf("Item") != -1, - isAbility: (str) => str.indexOf("Item") == -1 && + isAbility: (str) => { + if ( str.indexOf("Item") == -1 && (str.indexOf("Ability") != -1 || - str.indexOf("ABILITY") != -1), + str.indexOf("ABILITY") != -1) ) { + if (!mappings.has(str)) console.error(str); + return true + } return false; }, isHero: (str) => str.indexOf("*") != -1 && str.indexOf("Item") == -1 }; diff --git a/models/participant.js b/models/participant.js index 1c46bf4..2f208df 100644 --- a/models/participant.js +++ b/models/participant.js @@ -101,14 +101,6 @@ module.exports = function(sequelize, DataTypes) { nacl_score: { type: "DOUBLE", allowNull: true - }, - trueskill_casual_mu: { - type: "DOUBLE", - allowNull: true - }, - trueskill_casual_sigma: { - type: "DOUBLE", - allowNull: true } }, { tableName: 'participant', diff --git a/models/player.js b/models/player.js index 9441953..11e5db3 100644 --- a/models/player.js +++ b/models/player.js @@ -61,14 +61,6 @@ module.exports = function(sequelize, DataTypes) { type: "DOUBLE", allowNull: true }, - trueskill_casual_mu: { - type: "DOUBLE", - allowNull: true - }, - trueskill_casual_sigma: { - type: "DOUBLE", - allowNull: true - }, trueskill_ranked_mu: { type: "DOUBLE", allowNull: true |
