radboy 0.0.770__py3-none-any.whl → 0.0.772__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.

@@ -286,7 +286,23 @@ class ExerciseTracker:
286
286
  #print(gethpv(routine))
287
287
  else:
288
288
  pass
289
+ def reset_routine(self):
290
+ if not shield(self,mode='ExerciseTracker',fieldname='Routine',action_text='Delete All Routines'):
291
+ with Session(ENGINE) as session:
292
+ session.query(Routine).delete()
293
+ session.commit()
294
+ print(f"Remaining Routines: {session.query(Routine).count()}")
295
+
296
+ def reset_exercises(self):
297
+ if not shield(self,mode='ExerciseTracker',fieldname='Exercise',action_text='Delete All Exercises'):
298
+ with Session(ENGINE) as session:
299
+ session.query(Exercise).delete()
300
+ session.commit()
301
+ print(f"Remaining Exercises: {session.query(Exercise).count()}")
289
302
 
303
+ def reset_er(self):
304
+ self.reset_exercises()
305
+ self.reset_routine()
290
306
 
291
307
  def Add2Routine(self):
292
308
  with Session(ENGINE) as session:
@@ -493,7 +509,7 @@ class ExerciseTracker:
493
509
  if returnable:
494
510
  lite=[]
495
511
  for num,r in enumerate(results):
496
- msg=f"{Fore.light_yellow}{num}/{Fore.light_red}{ct}{Style.reset}{Fore.light_steel_blue} -> {r.Name}{Style.reset}"
512
+ msg=f"{Fore.light_yellow}{num}/{Fore.light_red}{ct}{Style.reset}{Fore.light_steel_blue} -> {r.Name} (roid={r.roid}){Style.reset}"
497
513
  print(msg)
498
514
  if returnable:
499
515
  lite.append(r.Name)
@@ -513,18 +529,20 @@ class ExerciseTracker:
513
529
  lite=[]
514
530
  hr=None
515
531
  for num,r in enumerate(results):
516
- if hr != r.roid:
517
- hr=r.roid
518
- print(f"{'*'*os.get_terminal_size().columns}")
532
+
519
533
  ex=session.query(Exercise).filter(Exercise.exid==r.exid).first()
520
534
  if ex:
521
535
  name,note,exid=ex.Name,ex.Note,ex.exid
522
536
  else:
523
537
  name,note,exid="NotFound?","NotFound?","NotFound?"
524
- msg=f"{Fore.light_yellow}{num}/{Fore.light_red}{ct}{Style.reset}{Fore.light_steel_blue} -> {r.Name} Exercise(Name='{name}',Note='{note}',exid='{exid}'){Style.reset}"
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}"
525
539
  print(msg)
526
540
  if returnable:
527
541
  lite.append(r.Name)
542
+ if hr != r.Name and num != 0:
543
+ if hr != None:
544
+ print(f"{'*'*os.get_terminal_size().columns}")
545
+ hr=r.Name
528
546
  if returnable:
529
547
  return lite
530
548
 
@@ -761,4 +779,10 @@ class ExerciseTracker:
761
779
  elif doWhat.lower() in "su,summarize".split(","):
762
780
  self.summarize()
763
781
  elif doWhat.lower() in 'a2r,add2routine'.split(","):
764
- self.Add2Routine()
782
+ self.Add2Routine()
783
+ elif doWhat.lower() in 'rst rtn,reset routine,reset-routine'.split(','):
784
+ self.reset_routine()
785
+ elif doWhat.lower() in 'rst ex,reset exercises,reset-exercises'.split(','):
786
+ self.reset_exercises()
787
+ elif doWhat.lower() in 'rst a,reset all,reset-all'.split(','):
788
+ self.reset_er()
radboy/DB/Prompt.py CHANGED
@@ -2260,7 +2260,8 @@ class Prompt(object):
2260
2260
  elif cmd.lower() in ['tsu','j','journal','jrnl']:
2261
2261
  TSC.TouchStampC.TouchStampC(parent=self,engine=db.ENGINE)
2262
2262
  elif cmd.lower() in ['tvu','tag data']:
2263
- pc.run(engine=db.ENGINE)
2263
+ alternate=pc.run(engine=db.ENGINE)
2264
+
2264
2265
  elif cmd.lower() in ['exe','execute','x']:
2265
2266
  TM.Tasks.TasksMode(parent=self,engine=db.ENGINE,init_only=True).executeInLine()
2266
2267
  continue
@@ -3102,6 +3103,43 @@ class Control(Prompt):
3102
3103
  #super().__new__(*args,**kwargs)
3103
3104
  return Prompt.__init2__(self,*args,**kwargs)
3104
3105
 
3106
+ def shield(self,mode="clearAll",fieldname="TasksMode",action_text="Deletion"):
3107
+ h=f'{Prompt.header.format(Fore=Fore,mode=mode,fieldname=fieldname,Style=Style)}'
3108
+
3109
+ code=''.join([str(random.randint(0,9)) for i in range(10)])
3110
+ verification_protection=detectGetOrSet("Protect From Delete",code,setValue=False,literal=True)
3111
+ while True:
3112
+ try:
3113
+ really=Prompt.__init2__(None,func=FormBuilderMkText,ptext=f"{h}Really Perform this {Fore.magenta}Dangerous {Fore.orange_red_1}ACTION({action_text})?",helpText="yes or no boolean,default is NO",data="boolean")
3114
+ if really in [None,]:
3115
+ print(f"{Fore.light_steel_blue}Nothing was {Fore.orange_red_1}{Style.bold}Touched!{Style.reset}")
3116
+ return True
3117
+ elif really in ['d',False]:
3118
+ print(f"{Fore.light_steel_blue}Nothing was {Fore.orange_red_1}{Style.bold}Touched!{Style.reset}")
3119
+ return True
3120
+ else:
3121
+ pass
3122
+ really=Prompt.__init2__(None,func=FormBuilderMkText,ptext=f"To Perform this {Fore.magenta}Dangerous {Fore.orange_red_1}ACTION({action_text}) on everything completely,{Fore.light_steel_blue}what is today's date?[{'.'.join([str(int(i)) for i in datetime.now().strftime("%m.%d.%y").split(".")])}]{Style.reset}",helpText=f"type y/yes for prompt or type as m.d.Y, or use one of {Fore.medium_violet_red}[{Fore.medium_purple_3a}now{Fore.medium_violet_red},{Fore.medium_spring_green}today{Fore.medium_violet_red}]{Fore.light_yellow}",data="datetime")
3123
+ if really in [None,'d']:
3124
+ print(f"{Fore.light_steel_blue}Nothing was {Fore.orange_red_1}{Style.bold}Touched!{Style.reset}")
3125
+ return True
3126
+ today=datetime.today()
3127
+ if really.day == today.day and really.month == today.month and really.year == today.year:
3128
+ really=Prompt.__init2__(None,func=FormBuilderMkText,ptext=f"Please type the verification code {Style.reset}'{db.Entry.cfmt(None,verification_protection)}'?",helpText=f"type '{db.Entry.cfmt(None,verification_protection)}' to finalize!",data="string")
3129
+ if really in [None,]:
3130
+ print(f"{Fore.light_steel_blue}Nothing was {Fore.orange_red_1}{Style.bold}Touched!{Style.reset}")
3131
+ return True
3132
+ elif really in ['d',False]:
3133
+ print(f"{Fore.light_steel_blue}Nothing was {Fore.orange_red_1}{Style.bold}Touched!{Style.reset}")
3134
+ return True
3135
+ elif really == verification_protection:
3136
+ break
3137
+ else:
3138
+ pass
3139
+ except Exception as e:
3140
+ print(e)
3141
+ return False
3142
+
3105
3143
  '''
3106
3144
  cmds template
3107
3145
 
@@ -34,6 +34,8 @@ from radboy.TouchStampC.TouchStampC import *
34
34
  from radboy import VERSION
35
35
  import radboy.possibleCode as pc
36
36
 
37
+
38
+
37
39
  def clear_all(self):
38
40
  fieldname='TaskMode'
39
41
  mode='ClearAll'
radboy/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION='0.0.770'
1
+ VERSION='0.0.772'
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: radboy
3
- Version: 0.0.770
3
+ Version: 0.0.772
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,7 +5,7 @@ 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=hO398ScQcUZay0EW50ry2cOFJEIt7GOzfmqNKLk3xv8,17
8
+ radboy/__init__.py,sha256=BLhIMypcB5cP5uyluwE94mNdUzTNq-KgIrf2MriA7qU,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
@@ -82,13 +82,13 @@ 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=GKIfOcApgtKviZm-GiNJGXbmp64B_cnRHFO85qk6BDY,35980
85
+ radboy/DB/ExerciseTracker.py,sha256=4AbUREsuT998n656z_SzwwHga52psx-YNLKT9smu54U,37198
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
89
89
  radboy/DB/PayModels.py,sha256=hjwWxP7PL33hmfzQl5YTf0HqzaMxXJxFknPdxFJXJc8,3499
90
90
  radboy/DB/PrintLogging.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
91
- radboy/DB/Prompt.py,sha256=HMcuTf6DuLD7HUuecg8_JpknjJLti6gKZqJfufPI85s,190829
91
+ radboy/DB/Prompt.py,sha256=XzzA7F-N00H56Gl6oGM2GaCljxuRCIhwSCHfKWEFUlg,193557
92
92
  radboy/DB/RandomStringUtil.py,sha256=eZCpR907WStgfbk4Evcghjv9hOkUDXH-iMXIq0-kXq8,24386
93
93
  radboy/DB/ResetTools.py,sha256=RbI-Ua7UlsN0S9qLqtEkTWvzyTZ6R-hHR3CW4NHlUPE,6660
94
94
  radboy/DB/SMLabelImporter.py,sha256=eUoBDxVUUEKGL2g_PwkASM67ZB7FmXtSnn4bCagskhY,4013
@@ -114,12 +114,12 @@ 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=Q4I9Os4Xps4Noh50RE_kwUKlxDONy_N2qJrKszhI4zw,48071
117
+ radboy/DB/__pycache__/ExerciseTracker.cpython-313.pyc,sha256=E_inneFFK82vNIcR7CyRV6ev2f4eBuIqimjekjpY8y4,50734
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
121
121
  radboy/DB/__pycache__/Prompt.cpython-312.pyc,sha256=6CcQ1gE2hcz3cKPjo4f6d7xNM2PTDnl8NzQG0Pme5BE,142886
122
- radboy/DB/__pycache__/Prompt.cpython-313.pyc,sha256=kIo2qkJfBDL9lxbekeAj5AoZIj7ADm4leVh4ETvLawE,270617
122
+ radboy/DB/__pycache__/Prompt.cpython-313.pyc,sha256=WpA10q4vymZSCLYKVsl6D1nEVR9472Js1ofl9O5YPsc,275430
123
123
  radboy/DB/__pycache__/RandomStringUtil.cpython-312.pyc,sha256=TrbEY89MuLmNlvoo5d8vOE6Dyshh5_EMlTZvk8MDVN4,48597
124
124
  radboy/DB/__pycache__/RandomStringUtil.cpython-313.pyc,sha256=MCcgVwV2Y-9rAY2FVaJZCKcou3HDX70EZudoiCigT0o,49217
125
125
  radboy/DB/__pycache__/ResetTools.cpython-311.pyc,sha256=4Vyc57iAAF0yRPjjglnVKovnTn8OoFIi6Zok3Wpj_YM,9292
@@ -381,7 +381,7 @@ radboy/Unified/Unified.py,sha256=vYsy66zfjfFwE0pns65ppUcOSVvfB272mwt_4sc__sA,660
381
381
  radboy/Unified/Unified2.py,sha256=TnJQ5Ir28cLG449o8mDe8Ya1Zx4WaRhuoHfEIrCbJME,42257
382
382
  radboy/Unified/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
383
383
  radboy/Unified/bareCA.py,sha256=CCqpwi2mhH-pzR4PzWxYrUIQcCxCIi05EtWMhdjfNLo,7169
384
- radboy/Unified/clearalll.py,sha256=O6dg_gIP830tUSNFD2szC-7fP9UzX2n3QB1TN04lqJU,3975
384
+ radboy/Unified/clearalll.py,sha256=KeBpy_OrpjQL3sJZgOjsVACruwGoZTQMUJKqW26xu3M,3977
385
385
  radboy/Unified/__pycache__/Unified.cpython-311.pyc,sha256=ZtvZDV9cVMV_r_Cuj6LR4m27CGUnZy0l9zUTILSnMRg,65018
386
386
  radboy/Unified/__pycache__/Unified.cpython-312.pyc,sha256=BT3bLl4LQUs7m3H44WVjg6BsHfU9xnWNwpytZSA2smI,78625
387
387
  radboy/Unified/__pycache__/Unified.cpython-313.pyc,sha256=MXm1fIgYTMlhW68nLbothZfLsnn3XYXQTdgiVH0VzS0,82211
@@ -391,7 +391,7 @@ radboy/Unified/__pycache__/__init__.cpython-313.pyc,sha256=h03zVuB4hfY_ko4nkuSS-
391
391
  radboy/Unified/__pycache__/bareCA.cpython-312.pyc,sha256=1zLSCPMarDCdguIxDCjlvTf2SQXi9Y17oznnEbNbQlg,2839
392
392
  radboy/Unified/__pycache__/bareCA.cpython-313.pyc,sha256=pvPQ676Vmwf0LAJ8IRDWwju0KSPBorRKRAV29061BJ4,8265
393
393
  radboy/Unified/__pycache__/clearalll.cpython-312.pyc,sha256=GDkncqa0aJ_55M5ElOfcl-LLiKS6ZXgY779ENHLYS-E,5042
394
- radboy/Unified/__pycache__/clearalll.cpython-313.pyc,sha256=nvh3A05GJ-yy-kVR1JrWJnCe0kBkBdQbhx3hAETWRdI,7129
394
+ radboy/Unified/__pycache__/clearalll.cpython-313.pyc,sha256=Krk2Woz-U_j6CcActz1jyoiOztemPjgLvhbhar6wPIo,7129
395
395
  radboy/UpdatesAndImports/UpdatesAndImports.py,sha256=KXmiLaB72hMs2Iqkek9fMmme7xgNSXgpcVkKBYVXD00,1687
396
396
  radboy/UpdatesAndImports/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
397
397
  radboy/UpdatesAndImports/__pycache__/UpdatesAndImports.cpython-311.pyc,sha256=n5mnxgmq0egDH-Evf6h0cRF6mmP9N0pAOsS2NkyKA1o,3351
@@ -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=PaCK6J0wA5yiBvNpb5ELxL20AFeXz3dpOwEDaCrO0s8,165
415
+ radboy/__pycache__/__init__.cpython-313.pyc,sha256=0uVXYTnwTvJI3be5tuq6YnalPONI-NsGFP1j_F6ifdk,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.770.dist-info/METADATA,sha256=32WmYHiFao9OmS3-wHEdkFyaV_1LO6hv6EKF8AuvMqA,1920
444
- radboy-0.0.770.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
445
- radboy-0.0.770.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
446
- radboy-0.0.770.dist-info/RECORD,,
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,,