Skip to content
Snippets Groups Projects

E-maily školních garantů účastníků

Merged Martin Mareš requested to merge mj/pozvanky into devel
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
+ 3
3
@@ -6,7 +6,7 @@ import io
from markupsafe import Markup
from typing import Any, Dict, List, Sequence, Optional, Iterable, Union
import urllib.parse
from werkzeug.datastructures import ImmutableMultiDict
from werkzeug.datastructures import MultiDict, ImmutableMultiDict
import werkzeug.exceptions
from mo.csv import FileFormat
@@ -206,7 +206,7 @@ class Table:
return Markup("\n".join(tab))
def get_columns_checkboxes(self, line_prefix: str = "", args: Optional[ImmutableMultiDict] = None) -> Markup:
def get_columns_checkboxes(self, line_prefix: str = "", args: Union[None, MultiDict, ImmutableMultiDict] = None) -> Markup:
out = [line_prefix + '<input type="hidden" name="do_column_selection" value="1">']
for c in self.columns:
if c.in_export is None:
@@ -251,7 +251,7 @@ class Table:
yield out.getvalue().encode(fmt.get_charset())
def send_as(self, format: Union[FileFormat, str], streaming: bool = False, args: Optional[ImmutableMultiDict] = None) -> Response:
def send_as(self, format: Union[FileFormat, str], streaming: bool = False, args: Union[None, MultiDict, ImmutableMultiDict] = None) -> Response:
try:
fmt = FileFormat.coerce(format)
except ValueError:
Loading