pelican-plugins / series

Series is a Pelican plugin that joins multiple posts into a series
11 stars 4 forks source link

TypeError: can't compare offset-naive and offset-aware datetimes #34

Closed tooh closed 8 months ago

tooh commented 8 months ago

Started using series plugin.

I encounter this error. My skills in python are not sufficient to understand the cause

/Users/peter/.local/lib/python3.9/site-packages/pelican/plugins/series/series.py:42 in           │
│ aggregate_series                                                                                 │
│                                                                                                  │
│   39 │   │   forced_order_articles.sort(key=itemgetter("index"))                                 │
│   40 │   │                                                                                       │
│   41 │   │   date_order_articles = [i for i in series_articles if i["index"] == 0]               │
│ ❱ 42 │   │   date_order_articles.sort(key=itemgetter("date"))                                    │
│   43 │   │                                                                                       │
│   44 │   │   all_articles = forced_order_articles + date_order_articles                          │
│   45 │   │   ordered_articles = [i["content"] for i in all_articles]                             │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: can't compare offset-naive and offset-aware datetimes