Skip to content
Snippets Groups Projects
Commit 17e102b7 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

Util: star_is_none

parent a16c94d1
No related branches found
No related tags found
1 merge request!92Používání mo.web.fields
......@@ -187,3 +187,7 @@ def clean_up_token(token: str) -> str:
# Někteří klienti při kopírování adresy z mailu do prohlížeče
# přidávají divné Unicodové znaky (přepnutí směru psaní atd., viz issue #58).
return re.sub(r'[^!-~]', "", token)
def star_is_none(x):
return None if x == "*" else x
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment