Skip to content

Commit

Permalink
Fixed the media upload.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar Fernando Davis Flores authored and Oscar Fernando Davis Flores committed Jul 2, 2024
1 parent 1286202 commit de289ba
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pymino
Version: 1.2.7.2
Version: 1.2.7.3
Summary: Easily create a bot for Amino Apps using a modern easy to use synchronous library.
Home-page: https://github.com/forevercynical/pymino
Author: forevercynical
Expand Down
2 changes: 1 addition & 1 deletion pymino/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
__author__ = 'cynical'
__license__ = 'MIT'
__copyright__ = 'Copyright 2023 Cynical'
__version__ = '1.2.7.2'
__version__ = '1.2.7.3'
__description__ = 'A Python wrapper for the aminoapps.com API'

from .bot import Bot
Expand Down
5 changes: 4 additions & 1 deletion pymino/ext/utilities/request_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ def handler(
"""
url = self.service_url(url)

url, headers, binary_data = self.service_handler(url, {**data, "uid": self.userId} if data is not None else None, content_type)
if data is not None and isinstance(data, dict):
data = {**data, "uid": self.userId}

url, headers, binary_data = self.service_handler(url, data, content_type)

if all([method=="POST", data is None]):
headers["CONTENT-TYPE"] = "application/octet-stream"
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = pymino
version = 1.2.7.2
version = 1.2.7.3
author = forevercynical
author_email = me@cynical.gg
description = Easily create a bot for Amino Apps using a modern easy to use synchronous library.
Expand Down

0 comments on commit de289ba

Please sign in to comment.