Diablo 3 Progression Tracker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
JayPiKay 18220872d4
Purged history closes #1
2 years ago
bin Initial commit 2 years ago
docs Initial commit 2 years ago
flask_d3d3 Initial commit 2 years ago
log Initial commit 2 years ago
.gitignore Initial commit 2 years ago
CHANGELOG Purged history closes #1 2 years ago
README.md Initial commit 2 years ago
config.py Initial commit 2 years ago
d3d3.wsgi Initial commit 2 years ago
requirements.txt Initial commit 2 years ago
run.py Initial commit 2 years ago

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