nowfocus 0.5.2__tar.gz → 0.5.3__tar.gz
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-0.5.2/src/nowfocus.egg-info → nowfocus-0.5.3}/PKG-INFO +1 -1
- {nowfocus-0.5.2 → nowfocus-0.5.3}/pyproject.toml +1 -1
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/utils.py +8 -7
- {nowfocus-0.5.2 → nowfocus-0.5.3/src/nowfocus.egg-info}/PKG-INFO +1 -1
- {nowfocus-0.5.2 → nowfocus-0.5.3}/LICENSE +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/README.md +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/setup.cfg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/__init__.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/__main__.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/conf.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/connectors/activitywatch.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/connectors/caldav.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/connectors/csv.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/connectors/psc_timetracker.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/connectors/taskwarrior.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/connectors/timewarrior.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/connectors/todo_template.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/connectors/todotxt.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/connectors/trello.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/connectors/txt.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/connectors/vikunja.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/desktop-extras/nowfocus.desktop +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/desktop-extras/nowfocus.png +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/desktop-extras/nowfocus.svg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/example-todo.txt +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/cancel.png +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/cancel.svg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/edit.png +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/edit.svg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/icon-0.svg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/icon-1.svg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/icon-2.svg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/icon-3.svg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/icon-4.svg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/icon-5.svg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/icon-6.svg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/icon-7.svg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/icon-8.svg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/icon-9.svg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/icon-red.svg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/icon.svg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/mark-done.png +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/mark-done.svg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/pause.png +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/pause.svg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/settings.png +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/icon/settings.svg +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/install.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/new_task_dialog.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/session_edit_dialog.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/session_options.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/sessions.csv +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/settings.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/sound/bell-xylophone-g.mp3 +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/sound/dinner-bell.mp3 +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/sound/xylophone-chord.mp3 +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/styles.css +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/task_window.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/user_idle_time.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus/version_migrator.py +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus.egg-info/SOURCES.txt +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus.egg-info/dependency_links.txt +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus.egg-info/entry_points.txt +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus.egg-info/requires.txt +0 -0
- {nowfocus-0.5.2 → nowfocus-0.5.3}/src/nowfocus.egg-info/top_level.txt +0 -0
|
@@ -661,20 +661,20 @@ def db_cleanup(widget = None):
|
|
|
661
661
|
ids = []
|
|
662
662
|
# print('ids_sql',ids_sql)
|
|
663
663
|
for id, todo in conf.user['todolists'].items():
|
|
664
|
-
|
|
665
|
-
ids.append(id)
|
|
664
|
+
ids.append(id)
|
|
666
665
|
|
|
667
666
|
# Old save
|
|
668
667
|
# print("Active todolist ids",ids)
|
|
669
668
|
|
|
670
669
|
# Delete unlinked tasks
|
|
671
|
-
|
|
670
|
+
db_query('DELETE FROM tasks WHERE todolist NOT IN (%s)' % ','.join('?'*len(ids)),ids)
|
|
671
|
+
|
|
672
672
|
# print(len(orphaned_tasks),"orphaned_tasks",orphaned_tasks)
|
|
673
673
|
# orphaned_tasks = db_query('SELECT id, extended_label, todolist FROM tasks WHERE todolist NOT IN (%s)' % ','.join('?'*len(ids)),ids)
|
|
674
674
|
# print(len(orphaned_tasks),"orphaned_tasks",orphaned_tasks)
|
|
675
675
|
|
|
676
676
|
# Delete unlinked lists
|
|
677
|
-
|
|
677
|
+
db_query('DELETE FROM lists WHERE todolist NOT IN (%s)' % ','.join('?'*len(ids)),ids)
|
|
678
678
|
|
|
679
679
|
# orphaned_lists = db_query('SELECT id, extended_label, todolist FROM lists WHERE todolist NOT IN (%s)' % ','.join('?'*len(ids)),ids)
|
|
680
680
|
# print("orphaned_lists",orphaned_lists)
|
|
@@ -1043,10 +1043,11 @@ def get_times(task):
|
|
|
1043
1043
|
|
|
1044
1044
|
|
|
1045
1045
|
def db_deactivate_todo(id):
|
|
1046
|
-
dbg("deactivating todolist: "
|
|
1046
|
+
dbg("deactivating todolist: ",id, s='todoloading')
|
|
1047
1047
|
# Delete inactive todo items (except where there are sessions for them)
|
|
1048
|
-
db_query("DELETE FROM tasks WHERE todolist = ? AND id NOT IN (SELECT task_id FROM sessions)",(id,))
|
|
1049
|
-
db_query("DELETE FROM lists WHERE todolist = ? AND id NOT IN (SELECT parent_id FROM tasks)",(id,))
|
|
1048
|
+
# db_query("DELETE FROM tasks WHERE todolist = ? AND id NOT IN (SELECT task_id FROM sessions)",(id,))
|
|
1049
|
+
# db_query("DELETE FROM lists WHERE todolist = ? AND id NOT IN (SELECT parent_id FROM tasks)",(id,))
|
|
1050
|
+
|
|
1050
1051
|
db_query("UPDATE lists SET status = -1 WHERE todolist = ?",(id,))
|
|
1051
1052
|
db_query("UPDATE tasks SET status = -1 WHERE todolist = ?",(id,))
|
|
1052
1053
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|