Skip to content

Commit 20707b0

Browse files
author
Vsevolod
committed
Revert "remove commented code"
This reverts commit e9e956d.
1 parent 3ce9340 commit 20707b0

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

module/move/gspread/src/actions/gspread.rs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,39 @@ use std::usize;
867867
}
868868
}
869869

870+
// pub async fn get_rows_2< S : Secret >
871+
// (
872+
// client : &Client< '_, S >,
873+
// spreadsheet_id : &str,
874+
// sheet_name : &str,
875+
// ) -> Result< Vec< Vec< serde_json::Value > > >
876+
// {
877+
// // let range = format!( "{}!A2:ZZZ", sheet_name );
878+
// let mut rows = Vec::new();
879+
// let batch_size = 10000;
880+
// for start in 1..180000 {
881+
882+
// }
883+
// match client
884+
// .spreadsheet()
885+
// .values_get( spreadsheet_id, &range )
886+
// .value_render_option( ValueRenderOption::UnformattedValue )
887+
// .doit()
888+
// .await
889+
// {
890+
// Ok( response ) =>
891+
// {
892+
// match response.values
893+
// {
894+
// Some( values ) => Ok( values ),
895+
// None => Ok( Vec::new() )
896+
// }
897+
// }
898+
// Err( error ) => Err( error )
899+
// }
900+
901+
// }
902+
870903
/// # `get_cell`
871904
///
872905
/// Retrieves the value of a specific cell from a Google Sheet.

0 commit comments

Comments
 (0)