Skip to content

SuperTool changes "Last changed" even if nothing was changed #64

@HelgeGitHub

Description

@HelgeGitHub

I try to find and mark double notes after importing data from FTM2025 and after using the MultiMerge gramplet to merge double citations (all shared citations from FTM will be splitted into identical but separate citations in GEDCOM).
I use this script manipulating the note type, because I didn't find a way to set a bookmark/tag for those notes:

[Gramps SuperTool script file]
version=1

[title]
Double Notes4

[description]

[category]
Notes

[initial_statements]
counter = defaultdict(list)

[statements]
counter[text].append(gramps_id)
if (len(counter[text]) > 1) :  note.set_type(1)

[filter]

[expressions]
\[ids for text,ids in counter.items() if len(ids) > 1]

[scope]
selected

[unwind_lists]
True

[commit_changes]
True

[summary_only]
True

Afterwards the type of all than one of the as double found notes are changed. But also the field "Last changed" for selected/involved but not changed notes was changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions