Skip to content

Commit df45aea

Browse files
authored
Merge pull request #9 from video-db/fix/connection-error
fix: connection
2 parents e165e55 + 2eaa0b3 commit df45aea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

videodb/collection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ def upload(
103103
)
104104
media_id = upload_data.get("id", "")
105105
if media_id.startswith("m-"):
106-
return Video(self, **upload_data)
106+
return Video(self._connection, **upload_data)
107107
elif media_id.startswith("a-"):
108-
return Audio(self, **upload_data)
108+
return Audio(self._connection, **upload_data)
109109
elif media_id.startswith("img-"):
110-
return Image(self, **upload_data)
110+
return Image(self._connection, **upload_data)

0 commit comments

Comments
 (0)