nowfocus 0.5.0__py3-none-any.whl → 0.5.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nowfocus/utils.py +4 -4
- {nowfocus-0.5.0.dist-info → nowfocus-0.5.1.dist-info}/METADATA +2 -2
- {nowfocus-0.5.0.dist-info → nowfocus-0.5.1.dist-info}/RECORD +7 -7
- {nowfocus-0.5.0.dist-info → nowfocus-0.5.1.dist-info}/WHEEL +0 -0
- {nowfocus-0.5.0.dist-info → nowfocus-0.5.1.dist-info}/entry_points.txt +0 -0
- {nowfocus-0.5.0.dist-info → nowfocus-0.5.1.dist-info}/licenses/LICENSE +0 -0
- {nowfocus-0.5.0.dist-info → nowfocus-0.5.1.dist-info}/top_level.txt +0 -0
nowfocus/utils.py
CHANGED
|
@@ -893,9 +893,9 @@ def get_total_time(id, category = 'tasks', start_time = None, end_time = None, g
|
|
|
893
893
|
|
|
894
894
|
def get_percent_time_focused():
|
|
895
895
|
|
|
896
|
-
rand_seconds = db_query("SELECT SUM(duration) as seconds FROM sessions WHERE sessions.task_id = 'Randomness' AND "+ sessions_timeframe_sql())[0]['seconds']
|
|
896
|
+
rand_seconds = force_number(db_query("SELECT SUM(duration) as seconds FROM sessions WHERE sessions.task_id = 'Randomness' AND "+ sessions_timeframe_sql())[0]['seconds'])
|
|
897
897
|
|
|
898
|
-
focus_seconds = db_query("SELECT SUM(duration) as seconds FROM sessions WHERE sessions.task_id != 'Randomness' AND "+ sessions_timeframe_sql())[0]['seconds']
|
|
898
|
+
focus_seconds = force_number(db_query("SELECT SUM(duration) as seconds FROM sessions WHERE sessions.task_id != 'Randomness' AND "+ sessions_timeframe_sql())[0]['seconds'])
|
|
899
899
|
|
|
900
900
|
percent = round(divide(focus_seconds,(focus_seconds + rand_seconds)) * 100)
|
|
901
901
|
|
|
@@ -905,9 +905,9 @@ def get_percent_time_focused():
|
|
|
905
905
|
|
|
906
906
|
def get_percent_time_priority():
|
|
907
907
|
|
|
908
|
-
priority_seconds = db_query("SELECT SUM(duration) as seconds FROM sessions WHERE sessions.task_id = 'Randomness' AND "+ sessions_timeframe_sql())[0]['seconds']
|
|
908
|
+
priority_seconds = force_number(db_query("SELECT SUM(duration) as seconds FROM sessions WHERE sessions.task_id = 'Randomness' AND "+ sessions_timeframe_sql())[0]['seconds'])
|
|
909
909
|
|
|
910
|
-
total_seconds = db_query("SELECT SUM(duration) as seconds FROM sessions WHERE "+ sessions_timeframe_sql())[0]['seconds']
|
|
910
|
+
total_seconds = force_number(db_query("SELECT SUM(duration) as seconds FROM sessions WHERE "+ sessions_timeframe_sql())[0]['seconds'])
|
|
911
911
|
|
|
912
912
|
percent = round(divide(priority_seconds,(total_seconds)) * 100)
|
|
913
913
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nowfocus
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: nowfocus: the open source task-tracking self-control panel.
|
|
5
5
|
Author: AltruistEnterprises
|
|
6
6
|
Project-URL: Homepage, https://www.nowfocus.org
|
|
@@ -173,7 +173,7 @@ Open nowfocus **Settings** from the indicator menu or tasks window and connect y
|
|
|
173
173
|
git clone https://codeberg.org/AltruistEnterprises/nowfocus.git
|
|
174
174
|
cd nowfocus
|
|
175
175
|
python3 -m venv .venv/nowfocus-build
|
|
176
|
-
source .venv/nowfocus-build/bin/activate
|
|
176
|
+
source .venv/nowfocus-build/bin/activate
|
|
177
177
|
pip install -r build-requirements.txt
|
|
178
178
|
python3 -m build
|
|
179
179
|
pipx install -e --force YOUR_INSTALL_PATH
|
|
@@ -11,7 +11,7 @@ nowfocus/settings.py,sha256=Ufabuqd90tTDlzXB68jsbDz7233CEMsjnmPzaTSEHLI,35150
|
|
|
11
11
|
nowfocus/styles.css,sha256=PG1SrLkwSSay8M2VKeRcE0UdK54ndsEDFnRLRkmP-9M,510
|
|
12
12
|
nowfocus/task_window.py,sha256=FgmjAIJqDJXAx2WkkAeTFSE3O0uednHSHh2j2v60Rdo,28478
|
|
13
13
|
nowfocus/user_idle_time.py,sha256=kPZ_bhoBdVMIBJXn2602FUfS4r-u8FnTq5Ze9D5QfHE,2363
|
|
14
|
-
nowfocus/utils.py,sha256=
|
|
14
|
+
nowfocus/utils.py,sha256=IyOKoFDRxXOugUJmfUmAatUxdlpTu1nMx88TtNOI1r0,50080
|
|
15
15
|
nowfocus/version_migrator.py,sha256=q8T1C8-DLOwUQUM5IPcMjPbVbsLTO4VsqADlAAXd9gw,628
|
|
16
16
|
nowfocus/connectors/activitywatch.py,sha256=QbkOmjIOiVwccWc2xhhePd0Abww5vEiVpCNjeqOyYGg,921
|
|
17
17
|
nowfocus/connectors/caldav.py,sha256=PeM_9yJC8W17L8Y5AyS75o6GfzTrPoMYKIvetND8T78,5089
|
|
@@ -52,9 +52,9 @@ nowfocus/icon/settings.svg,sha256=fgkGJouPPtZLxZn2nr_5pEp9MdhRSRaW9mtdxhJHDuQ,39
|
|
|
52
52
|
nowfocus/sound/bell-xylophone-g.mp3,sha256=1OBcRWvD87AGNcq1uZFR8HqG0nanJykImERfVDVxHD4,53891
|
|
53
53
|
nowfocus/sound/dinner-bell.mp3,sha256=hjjO0xqA4uXpYw9KLwwlBnrVfRhVq1K5OXzwlMXhRn4,113620
|
|
54
54
|
nowfocus/sound/xylophone-chord.mp3,sha256=gwgBSqhMt5PMzT5N03Z6TvDgipQZfnkEz_o81Rq5Z1U,131806
|
|
55
|
-
nowfocus-0.5.
|
|
56
|
-
nowfocus-0.5.
|
|
57
|
-
nowfocus-0.5.
|
|
58
|
-
nowfocus-0.5.
|
|
59
|
-
nowfocus-0.5.
|
|
60
|
-
nowfocus-0.5.
|
|
55
|
+
nowfocus-0.5.1.dist-info/licenses/LICENSE,sha256=fSJzoHs1EOCwEd7FIyokFeGEma7NKmTVEdHkCr5OIV4,35127
|
|
56
|
+
nowfocus-0.5.1.dist-info/METADATA,sha256=gtOx1Ra5RrMXl8xLq3gRW2zUHnefbR_1-WuVI4idMjk,6804
|
|
57
|
+
nowfocus-0.5.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
58
|
+
nowfocus-0.5.1.dist-info/entry_points.txt,sha256=RbYY19-irSoNVglNeNnL9D36cHft7aKsaEGEYoSH3pA,51
|
|
59
|
+
nowfocus-0.5.1.dist-info/top_level.txt,sha256=3uLd9BwmfarZwqVUxkSJuVwJ8qHzjThte8rt_UYG7tE,9
|
|
60
|
+
nowfocus-0.5.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|