Nest daily briefings under Eric s Daily Briefing doc
This commit is contained in:
@@ -17,7 +17,8 @@ AGENT_ID = "weather-briefing"
|
|||||||
|
|
||||||
WIKI_API = "https://wiki.jfamily.io/api"
|
WIKI_API = "https://wiki.jfamily.io/api"
|
||||||
WIKI_TOKEN = os.environ.get("WIKI_TOKEN", "ol_api_yHXypRyqf4CscWDzPluGfPev9GhdFg6mwrXwkT")
|
WIKI_TOKEN = os.environ.get("WIKI_TOKEN", "ol_api_yHXypRyqf4CscWDzPluGfPev9GhdFg6mwrXwkT")
|
||||||
WIKI_COLLECTION_ID = os.environ.get("WIKI_COLLECTION_ID", "9d9e471c-84cd-4ba7-bae5-c70f61805228") # Set after collection creation
|
WIKI_COLLECTION_ID = os.environ.get("WIKI_COLLECTION_ID", "9d9e471c-84cd-4ba7-bae5-c70f61805228")
|
||||||
|
WIKI_PARENT_DOC_ID = os.environ.get("WIKI_PARENT_DOC_ID", "2a891fe8-579b-450b-a663-de93915896b7") # Eric's Daily Briefing
|
||||||
|
|
||||||
# Providence, UT
|
# Providence, UT
|
||||||
LAT = 41.7064
|
LAT = 41.7064
|
||||||
@@ -153,6 +154,7 @@ def post_to_wiki(markdown, date_str):
|
|||||||
"title": title,
|
"title": title,
|
||||||
"text": markdown,
|
"text": markdown,
|
||||||
"collectionId": WIKI_COLLECTION_ID,
|
"collectionId": WIKI_COLLECTION_ID,
|
||||||
|
"parentDocumentId": WIKI_PARENT_DOC_ID,
|
||||||
"publish": True,
|
"publish": True,
|
||||||
},
|
},
|
||||||
headers=headers,
|
headers=headers,
|
||||||
|
|||||||
Reference in New Issue
Block a user