radboy 0.0.772__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.

@@ -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=routine.get("Note"),exid=i.exid,precedence=nt,doe=doe,dtoe=dtoe,toe=toe)
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
- rout[num].Note=json.dumps({'completed':0})
604
- session.commit()
605
- session.flush()
606
- session.refresh(rout[num])
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:
@@ -733,20 +741,27 @@ class ExerciseTracker:
733
741
  h=f'{Prompt.header.format(Fore=Fore,mode=mode,fieldname=fieldname,Style=Style)}'
734
742
  header='{Fore.grey_70}[{Fore.light_steel_blue}{mode}{Fore.medium_violet_red}@{Fore.light_green}{fieldname}{Fore.grey_70}]{Style.reset}{Fore.light_yellow} '
735
743
 
736
- helpText=f'''
737
- ne,NewExercise - create a new exercise
738
- re,RemoveExercise - delete an exercise
739
- se,SearchExercise - search for an exercise from it's Note,Name, or ID
740
- ee,EditExercise - edit an exercise
741
- nr,NewRoutine - a new routine of exercises
742
- vr,ViewRoutines - show available routines
743
- vrl,ViewRoutines - show available routines and their exercises as a list
744
- a2r,add2routine - add an exercise to a routine specified by RID
745
- ur,UseRoutine - use a set routine
746
- rr,RemoveRoutine - delete a routine
747
- cr,ClearRoutine - reset routine CurrentRep
748
- su,summarize,Summarize - show the contents of a specified Routine
749
- '''
744
+ helpText=f'''{Fore.light_green}Exercises{Fore.grey_70}
745
+ ** ne,NewExercise - create a new exercise
746
+ ** re,RemoveExercise - delete an exercise
747
+ ** se,SearchExercise - search for an exercise from it's Note,Name, or ID
748
+ ** ee,EditExercise - edit an exercise
749
+ {Fore.dark_goldenrod}Routines{Fore.grey_70}
750
+ ** nr,NewRoutine - a new routine of exercises
751
+ ** vr,ViewRoutines - show available routines
752
+ ** vrl,ViewRoutines - show available routines and their exercises as a list
753
+ ** a2r,add2routine - add an exercise to a routine specified by RID
754
+ ** ur,UseRoutine - use a set routine
755
+ ** rr,RemoveRoutine - delete a routine
756
+ ** cr,ClearRoutine - reset routine CurrentRep
757
+ ** su,summarize,Summarize - show the contents of a specified Routine
758
+ {Fore.orange_red_1}DANGER{Fore.grey_70}
759
+ ** rst rtn,reset routine,reset-routine - delete all routines {Fore.light_red}ONLY{Fore.grey_70}
760
+ ** rst ex,reset exercises,reset-exercises - delete all exercises {Fore.light_red}ONLY{Fore.grey_70}
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!
762
+ {Fore.light_salmon_1}WARNING{Fore.grey_70}
763
+ ignore '**' ; this is not part of the cmd; it's just a bullet point representation.
764
+ {Style.reset}'''
750
765
  while True:
751
766
  doWhat=Prompt.__init2__(None,func=FormBuilderMkText,ptext=f"{h} Do what?",helpText=helpText,data="string")
752
767
  if doWhat in [None,]:
radboy/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION='0.0.772'
1
+ VERSION='0.0.774'
Binary file
radboy/code.png CHANGED
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: radboy
3
- Version: 0.0.772
3
+ Version: 0.0.774
4
4
  Summary: A Retail Calculator for Android/Linux
5
5
  Author: Carl Joseph Hirner III
6
6
  Author-email: Carl Hirner III <k.j.hirner.wisdom@gmail.com>
@@ -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=BLhIMypcB5cP5uyluwE94mNdUzTNq-KgIrf2MriA7qU,17
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=DvZ1QpLmaKcJwJM6HFD4YatBTi_mHp0h-fLZto47U-8,322
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=4AbUREsuT998n656z_SzwwHga52psx-YNLKT9smu54U,37198
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=E_inneFFK82vNIcR7CyRV6ev2f4eBuIqimjekjpY8y4,50734
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=0uVXYTnwTvJI3be5tuq6YnalPONI-NsGFP1j_F6ifdk,165
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.772.dist-info/METADATA,sha256=AJcHUF3QSxngwzf-jH2spwOB7by8-dRLihd-LNd4fVs,1920
444
- radboy-0.0.772.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
445
- radboy-0.0.772.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
446
- radboy-0.0.772.dist-info/RECORD,,
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,,