Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ def save_session(self, groups_json, prefs_json):
print(f"[Api] Save Error: {e}")
return False

def load_session(self, filename):
print(f"[Api] Loading session: {filename}")
try:
data = self.session_manager.load_session(filename)
return data
except Exception as e:
print(f"[Api] Load Error: {e}")
return None

if __name__ == "__main__":
api = Api()

Expand Down
2 changes: 1 addition & 1 deletion tests/saved_sessions/test_session.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"timestamp": "2026-01-09T12:26:45.250661",
"timestamp": "2026-01-10T03:13:56.284795",
"groups": [
{
"id": 1,
Expand Down