md2api 0.5.0__tar.gz → 0.5.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: md2api
3
- Version: 0.5.0
3
+ Version: 0.5.1
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: sumeshi
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "md2api"
3
- version = "0.5.0"
3
+ version = "0.5.1"
4
4
  description = ""
5
5
  authors = ["sumeshi <sum3sh1@protonmail.com>"]
6
6
  license = "MIT"
@@ -124,10 +124,10 @@ def create_category_index(output_path: Path, documents: list[Document]):
124
124
  published_at=document.published_at
125
125
  )
126
126
 
127
- if category_name not in category_names.keys():
128
- category_names[category_name] = [postIndex]
127
+ if category_name in category_names.keys():
128
+ category_names[category_name].append(postIndex)
129
129
  else:
130
- category_names[category_name] = category_names[category_name].append(postIndex)
130
+ category_names[category_name] = [postIndex]
131
131
 
132
132
  for category, posts in category_names.items():
133
133
  document_path = index_path / Path(category) / Path('index.html')
File without changes