Skip to content

Commit

Permalink
Added check for app id
Browse files Browse the repository at this point in the history
  • Loading branch information
johc committed Apr 29, 2024
1 parent 695bf38 commit b10ec61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fetch_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Fetch Data
env:
MONGODB_URI: ${{ secrets.PARSE_APP_ID }}
PARSE_APP_ID: ${{ secrets.PARSE_APP_ID }}
run: |
python fetch_data.py
Expand Down
4 changes: 3 additions & 1 deletion fetch_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
server_info = file.read().strip()

# Construct the Parse Server URL using the read server info
PARSE_APP_ID = os.environ['PARSE_APP_ID']
PARSE_SERVER_URL = f"http://{server_info}/parse"
PARSE_APP_ID = os.environ['PARSE_APP_ID']

if not PARSE_APP_ID:
raise EnvironmentError("The 'PARSE_APP_ID' environment variable is not set.")

# HTTP headers
headers = {
Expand Down

0 comments on commit b10ec61

Please sign in to comment.