Update
This commit is contained in:
parent
e1515ea207
commit
f38d80d030
1 changed files with 0 additions and 5 deletions
|
@ -784,8 +784,6 @@ impl Client {
|
|||
.await?
|
||||
.json()
|
||||
.await?;
|
||||
dbg!(&resp);
|
||||
|
||||
if resp.data.error {
|
||||
bail!("Error generating report");
|
||||
} else if !resp.data.finished {
|
||||
|
@ -794,11 +792,9 @@ impl Client {
|
|||
|
||||
let mut records_url = self.webuntis_url.join("reports.do")?;
|
||||
records_url.set_query(Some(&resp.data.report_params));
|
||||
dbg!(&records_url);
|
||||
records_url
|
||||
.query_pairs_mut()
|
||||
.append_pair("msgId", &resp.data.message_id.to_string());
|
||||
dbg!(&records_url);
|
||||
let records = reqwest::Client::new()
|
||||
.get(records_url)
|
||||
.header(reqwest::header::USER_AGENT, &self.user_agent)
|
||||
|
@ -815,7 +811,6 @@ impl Client {
|
|||
.await?
|
||||
.text()
|
||||
.await?;
|
||||
|
||||
let mut reader = csv::ReaderBuilder::new()
|
||||
.delimiter(b'\t')
|
||||
.from_reader(records.as_bytes());
|
||||
|
|
Loading…
Reference in a new issue