ovos-yaml-editor 0.0.2__tar.gz → 0.0.3a1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ovos-yaml-editor might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ovos-yaml-editor
3
- Version: 0.0.2
3
+ Version: 0.0.3a1
4
4
  Summary: Simple YAML editor for OpenVoiceOS with FastAPI backend
5
5
  Home-page: https://github.com/OpenVoiceOS/ovos-yaml-editor
6
6
  Classifier: Programming Language :: Python :: 3
@@ -178,7 +178,7 @@ async def get_editor(credentials: HTTPBasicCredentials = Depends(authenticate)):
178
178
  <div id="editor"></div>
179
179
 
180
180
  <footer>
181
- <p>© 2025 OpenVoiceOS. <a href="https://github.com/OpenVoiceOS/ovos-yaml-editor">GitHub</a> | <a href="https://github.com/OpenVoiceOS/ovos-yaml-editor/blob/main/LICENSE">Apache 2.0 License</a></p>
181
+ <p>© 2025 OpenVoiceOS. <a href="https://github.com/OpenVoiceOS/ovos-yaml-editor">GitHub</a> | <a href="https://github.com/OpenVoiceOS/ovos-yaml-editor/blob/dev/LICENSE">Apache 2.0 License</a></p>
182
182
  </footer>
183
183
 
184
184
  <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.5/codemirror.min.js"></script>
@@ -317,6 +317,9 @@ async def save_config_post(request: Request, credentials: HTTPBasicCredentials =
317
317
  # only save to file/memory any value that differs from default config
318
318
  if v2 is None or v != v2:
319
319
  conf[k] = memory_config[k] = v
320
+ # if value changed back to default, remove it from user conf
321
+ elif v == v2 and k in conf:
322
+ conf.pop(k)
320
323
  conf.store()
321
324
  return {"success": True}
322
325
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  # START_VERSION_BLOCK
2
2
  VERSION_MAJOR = 0
3
3
  VERSION_MINOR = 0
4
- VERSION_BUILD = 2
5
- VERSION_ALPHA = 0
4
+ VERSION_BUILD = 3
5
+ VERSION_ALPHA = 1
6
6
  # END_VERSION_BLOCK
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ovos-yaml-editor
3
- Version: 0.0.2
3
+ Version: 0.0.3a1
4
4
  Summary: Simple YAML editor for OpenVoiceOS with FastAPI backend
5
5
  Home-page: https://github.com/OpenVoiceOS/ovos-yaml-editor
6
6
  Classifier: Programming Language :: Python :: 3