Commit Graph

53 Commits

Author SHA1 Message Date
Lukáš Kucharczyk 0d20b543b0
Do not load the admin interface in prod
continuous-integration/drone/push Build is passing Details
2023-01-07 21:59:54 +01:00
Lukáš Kucharczyk 2939b4a515
Change to gunicorn
continuous-integration/drone/push Build is passing Details
2023-01-07 21:09:47 +01:00
Lukáš Kucharczyk 9dead362c1 Set STATIC_ROOT 2023-01-07 18:09:22 +01:00
Lukáš Kucharczyk 15ed6504b1
Order by timestamp_start by default 2023-01-05 23:30:13 +01:00
Lukáš Kucharczyk fd9bf8c026
Improve manual duration mark 2023-01-05 23:10:42 +01:00
Lukáš Kucharczyk 5172c38c16
Refactor the calculated_sum and manual_sum 2023-01-05 23:03:46 +01:00
Lukáš Kucharczyk 9c56ed4ce8
Make logging work 2023-01-05 22:14:51 +01:00
Lukáš Kucharczyk d00bb1cd06
Properly unset CSRF_TRUSTED_ORIGINS 2023-01-05 22:09:35 +01:00
Lukáš Kucharczyk bedfbb7f31
Remove cruft 2023-01-05 22:09:21 +01:00
Lukáš Kucharczyk f2b08cd1cd
Changes after linting 2023-01-05 22:05:26 +01:00
Lukáš Kucharczyk f7ec07994f
Improve duration handling in Session model 2023-01-05 22:01:15 +01:00
Lukáš Kucharczyk 03e89a92c7
Fix another duration formatting error 2023-01-05 22:00:51 +01:00
Lukáš Kucharczyk 76bf03b482
Improve session list 2023-01-05 22:00:08 +01:00
Lukáš Kucharczyk e6b5804e37
Update infra 2023-01-05 21:56:57 +01:00
Lukáš Kucharczyk 8efce77062
Improve newcomer experience
continuous-integration/drone/push Build is passing Details
2023-01-05 17:15:14 +01:00
Lukáš Kucharczyk 89be0c031b
Fix errors with empty database 2023-01-05 17:14:34 +01:00
Lukáš Kucharczyk 4e67735de8
Fix negative playtimes being considered positive 2023-01-05 17:13:45 +01:00
Lukáš Kucharczyk 85f52fc735
Fix checking duration when database is empty
continuous-integration/drone/push Build is passing Details
2023-01-05 16:33:32 +01:00
Lukáš Kucharczyk 34ce1e9b05
Set up tests, add tests for common.util.time, add %d
continuous-integration/drone/push Build is passing Details
2023-01-05 15:18:57 +01:00
Lukáš Kucharczyk fd7fc7c710
Annotate common.util.time.now
continuous-integration/drone/push Build is passing Details
2023-01-05 11:24:31 +01:00
Lukáš Kucharczyk 32f10e183e
Display total hours played on homepage
continuous-integration/drone/push Build is passing Details
2023-01-05 11:24:07 +01:00
Lukáš Kucharczyk fdb9aa8e84
Add format_duration to common.util.time 2023-01-05 11:17:01 +01:00
Lukáš Kucharczyk 4b45127335 Allow deleting sessions
continuous-integration/drone/push Build is passing Details
2023-01-04 20:28:07 +01:00
Lukáš Kucharczyk b8a15e43db Redirect after adding game/platform/purchase/session 2023-01-04 19:35:35 +01:00
Lukáš Kucharczyk a1309c3738 Fix display of duration_manual 2023-01-04 19:32:18 +01:00
Lukáš Kucharczyk 12cc9025a0 Fix display of duration_calculated, display durations less than a minute 2023-01-04 19:26:01 +01:00
Lukáš Kucharczyk 6fe960bc04 Make the "Finish now?" button on session list work 2023-01-04 19:19:49 +01:00
Lukáš Kucharczyk 61d2e65d83
Remove cruft
continuous-integration/drone/push Build is passing Details
2023-01-04 17:46:06 +01:00
Lukáš Kucharczyk 84dafe9223
Update generated CSS
continuous-integration/drone/push Build is passing Details
2023-01-04 17:29:19 +01:00
Lukáš Kucharczyk 59cf620ff3
Set version in the footer to fixed, fix main container height 2023-01-04 17:28:51 +01:00
Lukáš Kucharczyk 40810256aa
Improve session listing 2023-01-04 17:27:54 +01:00
Lukáš Kucharczyk b3842504af
Save calculated duration to database 2023-01-04 17:25:19 +01:00
Lukáš Kucharczyk bf61326c18
Make it possible to add a new platform 2023-01-04 17:24:54 +01:00
Lukáš Kucharczyk 4c642d97cb
Add homepage, link to it from the logo 2023-01-04 17:22:36 +01:00
Lukáš Kucharczyk d225856174
Set default version to "git-main" 2023-01-04 17:20:46 +01:00
Lukáš Kucharczyk 5c50e059e6
Hide navigation bar items
If there are no games/purchases/sessions,
hide the related navbar items
2023-01-04 17:19:40 +01:00
Lukáš Kucharczyk e4cd75d51f Use add.html for add_purchase 2023-01-03 22:04:36 +01:00
Lukáš Kucharczyk 89adf479f6 Include version in the footer
continuous-integration/drone/push Build is failing Details
2023-01-03 21:35:09 +01:00
Lukáš Kucharczyk 5f9ca5781f Properly set TIME_ZONE 2023-01-03 20:52:23 +01:00
Lukáš Kucharczyk 1a2f0b974d Set timezone from TZ env variable
continuous-integration/drone/push Build is passing Details
2023-01-03 20:41:26 +01:00
Lukáš Kucharczyk c6bb60bbbb Prevent error from empty timestamps
continuous-integration/drone/push Build is passing Details
2023-01-03 20:23:49 +01:00
Lukáš Kucharczyk 126e758172 Add trusted domain for CSRF
continuous-integration/drone/push Build is passing Details
2023-01-03 20:11:59 +01:00
Lukáš Kucharczyk 6e4db38ee4 Change session datetime display format
continuous-integration/drone/push Build is passing Details
2023-01-03 19:03:46 +01:00
Lukáš Kucharczyk aae05f23e7 Filtering sessions by purchase 2023-01-03 19:03:30 +01:00
Lukáš Kucharczyk cd35af471a Enable logging 2023-01-03 19:01:17 +01:00
Lukáš Kucharczyk d896a37779 Fix dark mode issues 2023-01-03 19:01:10 +01:00
Lukáš Kucharczyk 9d142126b1 Do not require timestamp_end, initialize db
continuous-integration/drone/push Build is failing Details
2023-01-03 00:13:26 +01:00
Lukáš Kucharczyk 63504a5768 Update CSS
continuous-integration/drone/push Build is passing Details
2023-01-02 19:37:49 +01:00
Lukáš Kucharczyk fe7aec1b87 Enable admin site 2023-01-02 19:36:22 +01:00
Lukáš Kucharczyk 3cdfb94fe2 Clean up migrations, do not include database 2023-01-02 19:36:03 +01:00