You've already forked snikket-web-portal
Compare commits
3 Commits
beta.20220
...
feature/fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a81a0140b | ||
|
|
5b4d4ddd36 | ||
|
|
28ff19c19c |
@@ -207,7 +207,7 @@ def make_avatar_metadata_set_request(
|
|||||||
item,
|
item,
|
||||||
"metadata", xmlns=NS_USER_AVATAR_METADATA)
|
"metadata", xmlns=NS_USER_AVATAR_METADATA)
|
||||||
|
|
||||||
attr: typing.MutableMapping[str, str] = {
|
attr: typing.Dict[str, str] = {
|
||||||
"id": id_,
|
"id": id_,
|
||||||
"bytes": str(size),
|
"bytes": str(size),
|
||||||
"type": mimetype,
|
"type": mimetype,
|
||||||
@@ -217,7 +217,12 @@ def make_avatar_metadata_set_request(
|
|||||||
if height is not None:
|
if height is not None:
|
||||||
attr["height"] = str(height)
|
attr["height"] = str(height)
|
||||||
|
|
||||||
ET.SubElement(metadata_wrap, "info", xmlns=NS_USER_AVATAR_METADATA, **attr)
|
ET.SubElement(
|
||||||
|
metadata_wrap,
|
||||||
|
"info",
|
||||||
|
xmlns=NS_USER_AVATAR_METADATA,
|
||||||
|
**attr, # type: ignore
|
||||||
|
)
|
||||||
return req
|
return req
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user