Skip to content

Commit

Permalink
refactor: do self-code-review
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpatiiuk committed Jan 20, 2025
1 parent 33f0cf1 commit a4dd9d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions specifyweb/specify/sp7_build_datamodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
from django.conf import settings # type: ignore
from django.utils.translation import gettext as _

from specifyweb.specify.config import sp6_dependent_fields, sp6_system_tables

logger = logging.getLogger(__name__)

TAB1 = ' '
Expand Down
4 changes: 2 additions & 2 deletions specifyweb/specify/tree_extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def synonymize(node, into, agent):
{"tree" : "Taxon",
"localizationKey" : "nodeSynonymizeToSynonymized",
"node" : format_tree_node(to_save),
"parent" : format_tree_node(new_parent)})
"parent" : format_tree_node(into)})
node.accepted_id = target.id
node.isaccepted = False
node.save()
Expand All @@ -350,7 +350,7 @@ def synonymize(node, into, agent):
{"tree" : "Taxon",
"localizationKey" : "nodeSynonimizeWithChildren",
"node" : format_tree_node(to_save),
"parent" : format_tree_node(new_parent)})
"parent" : format_tree_node(into)})
node.acceptedchildren.update(**{node.accepted_id_attr().replace('_id', ''): target})
#assuming synonym can't be synonymized
mutation_log(TREE_SYNONYMIZE, node, agent, node.parent,
Expand Down

0 comments on commit a4dd9d3

Please sign in to comment.