We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9a1834 commit b3f652bCopy full SHA for b3f652b
1 file changed
betanin/notifications.py
@@ -2,6 +2,7 @@
2
import random
3
import string
4
from string import Template
5
+from types import SimpleNamespace
6
7
# 3rd party
8
import gevent
@@ -124,4 +125,12 @@ def send(torrent):
124
125
126
127
def send_async(torrent):
- gevent.spawn(send, torrent)
128
+ gevent.spawn(
129
+ send,
130
+ SimpleNamespace(
131
+ id=torrent.id,
132
+ name=torrent.name,
133
+ updated=torrent.updated,
134
+ status=torrent.status,
135
+ ),
136
+ )
0 commit comments