Skip to content

Connected deadline text to be dynamic google doc #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 26, 2022

Conversation

adamseth2
Copy link
Collaborator

  • Connect deadline text to google doc ran by trickfirerobotics@gmail.com (0.5 sec to fetch text from API)
  • deleted random console.log in footer

Comment on lines +5 to +6
const DELIMITER_END1 = '</span>';
const DELIMITER_END2 = '"';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to make things clear, the ending index will be at either </span> or at " on the Google Doc, whichever comes first?
Besides that, all is good.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes because there is a weird thing that happens (i don't know why) but fetching the google doc has two potential results it can pull where one has after the text it ends with</span> or the other with ". That is why I added a couple of safety checks to make sure it doesn't mess up. I tried using google's own API to fetch the data making it more consistent and clean but it took 2 seconds to fetch so I opted to use this method instead

@adamseth2 adamseth2 merged commit d7be1e7 into master Aug 26, 2022
@VladimirKupryukhin VladimirKupryukhin deleted the adamseth2/automate_deadline branch March 29, 2023 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants