Commit Graph

10 Commits

Author SHA1 Message Date
krateng bfc83fdbb0 Ported signal handling fix from 3.1 2022-04-24 20:47:17 +02:00
krateng 8db87bdbc5 Various fixes 2022-02-13 07:45:22 +01:00
Brian Pepple d1b598a32b
Refactoring (#83)
* Merge isinstance calls

* Inline variable that is immediately returned

* Replace set() with comprehension

* Replace assignment with augmented assignment

* Remove unnecessary else after guard condition

* Convert for loop into list comprehension

* Replace unused for index with underscore

* Merge nested if conditions

* Convert for loop into list comprehension

* Convert for loop into set comprehension

* Remove unnecessary else after guard condition

* Replace if statements with if expressions

* Simplify sequence comparison

* Replace multiple comparisons with in operator

* Merge isinstance calls

* Merge nested if conditions

* Add guard clause

* Merge duplicate blocks in conditional

* Replace unneeded comprehension with generator

* Inline variable that is immediately returned

* Remove unused imports

* Replace unneeded comprehension with generator

* Remove unused imports

* Remove unused import

* Inline variable that is immediately returned

* Swap if/else branches and remove unnecessary else

* Use str.join() instead of for loop

* Multiple refactors

- Remove redundant pass statement
- Hoist repeated code outside conditional statement
- Swap if/else to remove empty if body

* Inline variable that is immediately returned

* Simplify generator expression

* Replace if statement with if expression

* Multiple refactoring

- Replace range(0, x) with range(x)
- Swap if/else branches
- Remove unnecessary else after guard condition

* Use str.join() instead of for loop

* Hoist repeated code outside conditional statement

* Use str.join() instead of for loop

* Inline variables that are immediately returned

* Merge dictionary assignment with declaration

* Use items() to directly unpack dictionary values

* Extract dup code from methods into a new one
2021-10-19 14:58:24 +02:00
Krateng 755567549c Added makeshift pagination to api scrobbles list, fixes GH-52 2020-11-14 19:42:23 +01:00
Krateng e8c316f199
Fixed more bugs 2020-09-04 15:33:16 +02:00
Krateng 5cf7ca2e9b
Fixed issue with API redirect 2020-09-04 15:23:08 +02:00
Krateng e4139369fe
Various small issues 2020-09-04 12:18:34 +02:00
Krateng a6088ec7b7 Merged remaining references to two uri modules 2020-09-02 15:22:53 +02:00
Krateng d3c3c1fc4c Removed htmlmodules.py 2020-08-30 23:52:55 +02:00
Krateng 65861d4c41 Implemented compare in jinja 2020-08-30 18:53:02 +02:00