mirror of
https://github.com/YGGverse/btracker-gemini.git
synced 2026-03-31 09:05:30 +00:00
rename date to format_date
This commit is contained in:
parent
09dba402cd
commit
e8e2369564
2 changed files with 3 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ pub struct Config {
|
||||||
|
|
||||||
/// Date format
|
/// Date format
|
||||||
#[arg(short, long, default_value_t = String::from("%Y/%m/%d"))]
|
#[arg(short, long, default_value_t = String::from("%Y/%m/%d"))]
|
||||||
pub date: String,
|
pub format_date: String,
|
||||||
|
|
||||||
/// Tracker(s) to join / scrape requests
|
/// Tracker(s) to join / scrape requests
|
||||||
#[arg(short, long)]
|
#[arg(short, long)]
|
||||||
|
|
|
||||||
|
|
@ -301,7 +301,7 @@ fn index(config: &Config, public: &Public, page: Option<usize>) -> Result<String
|
||||||
));
|
));
|
||||||
b.push(format!(
|
b.push(format!(
|
||||||
"{} • {} • {}\n",
|
"{} • {} • {}\n",
|
||||||
torrent.time.format(&config.date),
|
torrent.time.format(&config.format_date),
|
||||||
format::total(&i),
|
format::total(&i),
|
||||||
format::files(&i),
|
format::files(&i),
|
||||||
))
|
))
|
||||||
|
|
@ -364,7 +364,7 @@ fn info(config: &Config, torrent: Torrent) -> Result<String> {
|
||||||
|
|
||||||
b.push(format!(
|
b.push(format!(
|
||||||
"{} • {} • {}\n",
|
"{} • {} • {}\n",
|
||||||
torrent.time.format(&config.date),
|
torrent.time.format(&config.format_date),
|
||||||
format::total(&i),
|
format::total(&i),
|
||||||
format::files(&i),
|
format::files(&i),
|
||||||
));
|
));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue