Mf0ddlZdZdZdZdZdZdZy)NcRd}tdD]}|jdd}|S)N curr-DWS.tmp r)opensplit)datelines ,/home/jiri/projects/dw-timer/process_time.pyr r s2 D^$"zz#q!" Kcg}t|D]}|j|jdd|jjddjd}t |ddz|d<t |ddz|d<t |d|d<|jt |t |d|dz dz }|d|dk7r|d z }t|dS) Nrr:i<i)rappendrstripintsumfloatround) time_file time_argsr time_sumworktimes r work_timer sIY(C+,::<%%c*1-33C8(1+&- (1+&+ (1+& X' (Yq\IaL01B6H|y|#D 1 r cxtjdd}t|jt ddS)NDWS_records.csvDate index_colDW timer)pdread_csvrlocr dfs r work_todayr)s/ && 9B  *A ..r ct|jvrw|jtd}t|turd}||jtdz }|dk(r|dk(rd}n'|dk7r|dk7r |dz|z}n|dk7r|dk(r |}n|dk(rd}||d|jt<|j dd y) N DescriptionNoner#rz; )r#r+rr ) index_label)r indexr&typestrto_csv)timedescr( actual_descs r add_recordr5 s vffTVn]3  C ' K tvy)) & TRZD F "trz%,D F "trzD !%d;BFF46NIIVI4r c@ tjdd}t |j vr(t d|jt dd}n t d }ttd ||y#t$rtjddg}YwxYw) Nrr r!r#r+)columnsz2Want to add another description to today? (curr.: z): zSession description: r) r$r%FileNotFoundError DataFramer r.inputr&r5r)r(r3s r user_inputr;2s> [[*f = vI FF46N= )J+*-/0,-y($3 > \\9m"< =>sA99!BBc tjdd}t|jdy#t$rtdYywxYw)Nrr r!zNo records yet)r$r%printtailr8r's r statsr@?s@ [[*f = bggaj    s14A  A )pandasr$r rr)r5r;r@r r rCs&  / 5$ 4 r