Skip to content

Commit 1278159

Browse files
committed
set public filter
1 parent 8430383 commit 1278159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linkedin_post_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def get_latest_buttondown_email():
3737
# For now, we'll assume the default API call without specific filters might return
3838
# recent ones and we'll pick the absolute latest from the results.
3939
# A more robust approach might involve `?ordering=-publish_date&limit=1` if the API supports it.
40-
FILTERS = f"page_size=1&email_type=premium" # Attempt to get just one, the most recent
40+
FILTERS = f"page_size=1&email_type=public" # Attempt to get just one, the most recent
4141

4242
try:
4343
response = requests.request("GET", f"{BUTTONDOWN_BASE_URL}/v1{BUTTONDOWN_ENDPOINT}?{FILTERS}", headers=headers)

0 commit comments

Comments
 (0)