Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gvellut committed Jun 13, 2023
1 parent b342b56 commit cf4ef3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions jncep/cli/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ async def add_track_series(jnc_url, email, password):
is_flag=True,
help="Flag to delete series not found on the sync source",
)
# from the beginning: so that when update is run after => update from the beginning
@click.option(
"-b",
"--beginning",
Expand Down
2 changes: 2 additions & 0 deletions jncep/cli/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ async def update_tracked(
# track sync --delete
# update

# new series will be updated from the beginning
console.info("[important]update --sync[/]")
# keep the params to the update command
params_forward = {}
Expand All @@ -124,6 +125,7 @@ async def update_tracked(
partial(ctx.invoke, update_tracked, **params_forward)
)

# prune series that are not followed anymore
console.info("[important]track sync --delete[/]")
await trio.to_thread.run_sync(
partial(
Expand Down

0 comments on commit cf4ef3f

Please sign in to comment.