1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00
maloja/maloja
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
..
apis Refactoring (#83) 2021-10-19 14:58:24 +02:00
data_files Added ability to set own time format, GH-82 2021-10-14 18:14:03 +02:00
jinjaenv Refactoring (#83) 2021-10-19 14:58:24 +02:00
proccontrol Refactoring (#83) 2021-10-19 14:58:24 +02:00
thirdparty Refactoring (#83) 2021-10-19 14:58:24 +02:00
utilities Refactoring (#83) 2021-10-19 14:58:24 +02:00
web Changed from LESS to CSS custom properties 2021-08-30 19:21:04 +02:00
__init__.py Added pkginfo 2020-03-06 17:06:19 +01:00
__pkginfo__.py Version bump due to faulty upload 2021-10-14 18:15:24 +02:00
cleanup.py Refactoring (#83) 2021-10-19 14:58:24 +02:00
database_packed.py Created first experimental Jinja templates 2020-05-17 01:58:24 +02:00
database.py Refactoring (#83) 2021-10-19 14:58:24 +02:00
globalconf.py Removed debug logging, fix GH-63 2020-12-25 17:11:09 +01:00
malojatime.py Refactoring (#83) 2021-10-19 14:58:24 +02:00
malojauri.py Refactoring (#83) 2021-10-19 14:58:24 +02:00
monkey.py Fixed another time bug 2021-01-17 03:09:48 +01:00
server.py Refactoring (#83) 2021-10-19 14:58:24 +02:00