Added site stats to README.

This commit is contained in:
ThePendulum 2019-04-08 03:09:37 +02:00
parent cf03e2504c
commit db05bcf666
2 changed files with 7 additions and 1 deletions

View File

@ -2,6 +2,7 @@
The latest releases from your favorite porn studios in one place.
## Supported networks & sites
233 sites on 14 networks
* **21Sextury**
* Anal Teen Angels
* Asshole Fever

View File

@ -4,7 +4,10 @@ const Promise = require('bluebird');
const knex = require('../knex');
async function listSites() {
const networks = await knex('networks').orderBy('name');
const [networks, allSites] = await Promise.all([
knex('networks').orderBy('name'),
knex('sites').orderBy('name'),
]);
await Promise.each(networks, async (network) => {
console.log(`* **${network.name}**`);
@ -19,6 +22,8 @@ async function listSites() {
sites.forEach(site => console.log(` * ${site.name}`));
});
console.log(`${networks.length} networks with ${allSites.length} sites total`);
}
listSites();