From: Shane Jaroch Date: Fri, 19 Apr 2024 17:15:20 +0000 (-0400) Subject: fix api parameter (dict now, not sqlite3.Row) X-Git-Tag: v0.2.8.dev2~20 X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=f6ce62539e21a4ad1a158ff3bd257774d6fd7dfd;p=nutratech%2Fcli.git fix api parameter (dict now, not sqlite3.Row) --- 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)