Commit Graph

28 Commits

Author SHA1 Message Date
krateng ba96c8e14f More fixes 2021-12-20 00:15:22 +01:00
krateng 4186171b8f Replaced settings calls 2021-12-19 21:41:43 +01:00
krateng 98ec5885e7 Minor improvements 2021-12-11 20:40:52 +01:00
krateng 86f8d5a3eb Cleanup 2021-12-11 04:56:53 +01:00
krateng a85ec372f2 Simplified timestamp desc further 2021-12-10 22:20:36 +01:00
krateng 05460f97b7 Refactored timestamp descriptions 2021-12-10 22:01:29 +01:00
krateng 3b8723790a Refactored time objects 2021-12-10 21:31:09 +01:00
krateng acace4d04a Cleaned up time range handling 2021-12-10 21:08:44 +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 d3e45b138b Added ability to set own time format, GH-82 2021-10-14 18:14:03 +02:00
Krateng 6199fc8204 Why do these things happen 2021-01-24 01:44:04 +01:00
Krateng 06c32e205e This time for real tho 2021-01-15 20:09:34 +01:00
Krateng 2a5d9498d1 Restored functionality for older Python versions 2021-01-15 19:57:53 +01:00
Krateng 5006ad2bf1 Version bump 2021-01-15 18:45:42 +01:00
Krateng bcd62c16fa Fixed time issues 2021-01-15 18:39:52 +01:00
Krateng 4d06a327e9 Happy New Year! 2021-01-01 03:10:36 +01:00
krateng 8b5254e4c7
Merge pull request #58 from FoxxMD/displayLocalTimezone
Display full datetime using system timezone
2020-12-13 03:08:35 +01:00
Krateng 64bb235011 Fixed daily execution of tasks for different timezones 2020-12-13 02:18:46 +01:00
FoxxMD 75d8251a29 Use system timezone as TIMEZONE setting default 2020-12-01 15:48:56 -05:00
Krateng 74dc54862e Added progress bar to database build, GH-54 2020-12-01 20:32:29 +01:00
Krateng e6535eb6bc Adjusted predefined ranges to consider timezone 2020-12-01 19:19:01 +01:00
Krateng 951f6bb562 Timeranges should now consider timezone 2020-12-01 19:12:20 +01:00
Krateng e475b0c716 Added setting for timezone 2020-12-01 18:59:39 +01:00
FoxxMD c87dc32455 Display full datetime using system timezone
When displaying a full datetime to the user use the system timezone instead of hardcoded UTC
2020-11-30 14:02:03 -05:00
Krateng e8a87cb8a5
Fixed bug in readable uri timerange keys 2020-09-04 18:24:55 +02:00
Krateng 35616212ff
Various fixes 2020-09-04 13:59:04 +02:00
Krateng 44a2739a3b Implemented pulse and performance in jinja 2020-08-30 03:08:45 +02:00
Krateng 55621ef4ef Refactored into Python Package 2019-11-24 21:47:24 +01:00