timetrack/cli.py
def append(ctx, entry, time):
    """Append an amount of time to timetrack log"""
    
    if time == "live":
        time = live_time(f"Continuing work on entry {entry}")
        
        print("Adding {} minutes to entry {}".format(parse_time(time), entry))
        
    driver = ctx.obj['DRIVER']
    
    driver.update_entry(entry, time)
Append an amount of time to timetrack log
Append an amount of time to timetrack log
Append an amount of time to timetrack log
def append(ctx, entry, time):
    if time == "live":
        time = live_time(f"Continuing work on entry {entry}")
        print("Adding {} minutes to entry {}".format(parse_time(time), entry))
    driver = ctx.obj['DRIVER']
    driver.update_entry(entry, time)
def append ( ctx , entry , time ) : if time == "live" : time = live_time ( f"Continuing work on entry {entry}" ) print ( "Adding {} minutes to entry {}" . format ( parse_time ( time ) , entry ) ) driver = ctx . obj [ 'DRIVER' ] driver . update_entry ( entry , time )
Append an amount of time to timetrack log
Append an amount of time to timetrack log
"""Append an amount of time to timetrack log"""
ctx
entry
time