Skip to content
This repository has been archived by the owner on Sep 24, 2023. It is now read-only.

2.1.0 patch8 issue 127 #142

Merged
merged 5 commits into from
Oct 16, 2021
Merged

2.1.0 patch8 issue 127 #142

merged 5 commits into from
Oct 16, 2021

Conversation

MurdoMaclachlan
Copy link
Owner

@MurdoMaclachlan MurdoMaclachlan commented Oct 14, 2021

Closes #127
Contributes to #136

@MurdoMaclachlan MurdoMaclachlan added the cleanup/optimisation improvements to the efficiency of the code and/or project structure label Oct 14, 2021
@MurdoMaclachlan MurdoMaclachlan added this to the v2.1.0 milestone Oct 14, 2021
@MurdoMaclachlan MurdoMaclachlan self-assigned this Oct 14, 2021
There's no real reason to do this as they come out as the same due to Reddit's API limitations, and removing the `None` conversion allows an optimisation in `main.py`.
- Calling comment.body once in main.py and simply passing the body into all these functions significantly reduces the number of calls
- Re-arranging how checkArray() works and splitting the if statement in remover() will utilise Python's lazy evaluation to reduce the number of API calls for people with subredditList and userList disabled
- Also improved the typing of some functions
@MurdoMaclachlan MurdoMaclachlan marked this pull request as ready for review October 16, 2021 13:02
@MurdoMaclachlan MurdoMaclachlan merged commit cc7f399 into 2.x Oct 16, 2021
@MurdoMaclachlan MurdoMaclachlan deleted the 2.1.0-patch4-issue-127 branch October 16, 2021 13:04
@MurdoMaclachlan MurdoMaclachlan changed the title 2.1.0 patch4 issue 127 2.1.0 patch8 issue 127 Oct 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cleanup/optimisation improvements to the efficiency of the code and/or project structure
Projects
None yet
1 participant