Skip to content

Commit

Permalink
Fixed limit to next 10 ctfs
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanpencil committed Apr 10, 2020
1 parent 7d78dbd commit 7b144a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctfwatch/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ fn green(s: impl std::fmt::Display) -> String {

static LEN: usize = 60;
fn justdoit() -> Result<(), Box<dyn std::error::Error>> {
let v: Vec<CtfEvent> = reqwest::blocking::get("https://ctftime.org/api/v1/events/?limit=30")?.json().unwrap();
let v: Vec<CtfEvent> = reqwest::blocking::get("https://ctftime.org/api/v1/events/?limit=10")?.json().unwrap();

for event in v {
let mut text : Vec<String> = vec![];
Expand Down

0 comments on commit 7b144a1

Please sign in to comment.