Added site stats to README.
This commit is contained in:
parent
cf03e2504c
commit
db05bcf666
|
@ -2,6 +2,7 @@
|
||||||
The latest releases from your favorite porn studios in one place.
|
The latest releases from your favorite porn studios in one place.
|
||||||
|
|
||||||
## Supported networks & sites
|
## Supported networks & sites
|
||||||
|
233 sites on 14 networks
|
||||||
* **21Sextury**
|
* **21Sextury**
|
||||||
* Anal Teen Angels
|
* Anal Teen Angels
|
||||||
* Asshole Fever
|
* Asshole Fever
|
||||||
|
|
|
@ -4,7 +4,10 @@ const Promise = require('bluebird');
|
||||||
const knex = require('../knex');
|
const knex = require('../knex');
|
||||||
|
|
||||||
async function listSites() {
|
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) => {
|
await Promise.each(networks, async (network) => {
|
||||||
console.log(`* **${network.name}**`);
|
console.log(`* **${network.name}**`);
|
||||||
|
@ -19,6 +22,8 @@ async function listSites() {
|
||||||
|
|
||||||
sites.forEach(site => console.log(` * ${site.name}`));
|
sites.forEach(site => console.log(` * ${site.name}`));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log(`${networks.length} networks with ${allSites.length} sites total`);
|
||||||
}
|
}
|
||||||
|
|
||||||
listSites();
|
listSites();
|
||||||
|
|
Loading…
Reference in New Issue