Skip to content

Commit

Permalink
site to gogetit.health
Browse files Browse the repository at this point in the history
  • Loading branch information
parkerholcomb committed Apr 10, 2021
1 parent b8c4968 commit 5ea69d7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion cloud_functions/lib/Fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
from datetime import datetime
import requests
import pandas as pd
import os

class Fetcher:

def __init__(self, source):
self.env = os.environ.get('DEPLOY_STAGE')
if source == 'heb':
self.fetch_heb()
elif source == 'tdem':
elif (source == 'tdem') and (self.env == 'prod'):
self.fetch_tdem()

now_partition_str = f"{datetime.now().strftime('%Y-%m-%d')}/{datetime.now().strftime('%H:%M')}"
Expand Down
2 changes: 1 addition & 1 deletion cloud_functions/lib/Notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _generate_body(self, df):
for idx in df.index:
body.append(f"💉 {df.loc[idx]['name']} has {df.loc[idx]['vaccines_delta']} new vaccines available, {df.loc[idx]['miles_away']} miles away")
zip_ = df['zip_'][0] # passing the zip of the first record to center the map on that location
body.append(f"\nVisit gogetit.health/q?zip={zip_} for more information #goandgetgetit")
body.append(f"\nVisit https://gogetit.health/q?zip={zip_} for more information #goandgetgetit")
if self.env != 'prod':
body.append(f"Source: {self.source}")
return '\n'.join(body)
Expand Down
2 changes: 1 addition & 1 deletion site/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "my-app",
"name": "go-get-it-health",
"version": "0.1.0",
"description": "",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion site/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
app: go-get-it
name: go-get-it-web
name: go-get-it
component: website

inputs:
Expand Down

0 comments on commit 5ea69d7

Please sign in to comment.