Commit Graph

108 Commits

Author SHA1 Message Date
krateng 97fc38f919 Graceful handling of missing templates 2022-05-26 14:56:04 +02:00
krateng 0c948561a8 Added more generalized support for static user files, GH-135 2022-04-26 19:41:23 +02:00
krateng 6c5f08aa5a Removed special handling of css 2022-04-23 17:32:05 +02:00
krateng 28d43d00cb Merge branch 'master' into feature-restructure 2022-04-14 20:55:29 +02:00
krateng 7f9aa125af Enabled dual stack web server 2022-04-14 20:49:40 +02:00
krateng 4cffc9971d Merge branch 'master' into feature-restructure 2022-04-14 15:19:38 +02:00
krateng 4a8221f7a0 Added waitress warning interception 2022-04-13 18:00:39 +02:00
krateng 1c2062c512 Reenabled site generation profiling 2022-04-12 19:04:22 +02:00
krateng 871b3d289d Moved monkey patching and globalconf to subpackage 2022-04-09 21:39:04 +02:00
krateng 24dfa41ad9 Moved profiler to new dev subpackage 2022-04-09 21:20:48 +02:00
krateng bb68afee12 Moved main process control to __main__ 2022-04-09 20:55:50 +02:00
krateng acc08693b3 Various fixes 2022-04-04 16:17:42 +02:00
krateng b96f0cfc08 Various fixes 2022-04-03 16:09:50 +02:00
krateng 3275e4ec5d Experimenting with more thread limitations 2022-03-29 18:47:59 +02:00
krateng 04947cb97d Switched to explicit server execution 2022-03-27 22:03:46 +02:00
krateng a598ba96de Fixes 2022-03-27 22:02:50 +02:00
krateng 9f8e691924 Moved image handling to top level module 2022-03-27 22:02:24 +02:00
krateng e7663138c1 Fixed redirect loop 2022-03-26 06:01:05 +01:00
krateng 66bd69b49e Reworked image proxying / caching 2022-03-26 05:49:30 +01:00
krateng cc24d48e65 Added support for themes to procrastinate from actually needed work 2022-03-18 01:59:47 +01:00
krateng 4dd7cf69a7 Replaced pkg_resources with importlib 2022-03-10 05:31:41 +01:00
krateng 02e3f17594 Hopefully fixed image proxying 2022-03-06 04:20:26 +01:00
krateng 57142bc327 Moved page load performance measuring to profiler module 2022-03-06 03:17:40 +01:00
krateng bdbb644d8e Complete reorganization of process control 2022-03-06 01:58:33 +01:00
krateng 349e0bb7ea Experimenting with DB connections in Jinja context 2022-02-26 21:07:48 +01:00
krateng d3258a7e63 Bugfixes and Docker dev test script 2022-02-20 05:18:05 +01:00
krateng 6b05dde7c0 Added hosted font 2022-02-18 09:25:58 +01:00
krateng cf43a9221a Switched image caching to SQL 2022-02-17 07:35:05 +01:00
krateng b325fab698 Fixing and renaming 2022-01-10 05:05:54 +01:00
krateng 8ab42b844b Removed shutdown handling 2022-01-03 20:45:55 +01:00
krateng b8fc3db371 Removed duplicate jinja context 2021-12-31 23:12:18 +01:00
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