Commit Graph

12 Commits

Author SHA1 Message Date
krateng 871b3d289d Moved monkey patching and globalconf to subpackage 2022-04-09 21:39:04 +02:00
krateng b7781d27c3 Aligned export and backup 2022-04-04 18:30:51 +02:00
krateng e31c0dce57 Reorganized tasks 2022-03-27 05:08:17 +02:00
krateng 78c50d24d9 Updated backup 2022-02-14 05:11:55 +01:00
krateng af569ae983 Added backup from web interface 2021-12-26 20:53:38 +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 f5f73d9223 Removed debug logging, fix GH-63 2020-12-25 17:11:09 +01:00
Krateng db80e1791a Fixed backup 2020-12-25 16:52:25 +01:00
Krateng 0818dccac4 Fixed most references to user files 2020-12-25 04:52:05 +01:00
Krateng 4d10276cc1 Added some log output 2020-06-20 18:15:02 +02:00
Krateng 398b737781 Fixed relative file hierarchy for backups 2020-06-20 18:04:20 +02:00
Krateng be79dc1888 Reorganized tasks 2020-06-20 17:52:26 +02:00