We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b5652e commit 8e9f504Copy full SHA for 8e9f504
1 file changed
src/mentoring.rs
@@ -48,6 +48,7 @@ pub async fn get_mentoring_records(
48
)
49
})
50
})?;
51
+ let expected_sheet_title = "Feedback";
52
let sheet = data
53
.body
54
.sheets
@@ -57,11 +58,12 @@ pub async fn get_mentoring_records(
57
58
.properties
59
.as_ref()
60
.map(|properties| properties.title.as_str())
- == Some("Sheet1")
61
+ == Some(expected_sheet_title)
62
63
.ok_or_else(|| {
64
Error::Fatal(anyhow::anyhow!(
- "Couldn't find Sheet1 in spreadsheet with ID {}",
65
+ "Couldn't find sheet '{}}' in spreadsheet with ID {}",
66
+ expected_sheet_title,
67
mentoring_records_sheet_id
68
))
69
0 commit comments