radboy 0.0.773__py3-none-any.whl → 0.0.774__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of radboy might be problematic. Click here for more details.
- radboy/DB/ExerciseTracker.py +21 -13
- radboy/DB/__pycache__/ExerciseTracker.cpython-313.pyc +0 -0
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- radboy/code.png +0 -0
- {radboy-0.0.773.dist-info → radboy-0.0.774.dist-info}/METADATA +1 -1
- {radboy-0.0.773.dist-info → radboy-0.0.774.dist-info}/RECORD +9 -9
- {radboy-0.0.773.dist-info → radboy-0.0.774.dist-info}/WHEEL +0 -0
- {radboy-0.0.773.dist-info → radboy-0.0.774.dist-info}/top_level.txt +0 -0
radboy/DB/ExerciseTracker.py
CHANGED
|
@@ -41,7 +41,7 @@ class Exercise(BASE,Template):
|
|
|
41
41
|
__tablename__="Exercise"
|
|
42
42
|
exid=Column(Integer,primary_key=True)
|
|
43
43
|
Name=Column(String,default=f'Generic Exercise Name [{nanoid.generate()}]')
|
|
44
|
-
Note=Column(String,default='')
|
|
44
|
+
Note=Column(String,default=json.dumps({'completed':0}))
|
|
45
45
|
Reps=Column(Integer,default=1) # 8 reps of 30 repcounts NAME
|
|
46
46
|
RepCount=Column(Integer,default=30) #30 times rep
|
|
47
47
|
CurrentRep=Column(Integer,default=0)
|
|
@@ -255,10 +255,6 @@ class ExerciseTracker:
|
|
|
255
255
|
'default':'',
|
|
256
256
|
'type':'string',
|
|
257
257
|
},
|
|
258
|
-
'Note':{
|
|
259
|
-
'default':'',
|
|
260
|
-
'type':'string',
|
|
261
|
-
},
|
|
262
258
|
}
|
|
263
259
|
routine=FormBuilder(data=data_r)
|
|
264
260
|
while True:
|
|
@@ -280,10 +276,18 @@ class ExerciseTracker:
|
|
|
280
276
|
nt=gethpv(routine)
|
|
281
277
|
#print(nt)
|
|
282
278
|
nt+=1
|
|
283
|
-
rts=Routine(Name=routine.get("Name"),Note=
|
|
279
|
+
rts=Routine(Name=routine.get("Name"),Note=json.dumps({'completed':0}),exid=i.exid,precedence=nt,doe=doe,dtoe=dtoe,toe=toe)
|
|
284
280
|
session.add(rts)
|
|
285
281
|
session.commit()
|
|
282
|
+
session.refresh(rts)
|
|
283
|
+
'''
|
|
284
|
+
self.clearRoutine(rts)
|
|
286
285
|
#print(gethpv(routine))
|
|
286
|
+
rout[num].Note=json.dumps({'completed':0})
|
|
287
|
+
session.commit()
|
|
288
|
+
session.flush()
|
|
289
|
+
session.refresh(rout[num])
|
|
290
|
+
'''
|
|
287
291
|
else:
|
|
288
292
|
pass
|
|
289
293
|
def reset_routine(self):
|
|
@@ -535,7 +539,7 @@ class ExerciseTracker:
|
|
|
535
539
|
name,note,exid=ex.Name,ex.Note,ex.exid
|
|
536
540
|
else:
|
|
537
541
|
name,note,exid="NotFound?","NotFound?","NotFound?"
|
|
538
|
-
msg=f"{Fore.light_yellow}{num}/{Fore.light_red}{ct}{Style.reset}{Fore.light_steel_blue} -> {r.Name} (roid={r.roid}) Exercise(Name='{name}',Note='{note}',exid='{exid}'){Style.reset}"
|
|
542
|
+
msg=f"{Fore.light_yellow}{num}/{Fore.light_red}{ct}{Style.reset}{Fore.light_steel_blue} -> {r.Name} (roid={r.roid},exid={exid}) Exercise(Name='{name}',Note='{note}',exid='{exid}'){Style.reset}"
|
|
539
543
|
print(msg)
|
|
540
544
|
if returnable:
|
|
541
545
|
lite.append(r.Name)
|
|
@@ -548,21 +552,25 @@ class ExerciseTracker:
|
|
|
548
552
|
|
|
549
553
|
def useRoutine(self,reset_only=False,reset_note=False):
|
|
550
554
|
try:
|
|
555
|
+
|
|
551
556
|
logMe=Prompt.__init2__(None,func=FormBuilderMkText,ptext="Log a comment in HealthLog(hl[default=True/Yes])?",helpText="yes or no/boolean",data="boolean")
|
|
552
557
|
if logMe is None:
|
|
553
558
|
return
|
|
554
559
|
elif logMe in ['d',]:
|
|
555
560
|
logMe=True
|
|
556
|
-
|
|
561
|
+
|
|
557
562
|
start=datetime.now()
|
|
558
563
|
rs=self.viewRoutine(returnable=True)
|
|
559
564
|
if rs == None:
|
|
560
565
|
return
|
|
566
|
+
|
|
567
|
+
|
|
561
568
|
whichList=Prompt.__init2__(None,func=FormBuilderMkText,ptext="Which Routine would you like to use?",helpText="first number of a line",data="list")
|
|
562
569
|
if whichList in ['d']:
|
|
563
570
|
whichList=[]
|
|
564
571
|
elif whichList in [None,]:
|
|
565
572
|
return
|
|
573
|
+
|
|
566
574
|
for which in whichList:
|
|
567
575
|
try:
|
|
568
576
|
which=int(which)
|
|
@@ -600,10 +608,10 @@ class ExerciseTracker:
|
|
|
600
608
|
|
|
601
609
|
if reset_note:
|
|
602
610
|
for num, i in enumerate(rout):
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
611
|
+
rout[num].Note=json.dumps({'completed':0})
|
|
612
|
+
session.commit()
|
|
613
|
+
session.flush()
|
|
614
|
+
session.refresh(rout[num])
|
|
607
615
|
if reset_only:
|
|
608
616
|
#resume
|
|
609
617
|
if logMe:
|
|
@@ -750,7 +758,7 @@ class ExerciseTracker:
|
|
|
750
758
|
{Fore.orange_red_1}DANGER{Fore.grey_70}
|
|
751
759
|
** rst rtn,reset routine,reset-routine - delete all routines {Fore.light_red}ONLY{Fore.grey_70}
|
|
752
760
|
** rst ex,reset exercises,reset-exercises - delete all exercises {Fore.light_red}ONLY{Fore.grey_70}
|
|
753
|
-
** rst a,reset all,reset-all - delete {Fore.orange_red_1}<<{Fore.medium_violet_red}<<{Fore.light_cyan}Everything{Fore.medium_violet_red}>>{Fore.orange_red_1}{Fore.cyan} in the ExerciseTracker!
|
|
761
|
+
** rst a,reset all,reset-all - delete {Fore.dark_goldenrod}<{Fore.orange_red_1}<<{Fore.medium_violet_red}<<{Fore.light_cyan}Everything{Fore.medium_violet_red}>>{Fore.orange_red_1}>>{Fore.dark_goldenrod}> {Fore.cyan} in the ExerciseTracker!
|
|
754
762
|
{Fore.light_salmon_1}WARNING{Fore.grey_70}
|
|
755
763
|
ignore '**' ; this is not part of the cmd; it's just a bullet point representation.
|
|
756
764
|
{Style.reset}'''
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.774'
|
|
Binary file
|
radboy/code.png
CHANGED
|
Binary file
|
|
@@ -5,12 +5,12 @@ radboy/Holidays.txt,sha256=y-JZPihh5iaWKxMIHNXD39yVuVmf1vMs4FdNDcg0f1Y,3114
|
|
|
5
5
|
radboy/InventoryGlossary.txt,sha256=018-Yqca6DFb10jPdkUY-5qhkRlQN1k3rxoTaERQ-LA,91008
|
|
6
6
|
radboy/RecordMyCodes.py,sha256=h30zoTqt-XLt_afDPlxMxBiKKwmKi3N-yAuldNCqXUo,41476
|
|
7
7
|
radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
|
|
8
|
-
radboy/__init__.py,sha256=
|
|
8
|
+
radboy/__init__.py,sha256=V0Z55cz9XAelg5fs3RKFO1fNFpFmzZvWESHsmOfPBCc,17
|
|
9
9
|
radboy/api_key,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
radboy/case-export-2024-05-14-13-10-00.672971.xlsx,sha256=Wd592d_VLFmfUI9KKKSVjNwjV91euc1T7ATyvwvUhlg,5431
|
|
11
11
|
radboy/case-export-2024-05-14-13-13-22.540614.xlsx,sha256=OnGrhmScHfGp_mVaWW-LNMsqrQgyZDpiU3wV-2s3U5Q,5556
|
|
12
12
|
radboy/changelog.txt,sha256=_73e-OcHDecsK-eHEE45T84zHbUZ8Io3FzvLNwHPdoY,3714
|
|
13
|
-
radboy/code.png,sha256=
|
|
13
|
+
radboy/code.png,sha256=gNzkHVCy0Lg18t2eB88jceaDZe_CEHyXYkJvlGqkRno,312
|
|
14
14
|
radboy/db.csv,sha256=hpecu18LtCow5fH01queqWgqPByR628K7pLuEuLSuj4,19
|
|
15
15
|
radboy/dictionary.txt,sha256=EJlEazI8RfTDX_Uzd6xnXLm9IjU5AEq6HVDwi42Y4_4,195680
|
|
16
16
|
radboy/export.csv,sha256=YIU8c34enlknKMzKwzfQEN8e0mUdyW8m6O8GvgUQ9do,41015
|
|
@@ -82,7 +82,7 @@ radboy/DB/CoinCombo.py,sha256=NJfTmx3XYgS41zkAyyO2W6de1Mj3rWsCWqU4ikHfvJI,13604
|
|
|
82
82
|
radboy/DB/DatePicker.py,sha256=B75mDtXQrkHRCpoU9TJsaBVvkK37ykMaJyaiqGOo4dM,18334
|
|
83
83
|
radboy/DB/DisplayItemDb.py,sha256=uVvrNyFyBuKvrw-BEPXKYvfa-QWyFN5ahESi2l6vUUA,52046
|
|
84
84
|
radboy/DB/EstimatedPayCalendarWorkSheet.txt,sha256=GOjRSmGxFoNTdAnpPe2kGv7CkXDrh0Mee01HslamGbo,17173
|
|
85
|
-
radboy/DB/ExerciseTracker.py,sha256=
|
|
85
|
+
radboy/DB/ExerciseTracker.py,sha256=hs_RG7YWFsu8KYkMe2PIKtTyxl9MzbnWXuTCXffF3K8,38219
|
|
86
86
|
radboy/DB/LetterWriter.py,sha256=0B14GB-hJK2Xf_TFASriOELFygiI1LwkSb__R3tUiU0,2631
|
|
87
87
|
radboy/DB/OrderedAndRxd.py,sha256=v_vrTOiTDhKqT5KErK6MOG_u4Nt7ug2MoLTHvAnm88M,19450
|
|
88
88
|
radboy/DB/PayDay.py,sha256=H2kPGvBCDkMOz7lbxQhYtUt_oAInpxi37Q6MFrah98I,8710
|
|
@@ -114,7 +114,7 @@ radboy/DB/__pycache__/DatePicker.cpython-313.pyc,sha256=jV__j5ER1oshsenGPynR0UNH
|
|
|
114
114
|
radboy/DB/__pycache__/DisplayItemDb.cpython-312.pyc,sha256=n2nRfavATZBSa7rBgH39pd11Ka-nUfGHVzr-R9KO7_Q,63121
|
|
115
115
|
radboy/DB/__pycache__/DisplayItemDb.cpython-313.pyc,sha256=M4jujGXKVqYObZKQipamkTpw68YhEWLqBmywtPgnG-A,63715
|
|
116
116
|
radboy/DB/__pycache__/ExerciseTracker.cpython-312.pyc,sha256=KzCmPhacS7t-70cpZM5tCnL8mBmRbA9dc4uuatdcQkI,34820
|
|
117
|
-
radboy/DB/__pycache__/ExerciseTracker.cpython-313.pyc,sha256=
|
|
117
|
+
radboy/DB/__pycache__/ExerciseTracker.cpython-313.pyc,sha256=pOkECfk2hK6KDNErDER51_MlhqkWnrjw8YIbETQgEmE,52824
|
|
118
118
|
radboy/DB/__pycache__/FormBuilder.cpython-312.pyc,sha256=p1o-5SMRL8OXP_XQ5liUpf-_EkvU8oQwg-BrTWVkcTY,5566
|
|
119
119
|
radboy/DB/__pycache__/PrintLogging.cpython-312.pyc,sha256=pIAFqTi6OiQQORSc-oMH1zAbsdH7sY1TifxrN_QOvnU,148
|
|
120
120
|
radboy/DB/__pycache__/Prompt.cpython-311.pyc,sha256=P2uPRpeqfLFtxieZ0JHBG3X_HZzWUCsFSLb_fpRqky0,6407
|
|
@@ -412,7 +412,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
|
|
|
412
412
|
radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
|
|
413
413
|
radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
|
|
414
414
|
radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
|
|
415
|
-
radboy/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
415
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=uxEntJnUBYhOKqQm-y_E3TZdMDarYYiePhWyPbTna2E,165
|
|
416
416
|
radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
|
|
417
417
|
radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
|
|
418
418
|
radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
|
|
@@ -440,7 +440,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
|
|
|
440
440
|
radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
|
|
441
441
|
radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
|
|
442
442
|
radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
|
|
443
|
-
radboy-0.0.
|
|
444
|
-
radboy-0.0.
|
|
445
|
-
radboy-0.0.
|
|
446
|
-
radboy-0.0.
|
|
443
|
+
radboy-0.0.774.dist-info/METADATA,sha256=xj_v6ZndYz4-kBUd8lcSVvOvYy53j_7i8SFB7nCotTE,1920
|
|
444
|
+
radboy-0.0.774.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
445
|
+
radboy-0.0.774.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
446
|
+
radboy-0.0.774.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|