Skip to content

Command timetrace edit record <key> does not rename file #89

@joshuaherrera

Description

@joshuaherrera

Similar to issue #81 , the timetrace edit record <key> command does not rename the file. This shouldn't be an issue when we pass either the --plus or --minus flags, since these edit the end times, but without those flags, the user can edit the json file and potentially change the start time, which is the key for a record. The documentation recommends using timetrace list records in conjunction with the timetrace edit record command, but this does not work as intended if a flag is not used.

The code expects the key to correspond to the filename, but since it is not changed, the file is not found.

In the image, I demonstrate the above with record 1. Note that this also occurs when use12Hours is false.
editrecord

I'd imagine the solution would be similar to those mentioned in issue #81 .

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions