gperdrizet commited on
Commit
663acf0
·
verified ·
1 Parent(s): 6c67813

Updated Redis cache key environment variable.

Browse files
Files changed (1) hide show
  1. functions/feed_extraction.py +1 -2
functions/feed_extraction.py CHANGED
@@ -2,7 +2,6 @@
2
 
3
  import os
4
  import re
5
- import json
6
  import logging
7
  import urllib.request
8
  from urllib.error import HTTPError, URLError
@@ -19,7 +18,7 @@ RSS_EXTENSIONS = ['xml', 'rss', 'atom']
19
  COMMON_EXTENSIONS = ['com', 'net', 'org', 'edu', 'gov', 'co', 'us']
20
  REDIS = Redis(
21
  url='https://sensible-midge-19304.upstash.io',
22
- token=os.environ['UPSTASH_KEY']
23
  )
24
 
25
  def find_feed_uri(website: str) -> str:
 
2
 
3
  import os
4
  import re
 
5
  import logging
6
  import urllib.request
7
  from urllib.error import HTTPError, URLError
 
18
  COMMON_EXTENSIONS = ['com', 'net', 'org', 'edu', 'gov', 'co', 'us']
19
  REDIS = Redis(
20
  url='https://sensible-midge-19304.upstash.io',
21
+ token=os.environ['UPSTASH_REDIS_KEY']
22
  )
23
 
24
  def find_feed_uri(website: str) -> str: