]> git.gag.com Git - fw/quantimotor/commitdiff
switch from PUT to POST for metadata method
authorBdale Garbee <bdale@gag.com>
Mon, 26 May 2025 02:59:58 +0000 (20:59 -0600)
committerBdale Garbee <bdale@gag.com>
Mon, 26 May 2025 02:59:58 +0000 (20:59 -0600)
ui/app.py

index 48bf7e71785a7d8f2f8ca95966e8cdf1417d36ba..6b0cccfa3cec9f5a5289b3f912de369b77a66140 100755 (executable)
--- a/ui/app.py
+++ b/ui/app.py
@@ -100,7 +100,7 @@ class App:
   @cherrypy.expose
   @cherrypy.tools.json_in()
   def metadata(self):
-    if cherrypy.request.method == 'PUT':
+    if cherrypy.request.method == 'POST':
       jsondata = cherrypy.request.json
       metadata_path = DATAPATH + "metadata.json"
       with open(metadata_path, 'w') as json_file: