From 408c105acdd2cbe30089aea9e1560c0de26a0e64 Mon Sep 17 00:00:00 2001 From: james-strauss-uwa Date: Wed, 15 May 2024 13:56:11 +0800 Subject: [PATCH] Updated some attributes in the modelData part of teh output palette. Changed eagleVersion -> generatorVersion, eagleCommitHash -> generatorCommitHash, added generatorName. --- dlg_paletteGen/support_functions.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/dlg_paletteGen/support_functions.py b/dlg_paletteGen/support_functions.py index 03a1533..3fe191b 100644 --- a/dlg_paletteGen/support_functions.py +++ b/dlg_paletteGen/support_functions.py @@ -686,6 +686,12 @@ def constructPalette(): """ Constructing the structure of a palette. """ + + from .cli import ( + NAME, + VERSION + ) + palette = { "modelData": { "filePath": "", @@ -695,9 +701,10 @@ def constructPalette(): "repoService": "GitHub", "repoBranch": "master", "repo": "ICRAR/EAGLE_test_repo", - "eagleVersion": "", - "eagleCommitHash": "", - "schemaVersion": "AppRef", + "generatorVersion": VERSION, + "generatorCommitHash": "", + "generatorName": NAME, + "schemaVersion": "OJS", "readonly": True, "repositoryUrl": "", "commitHash": "",