Commit Graph

20 Commits

Author SHA1 Message Date
krateng 6171d1d2e1 Restored custom CSS file functionality, fix GH-135 2022-04-26 19:43:35 +02:00
krateng f359662cf3 No longer catching BaseExceptions 2022-04-24 19:41:55 +02:00
krateng 871b3d289d Moved monkey patching and globalconf to subpackage 2022-04-09 21:39:04 +02:00
krateng c378c9301d Minor fixes 2022-04-07 17:34:07 +02:00
krateng 9f8e691924 Moved image handling to top level module 2022-03-27 22:02:24 +02:00
krateng 631fd941ec Cleanup 2022-02-26 21:51:33 +01:00
krateng 349e0bb7ea Experimenting with DB connections in Jinja context 2022-02-26 21:07:48 +01:00
krateng 765ab493cb Added About page 2022-02-15 07:18:26 +01:00
krateng b50afe70ea Minor stuff 2022-01-09 21:03:28 +01:00
krateng e62c637aa0 Implemented initial support for importing scrobbles 2021-12-31 23:13:08 +01:00
krateng 1ec283f885 Added descriptions, fixed various things 2021-12-19 23:40:30 +01:00
krateng df22a595b8 Replaced settings calls in jinja files 2021-12-19 22:25:01 +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 90d6e67e97
Added ability to discourage CPU-heavy statistics 2020-10-05 03:15:06 +02:00
Krateng a6088ec7b7 Merged remaining references to two uri modules 2020-09-02 15:22:53 +02:00
Krateng ed1c595e20 Fixed time-dependent jinja context 2020-09-02 14:10:47 +02:00
Krateng e27a83bdc9 Reduced excessive whitespaces in jinja output 2020-09-01 00:35:14 +02:00
Krateng 6ca88685bf Replaced remaining htmlgenerator calls 2020-08-31 22:30:58 +02:00
Krateng d3c3c1fc4c Removed htmlmodules.py 2020-08-30 23:52:55 +02:00
Krateng 22ee6bf751 Moved jinja handling to submodule 2020-08-30 23:49:14 +02:00