]> Nutra Git (v2) - nutratech/cli.git/commitdiff
fix api parameter (dict now, not sqlite3.Row)
authorShane Jaroch <chown_tee@proton.me>
Fri, 19 Apr 2024 17:15:20 +0000 (13:15 -0400)
committerShane Jaroch <chown_tee@proton.me>
Fri, 19 Apr 2024 17:15:20 +0000 (13:15 -0400)
ntclient/services/api/__init__.py

index 0be953ba86cead369216efab9441cf1a86f21b82..a98e43447a1e5ac8cfe66b1443e6523e3ebb969e 100644 (file)
@@ -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)