Skip to content

Commit 0b4bb2a

Browse files
committed
2 parents 94017bb + e29cd6d commit 0b4bb2a

File tree

4 files changed

+47
-6
lines changed

4 files changed

+47
-6
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Bug report
2+
description: File a bug report.
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report!
10+
- type: input
11+
id: scratchattach-version
12+
attributes:
13+
label: scratchattach version
14+
description: The version of scratchattach you have installed. Can be found using `python -m pip show scratchattach`
15+
validations:
16+
required: true
17+
- type: textarea
18+
id: what-happened
19+
attributes:
20+
label: What happened?
21+
validations:
22+
required: true
23+
- type: dropdown
24+
id: cloudvariables-location
25+
attributes:
26+
label: Cloud variables
27+
description: If your bug is based in some form on cloud variables, which cloud variable server did you use? If your bug doesn't have anything to do with cloud variables, submit "No cloud vars"
28+
options:
29+
- Scratch
30+
- TurboWarp
31+
- Custom Cloud Server
32+
- Other
33+
- No cloud vars
34+
default: 0
35+
validations:
36+
required: true
37+
- type: textarea
38+
id: traceback
39+
attributes:
40+
label: Traceback
41+
description: If you received a traceback, please copy paste the full traceback here. Otherwise write "none".
42+
render: txt
43+
validations:
44+
required: true

scratchattach/eventhandlers/cloud_requests.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def __init__(self, cloud, used_cloud_vars=["1", "2", "3", "4", "5", "6", "7", "8
6969
self._requests = {}
7070
self.event(self.on_set, thread=False)
7171
self.event(self.on_reconnect, thread=True)
72-
self.respond_in_thread = False
7372
self.no_packet_loss = no_packet_loss # When enabled, query the clouddata log regularly for missed requests and reconnect after every single request (reduces packet loss a lot, but is spammy and can make response duration longer)
7473
self.used_cloud_vars = used_cloud_vars
7574
self.respond_order = respond_order
@@ -106,8 +105,6 @@ def request(self, function=None, *, enabled=True, name=None, thread=True, respon
106105
"""
107106
def inner(function):
108107
# called if the decorator provides arguments
109-
if thread:
110-
self.respond_in_thread = True
111108
self._requests[function.__name__ if name is None else name] = Request(
112109
function.__name__ if name is None else name,
113110
enabled = enabled,

scratchattach/eventhandlers/combine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def request(self, function, *args, **kwargs):
1111

1212
def event(self, function, *args, **kwargs):
1313
for handler in self.handlers:
14-
handler.request(function, *args, **kwargs)
14+
handler.event(function, *args, **kwargs)
1515

1616
def start(self, *args, **kwargs):
1717
for handler in self.handlers:
@@ -27,4 +27,4 @@ def pause(self, *args, **kwargs):
2727

2828
def resume(self, *args, **kwargs):
2929
for handler in self.handlers:
30-
handler.resume(*args, **kwargs)
30+
handler.resume(*args, **kwargs)

scratchattach/site/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def studio_count(self):
260260

261261
def studios_following_count(self):
262262
text = requests.get(
263-
f"https://scratch.mit.edu/users/{self.username}/studios/",
263+
f"https://scratch.mit.edu/users/{self.username}/studios_following/",
264264
headers = self._headers
265265
).text
266266
return commons.webscrape_count(text, "Studios I Follow (", ")")

0 commit comments

Comments
 (0)