forked from Dniel97/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]:
|
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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user