Skip to content

Commit

Permalink
Update for GUI implementation
Browse files Browse the repository at this point in the history
- fix issue where DQC rulesets were not processing in graphic user interface
  • Loading branch information
davidtauriello committed Jun 10, 2024
1 parent 503078f commit a6c3bac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugin/xule/XuleProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def process_xule(rule_set, model_xbrl, cntlr, options, saved_taxonomies=None, is
fact_index_start = datetime.datetime.today()

# Create the processing context to build the index
xule_context = XuleRuleContext(global_context, cache_size_bytes=getattr(global_context.options, 'xule_cache_size_bytes', global_context.options.xule_cache_size_bytes))
xule_context = XuleRuleContext(global_context, cache_size_bytes=getattr(global_context.options, 'xule_cache_size_bytes', getattr(global_context.options, 'xule_cache_size_bytes', 1_000_000)))
# Build an index on the facts in the model.
xmi.index_model(xule_context)
# Clean up
Expand All @@ -116,7 +116,7 @@ def process_xule(rule_set, model_xbrl, cntlr, options, saved_taxonomies=None, is
global_context.message_queue.print("Time to calculated non instance constants: %s" % (constant_time))

# Determine if constants should be outputed
if getattr(global_context.options, "xule_output_constants") is not None:
if getattr(global_context.options, "xule_output_constants", None) is not None:
output_constant(global_context, cntlr)

if getattr(global_context.options, "xule_run", False) or is_validator:
Expand Down
2 changes: 1 addition & 1 deletion plugin/xule/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ def xuleValidate(val):
# valiation. In this case, there really wasn't a model to validate.
val.modelXbrl.modelManager.showStatus(_("Starting {} validation".format(xule_validator['name'])))
val.modelXbrl.info("DQC",_("Starting {} validation".format(xule_validator['name'])))
runXule(_cntlr, options, val.modelXbrl, xule_validator['map_name'])
runXule(_cntlr, options, val.modelXbrl, xule_validator['map_name'], True)
val.modelXbrl.info(xule_validator['name'],_("Finished {} validation".format(xule_validator['name'])))
val.modelXbrl.modelManager.showStatus(_("Finished {} validation".format(xule_validator['name'])))
else:
Expand Down
2 changes: 1 addition & 1 deletion plugin/xule/version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "30001",
"version": "30003",
"ruleset_version": "23752"
}

0 comments on commit a6c3bac

Please sign in to comment.