From f6ce62539e21a4ad1a158ff3bd257774d6fd7dfd Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Fri, 19 Apr 2024 13:15:20 -0400 Subject: [PATCH] fix api parameter (dict now, not sqlite3.Row) --- ntclient/services/api/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ntclient/services/api/__init__.py b/ntclient/services/api/__init__.py index 0be953b..a98e434 100644 --- a/ntclient/services/api/__init__.py +++ b/ntclient/services/api/__init__.py @@ -4,8 +4,6 @@ Created on Tue Feb 13 14:28:20 2024 @author: shane """ -import sqlite3 - import requests REQUEST_READ_TIMEOUT = 18 @@ -59,6 +57,6 @@ class ApiClient: return _res # TODO: move this outside class; support with host iteration helper method - def post_bug(self, bug: sqlite3.Row) -> requests.Response: + def post_bug(self, bug: dict) -> requests.Response: """Post a bug report to the developer.""" - return self.post("bug", dict(bug)) + return self.post("bug", bug) -- 2.52.0