3
2
forked from Dniel97/artemis

mucha: streamline mucha_postprocess (thanks Bottersnike!)

This commit is contained in:
Hay1tsme 2023-09-05 17:32:51 -04:00
parent 3a6cfedcca
commit 5499d38bb4

View File

@ -140,9 +140,7 @@ class MuchaServlet:
def mucha_postprocess(self, data: dict) -> Optional[bytes]: def mucha_postprocess(self, data: dict) -> Optional[bytes]:
try: try:
urlencode = "" urlencode = "&".join(f"{k}={v}" for k, v in data.items())
for k, v in data.items():
urlencode += f"{k}={v}&"
return urlencode.encode() return urlencode.encode()