Skip to content

Commit

Permalink
docstrings (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariodruiz authored May 2, 2024
1 parent 111411c commit ad16bd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/_data/publications/sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
import os
import yaml


def sort(path: str = '', stats: bool = False):
"""Sort YAML files alphabetically by title"""
search_path = path + '*.yaml'
yaml_files = sorted(glob.glob(search_path))
for file in yaml_files:
Expand Down Expand Up @@ -38,6 +40,7 @@ def sort(path: str = '', stats: bool = False):
sorted_file.write(f' abstract: |\n "'
f'{v['abstract'][:-2]}"\n\n')


if __name__ == '__main__':
path = os.path.dirname(os.path.abspath(__file__)) + '/'
sort(path, False)

0 comments on commit ad16bd3

Please sign in to comment.