forked from Hay1tsme/artemis
mucha: streamline mucha_postprocess (thanks Bottersnike!)
This commit is contained in:
parent
3a6cfedcca
commit
5499d38bb4
@ -140,9 +140,7 @@ class MuchaServlet:
|
||||
|
||||
def mucha_postprocess(self, data: dict) -> Optional[bytes]:
|
||||
try:
|
||||
urlencode = ""
|
||||
for k, v in data.items():
|
||||
urlencode += f"{k}={v}&"
|
||||
urlencode = "&".join(f"{k}={v}" for k, v in data.items())
|
||||
|
||||
return urlencode.encode()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user