Skip to content

Commit

Permalink
Add logic to capture draft as false blogs I still need to complete
Browse files Browse the repository at this point in the history
  • Loading branch information
roumail committed Oct 30, 2023
1 parent 9c76f63 commit 4398d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/task_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def concatenate_drafts(
content = f.read()
# Check if the file contains the specified search string

if search_string in content:
if search_string in content or "complete me" in content.lower():
blog_name = re.sub(f"{search_directory}/", "", str(filepath.parent))
print(f"Appending {blog_name} to {file_out}")
drafts.append(blog_name)
Expand Down

0 comments on commit 4398d2a

Please sign in to comment.