Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
e87753361d | |||
d8976638d3 |
2 changed files with 3 additions and 3 deletions
|
@ -1,9 +1,9 @@
|
||||||
# smogon stats
|
# smogon stats
|
||||||
turn <https://smogon.com/stats/> chaos json files into [SQLite](https://sqlite.org) databases
|
turn <https://smogon.com/stats/> chaos json files into [SQLite](https://sqlite.org) databases
|
||||||
|
|
||||||
you can find pre-generated dbs at <https://pyrope.net/mon/stats> (currently only 2025-02), and you can [fiddle](https://sqlite.org/fiddle) with them in your browser or on your own computer.
|
you can find pre-generated dbs at <https://pyrope.net/mon/stats>, and you can [fiddle](https://sqlite.org/fiddle) with them in your browser or on your own computer.
|
||||||
|
|
||||||
## examples
|
## examples (2025-02)
|
||||||
```sh
|
```sh
|
||||||
smogon-stats gen9ou-1500.json -o gen9ou-1500.sqlite
|
smogon-stats gen9ou-1500.json -o gen9ou-1500.sqlite
|
||||||
sqlite3 gen9ou-1500.sqlite -markdown "SELECT name, format('%.2f%%', usage * 100) as usage FROM mon WHERE mon.usage > 0.04 ORDER BY mon.usage DESC LIMIT 10"
|
sqlite3 gen9ou-1500.sqlite -markdown "SELECT name, format('%.2f%%', usage * 100) as usage FROM mon WHERE mon.usage > 0.04 ORDER BY mon.usage DESC LIMIT 10"
|
||||||
|
|
|
@ -52,7 +52,7 @@ fn run(
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(clap::Parser)]
|
#[derive(clap::Parser)]
|
||||||
#[command(about)]
|
#[command(version, about)]
|
||||||
struct Config {
|
struct Config {
|
||||||
#[arg()]
|
#[arg()]
|
||||||
input_file: PathBuf,
|
input_file: PathBuf,
|
||||||
|
|
Loading…
Reference in a new issue