Diablo 3 Progression Tracker
 
 
 
 
Go to file
JayPiKay 18220872d4 Purged history closes #1 2020-12-05 14:31:44 +01:00
bin Initial commit 2020-12-05 10:21:16 +01:00
docs Initial commit 2020-12-05 10:21:16 +01:00
flask_d3d3 Initial commit 2020-12-05 10:21:16 +01:00
log Initial commit 2020-12-05 10:21:16 +01:00
.gitignore Initial commit 2020-12-05 10:21:16 +01:00
CHANGELOG Purged history closes #1 2020-12-05 14:31:44 +01:00
README.md Initial commit 2020-12-05 10:21:16 +01:00
config.py Initial commit 2020-12-05 10:21:16 +01:00
d3d3.wsgi Initial commit 2020-12-05 10:21:16 +01:00
requirements.txt Initial commit 2020-12-05 10:21:16 +01:00
run.py Initial commit 2020-12-05 10:21:16 +01:00

README.md

Diablo 3 Dingsi

Track Diablo 3 profile progression per season.

Additional notes on database management

When adding indexes all collections are required to have the dropDups index on

the 'lastUpdated' field. WARNING: only works on version <=2.6 of MongoDB

CODE:

// Reindex database
db.getCollectionNames().forEach(function(collectionName) {
    var collection = db.getCollection(collectionName);
    if (collectionName.indexOf('hero') > 0) {
        collection.ensureIndex({'last-updated': 1}, {unique: true, dropDups: true});
    } else {
        collection.ensureIndex({lastUpdated: 1}, {unique: true, dropDups: true});
    }
});

// drop wrong indexes from hero collection
db.getCollectionNames().forEach(function(collectionName) {
    if (collectionName.indexOf('hero') > 0) {
        var collection = db.getCollection(collectionName);
        collection.dropIndex('lastUpdated_1');
    }
});

Forwarding database connections through SSH to remote MongoDB server

$ ssh -L 27017:localhost:27017 -Nv sif.goatpr0n.de

Milestones

  • Release 1.0
    • Display hero details