-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
merge main into sa-selenium #305
Open
FAReTek1
wants to merge
119
commits into
sa-selenium
Choose a base branch
from
main
base: sa-selenium
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…or is a builtin so i renamed it, also i fixed a typo in cloud_requests.py
Signed-off-by: FA ReTek <[email protected]>
Signed-off-by: Jonathan <[email protected]>
(cherry picked from commit 6cb631f)
fixed image in pypi info page
(cherry picked from commit f3ce6a2)
(cherry picked from commit 765b068)
…tatus (wiwo for classes)
…commcraft (cherry picked from commit 51d3422)
# Conflicts: # scratchattach/other/other_apis.py
Signed-off-by: faretek <[email protected]>
I'm a bit inexperienced at GitHub so i am a bit scared of merging this |
Signed-off-by: faretek <[email protected]>
…ok here!) Classroom abilities + create studio + misc NOTE: DUE TO THE SIZE OF THIS PR AND THE CONFLICTS THAT NEEDED TO BE SOLVED, IT IS POSSIBLE THAT SOME BUGS MAY HAVE BEEN INTRODUCED (sorry ;-;) # New classroom abilities Adds a wide array of capabilities for scratch's classroom system, including: - Creating classes - Loading closed classes using HTML web scraping - Checking if a class is closed - Setting thumbnails (also added the ability to set pfps of normal accounts as well) - Setting descriptions - Setting 'what we're working on'/status - Setting class title/name - Adding studios - Closing/Reopening classes - Registering students (NOT FROM CSV) **should this be removed?** - Generating signup link (This actually just uses the class token) - Fetching public activity (same format as user activity; loading from HTML) - Fetching private activity - things like comments or profile updates (in a bad format which is very improvable) - Registering users with simply a class token - Abilities to load stuff in classes in different sort modes # Other new abilities # create_studio() Added the `Session.create_studio()` function to create studios to solve [an issue](#277) (#277). I copy+pasted rate limit code from `Session.create_project()`. Also added title/desc settings to make it more convenient # exceptions - Now using the msg argument in `exceptions.Unauthorized()` so that you can add more detail to the exception if need be. When receiving a 403/401 status code in the `requests` wrapper, it will now print the request content which will sometimes be more descriptive than simply: "You are unauthorised" - Renamed `ConnectionError` to `CloudConnectionError` since `ConnectionError` is actually a builtin error ### misc changes/features - added password reset email sender (since i was resetting passwords of a lot of my old accounts) - A few scratchtools endpoints (isonline, is beta user, scratchtools display name) in `other_apis.py` - Added class option to `commons.webscrape_count` ### Extra Note(s) - In `cloud_requests.py`, I fixed a typo of `self.call_even`, changing it to `self.call_event`. In the rare case this is intentional, now you know - Also it looks like I pressed ctrl-alt-l again... - I added a lot of dosctrings at the start of when I made this, before I knew about `from __future__ import annotations` so that may need to be fixed
Signed-off-by: faretek <[email protected]>
sbeditor (Rival to project_json_capabilites) @ scratchattach.editor
Signed-off-by: TheCommCraft <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
add the new features to the selenium branch as well
(can't automatically merge)