Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function zapuskator(array) {
- array = array.filter(t => t.some(g => g));
- const length = array.map(t => t[0]).length;
- const property = PropertiesService.getScriptProperties();
- const rows_property = property.getProperty('rows');
- if (rows_property < length) {
- property.setProperty('rows', length);
- const url = 'https://script.google' + '?row=' + array[length - 1].join();
- return [
- [new Date(), url, UrlFetchApp.fetch(url).getResponseCode()]
- ]
- }
- return length
- }
- function doGet(e) {
- MailApp.sendEmail('grclubpoker@gmail.com', 'тема: привет!', e.parameter.row)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement