Skip to content

Commit 8e9f504

Browse files
committed
Rename sheet
1 parent 8b5652e commit 8e9f504

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/mentoring.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ pub async fn get_mentoring_records(
4848
)
4949
})
5050
})?;
51+
let expected_sheet_title = "Feedback";
5152
let sheet = data
5253
.body
5354
.sheets
@@ -57,11 +58,12 @@ pub async fn get_mentoring_records(
5758
.properties
5859
.as_ref()
5960
.map(|properties| properties.title.as_str())
60-
== Some("Sheet1")
61+
== Some(expected_sheet_title)
6162
})
6263
.ok_or_else(|| {
6364
Error::Fatal(anyhow::anyhow!(
64-
"Couldn't find Sheet1 in spreadsheet with ID {}",
65+
"Couldn't find sheet '{}}' in spreadsheet with ID {}",
66+
expected_sheet_title,
6567
mentoring_records_sheet_id
6668
))
6769
})?;

0 commit comments

Comments
 (0)