You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-07-15 01:24:34 +02:00
added docstring to Logger. use generators.
This commit is contained in:
@ -83,7 +83,7 @@ class CommaSeparatedList(db.TypeDecorator):
|
||||
|
||||
def process_result_value(self, value, dialect):
|
||||
""" split comma separated string to list """
|
||||
return list(filter(bool, [item.strip() for item in value.split(',')])) if value else []
|
||||
return list(filter(bool, (item.strip() for item in value.split(',')))) if value else []
|
||||
|
||||
python_type = list
|
||||
|
||||
|
Reference in New Issue
Block a user