Commit Graph

77 Commits

Author SHA1 Message Date
krateng 9ec52806c4 Made image resizing optional again to keep Docker image size down 2021-12-31 21:27:22 +01:00
krateng 3714aef878 Moved to slightly smaller image library 2021-12-31 20:21:14 +01:00
krateng 7f650e604e Moved to new api key handling 2021-12-25 02:22:57 +01:00
krateng 36c8f2654e Refactoring 2021-12-23 05:17:19 +01:00
krateng 1e70a523b2 Some minor linting and reorganizing 2021-12-22 20:37:14 +01:00
krateng 0f5ccd4645 Bugfixes 2021-12-22 05:45:26 +01:00
krateng 6ccbf68923 Replaced more settings calls, added missing settings 2021-12-19 22:18:42 +01:00
krateng 4186171b8f Replaced settings calls 2021-12-19 21:41:43 +01:00
krateng e597ba8504 More work on new settings 2021-12-14 21:19:15 +01:00
krateng 09e484021c Began work on new settings implementation 2021-12-12 18:43:24 +01:00
krateng 383c24511f Added ability to add custom css files, fix GH-79 2021-12-12 13:53:02 +01:00
krateng 59eaa2264a Minor cleanup of image functions 2021-12-09 22:58:43 +01:00
krateng a52c494e4b Moved endpoints back out of functions 2021-12-09 21:12:37 +01:00
krateng 56eaa8a793 Error handling details 2021-12-09 19:49:53 +01:00
krateng e110ed765f Removed superfluous temp endpoint stuff 2021-12-09 06:33:37 +01:00
krateng e901ca719f Improved error handling and output 2021-12-09 06:26:06 +01:00
krateng b4230c0ae6 Reorganized main loop and added temporary endpoints during DB build, GH-88 2021-12-09 05:49:25 +01:00
krateng d9cd546952 Moved main loop to function 2021-11-17 19:10:49 +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 a55343f442 Changed from LESS to CSS custom properties 2021-08-30 19:21:04 +02:00
krateng 8ebd27ab76 Added some output for errors in import and start 2021-05-24 15:04:22 +02:00
Krateng f44c3fecb2 Fixed more complicated user file references 2020-12-25 05:24:59 +01:00
Krateng 0818dccac4 Fixed most references to user files 2020-12-25 04:52:05 +01:00
Krateng 3cf0dd9767 Cleanup and version bump 2020-11-11 17:45:40 +01:00
Krateng c125cbc20d Fixes 2020-10-18 19:06:44 +02:00
Krateng c312608f2d
Cleaned some JS code 2020-09-25 16:03:51 +02:00
Krateng 5e93eb15f4
Changed html minifier 2020-09-23 16:26:54 +02:00
Krateng a462faf2bf
Changed redirect to more appropriate HTTP code 2020-09-06 18:19:48 +02:00
Krateng f4a563f080
Fixed redirect from old API endpoints, GH-31 2020-09-06 16:56:22 +02:00
Krateng 7c8b0dd7cb
Updated scrobbler 2020-09-04 16:36:35 +02: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 dad75dbbc2 Implemented aliases 2020-09-04 00:08:24 +02:00
Krateng a4812a66da First working version for new api achitecture 2020-09-03 20:04:16 +02:00
Krateng f61804b095 Added redirects for backwards compatibility 2020-09-02 22:24:35 +02:00
Krateng 8acf2ef503 Began factoring out API 2020-09-02 20:18:46 +02:00
Krateng a6088ec7b7 Merged remaining references to two uri modules 2020-09-02 15:22:53 +02:00
Krateng 01e555172f Added full html minification 2020-09-01 01:18:46 +02:00
Krateng 6acab324db Fixed dev mode css bug 2020-09-01 00:38:30 +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 363c431b93 Improved error page 2020-08-31 20:12:44 +02:00
Krateng b4f84625bc Added descriptions for HTTP errors 2020-08-31 04:36:39 +02:00
Krateng e5536ba384 Fixed error pages 2020-08-31 00:08:55 +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
Krateng a5edc113c8 Removed non-jinja support 2020-08-30 19:02:48 +02:00
Krateng 65861d4c41 Implemented compare in jinja 2020-08-30 18:53:02 +02:00
Krateng 7fc879f778 Implemented start page in jinja 2020-08-27 18:17:08 +02:00
Krateng bc5f11d499 Implemented tiled charts for jinja 2020-08-27 17:26:56 +02:00