Skip to content

Commit

Permalink
adding notes for existing people
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeygrigorev committed Apr 23, 2024
1 parent 385279f commit f7e4fbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ def slugify_title(title):


def person_path_exists(slug):
print('Checking if person exist...')
print(f'Checking if person "{slug}" exist...')

path = './_people/%s.md' % slug
path = f'./_people/{slug}.md'

if os.path.exists(path):
print('Person already exists')
print(f'Person file for "{slug}" already exists at "{path}"')
return path, True

return path, False
Expand Down

0 comments on commit f7e4fbf

Please sign in to comment.