Unverified Commit 82e9f3c9 authored by emmapeel's avatar emmapeel
Browse files

please test this changes to give High priority to the pages when we add them...

please test this changes to give High priority to the pages when we add them to the 'core pages components list'. i believe in my intentions but i could not test this changes
parent 31898f0d
......@@ -31,6 +31,9 @@ def remove_components(components, component_list):
try:
component = tailsWeblate.subProject(component_filemask)
logger.info("Removing component from core pages: {}".format(component_filemask))
# now we decrease the priority of the component
component.priority = '100'
component.save()
component_list.components.remove(component)
except:
logger.exception("Removing compontent {} failed.".format(component_filemask))
......@@ -42,6 +45,10 @@ def add_components(components, component_list):
try:
component = tailsWeblate.subProject(component_filemask)
logger.info("Adding component to core pages: {}".format(component_filemask))
# now we increase the priority of the component
component.priority = '80'
component.save()
logger.info("Adding component to core pages: {}".format(component_filemask))
component_list.components.add(component)
except:
logger.exception("Adding compontent {} failed.".format(component_filemask))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment