diff options
| author | Joris Guyonvarch | 2025-12-27 21:41:02 +0100 |
|---|---|---|
| committer | Joris Guyonvarch | 2025-12-27 21:41:02 +0100 |
| commit | 469820af2aab5ba2abf50b7426936d9587bbec22 (patch) | |
| tree | fa96c3147fbe2cda48d130034961015c3ada88ec /src | |
| parent | fc1826c8d39be16f0071c994e79f2602e3880bbd (diff) | |
Fix sorting by year
Diffstat (limited to 'src')
| -rw-r--r-- | src/book_flow.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/book_flow.py b/src/book_flow.py index 59b0218..9238d88 100644 --- a/src/book_flow.py +++ b/src/book_flow.py @@ -131,8 +131,8 @@ class BookFlow(Gtk.FlowBox): def book_sort(b): key, data = b author = author_key(data) - date = data['date'] if 'date' in data else '' - return f'{author}{date}' + year = data['year'] if 'year' in data else '' + return f'{author}{year}' def author_key(data): match data['authors']: |
