1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: mysql character encoding (resolve #131)

This commit is contained in:
Ferdinand Mütsch
2021-02-17 21:04:22 +01:00
parent 56800be8e8
commit e55adf6287
6 changed files with 9 additions and 5 deletions

View File

@@ -85,7 +85,7 @@ def post_data_sync(data: List[Heartbeat], url: str, api_key: str):
def randomword(length: int) -> str:
letters = string.ascii_lowercase
letters = string.ascii_lowercase + 'äöü💩' # test utf8 and utf8mb4 characters as well
return ''.join(random.choice(letters) for _ in range(length))