1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00
Commit Graph

59 Commits

Author SHA1 Message Date
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
Krateng
3a4769cfb2 Some cleanup 2020-08-23 03:53:03 +02:00
Krateng
3e6bcc45d5 Implemented pagination for jinja 2020-08-22 22:26:28 +02:00
Krateng
4113d1761e Aliases, debug info and robots 2020-08-21 18:06:16 +02:00
Krateng
833048440c Merge branch 'backend' 2020-08-18 05:04:34 +02:00
Krateng
7f3b7031ac Updated Readme 2020-08-18 04:59:34 +02:00
Krateng
6050e26f7a Added basic top info structure to base template 2020-08-17 18:16:09 +02:00
Krateng
9a1bc8be03 Fixed error page 2020-08-17 17:14:38 +02:00
Krateng
cb7a6d2241 Listenbrainz protocol should now properly work with batch scrobbles from Pano 2020-08-06 18:57:23 +02:00
Krateng
c44e14d0a6 Updated admin mode 2020-07-29 21:19:29 +02:00
Krateng
56cc06d905 Implemented proper authentication for backend 2020-07-29 15:52:01 +02:00
Krateng
c166620d5f Properly implemented cache debug logging 2020-05-29 16:45:41 +02:00
Krateng
2cd5472751 Completed artist and track jinja templates 2020-05-17 14:16:14 +02:00
Krateng
b3f4fc1246 Created first experimental Jinja templates 2020-05-17 01:58:24 +02:00
Krateng
1a64641fe6 Organized PYHP files 2020-05-13 22:57:55 +02:00
Krateng
c518627670 Removed some log output 2020-01-10 22:51:50 +01:00
Krateng
e2f627a1a0 Minor improvements 2019-12-22 22:01:01 +01:00
Krateng
582c4c8814 Added pyhp page for artist charts 2019-12-19 15:30:13 +01:00
Krateng
e85049af64 Fixed oversights 2019-12-15 15:43:56 +01:00