diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-11-28 22:11:08 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-11-28 22:11:08 +0100 |
commit | d83ca0b6bb024e9f27337ee5aab2f3700a636ea0 (patch) | |
tree | 2a9fa8b57564b4ae17e638dc8c8f681bfbb8e0ae /mu.py | |
parent | Documentation. (diff) | |
download | mu4web-d83ca0b6bb024e9f27337ee5aab2f3700a636ea0.tar.gz mu4web-d83ca0b6bb024e9f27337ee5aab2f3700a636ea0.tar.xz |
Replace login system with flask-login.
Diffstat (limited to 'mu.py')
-rw-r--r-- | mu.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -12,6 +12,7 @@ import xml.dom from typing import ( Literal, + Optional, Union, ) @@ -76,7 +77,7 @@ Sortfield = Union[Literal['cc'], -def mu_search(query, sortfield: Sortfield = 'subject', reverse: bool = False) -> list[dict[str, str]]: +def mu_search(query, sortfield: Optional[Sortfield] = 'subject', reverse: bool = False) -> list[dict[str, str]]: """ [Parameters] query - Search query as per mu-find(1). |