radboy 0.0.773__py3-none-any.whl → 0.0.775__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:
@@ -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}'''
radboy/TasksMode/Tasks.py CHANGED
@@ -3753,8 +3753,8 @@ Location Fields:
3753
3753
  session.commit()
3754
3754
  session.flush()
3755
3755
  session.refresh(result)
3756
- value=float(value)*result.CaseCount
3757
- setattr(result,fieldname,getattr(result,fieldname)+float(value))
3756
+ value=decc(float(value))*result.CaseCount
3757
+ setattr(result,fieldname,decc(getattr(result,fieldname))+decc(float(value)))
3758
3758
  setattr(result,'Note',getattr(result,"Note")+"\n"+note)
3759
3759
  result.InList=True
3760
3760
  session.commit()
radboy/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION='0.0.773'
1
+ VERSION='0.0.775'
Binary file
radboy/code.png CHANGED
Binary file
@@ -22,6 +22,11 @@ preloader={
22
22
  'desc':f'find the resonant inductance for LC using L = 1 / (4π²f²C)',
23
23
  'exec':resonant_inductance
24
24
  },
25
+ f'{uuid1()}':{
26
+ 'cmds':['cost to run','c2r'],
27
+ 'desc':f'find the cost to run a device per day',
28
+ 'exec':costToRun
29
+ },
25
30
  f'{uuid1()}':{
26
31
  'cmds':['air coil',],
27
32
  'desc':f'''
@@ -1424,4 +1424,29 @@ class candidates:
1424
1424
  pzl=mkpuzl()
1425
1425
  continue
1426
1426
  else:
1427
- continue
1427
+ continue
1428
+
1429
+
1430
+ def costToRun():
1431
+ fields={
1432
+ 'wattage of device plugged in, turned on/off?':{
1433
+ 'default':60,
1434
+ 'type':'float'
1435
+ },
1436
+ 'hours of use?':{
1437
+ 'default':1,
1438
+ 'type':'float'
1439
+ },
1440
+ 'electrical providers cost per kWh':{
1441
+ 'default':0.70 ,
1442
+ 'type':'float'
1443
+ },
1444
+ }
1445
+
1446
+ fd=FormBuilder(data=fields)
1447
+ if fd is None:
1448
+ return
1449
+
1450
+ cost=((fd['wattage of device plugged in, turned on/off?']/1000)*fd['electrical providers cost per kWh'])
1451
+ total_cost_to=cost*fd['hours of use?']
1452
+ return total_cost_to
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: radboy
3
- Version: 0.0.773
3
+ Version: 0.0.775
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=_9rluBSkkGKdQLBgmQR5k50Hs1dmt7yZh-Xrr7bhzE8,17
8
+ radboy/__init__.py,sha256=KVBj6GKdKuZQlfCGS8mej9LmKpu0d2G_nldPJIsL8ys,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=VtuBQAcw1FBcGqOK-Zw4x3DSSR58fckHMSou3VMVp_E,37848
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=RrLjpAj9i70UN_-25zmwMcRnw5FbJaKTjl5cxpVVCzY,52488
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
@@ -356,7 +356,7 @@ radboy/SystemSettings/__pycache__/__init__.cpython-312.pyc,sha256=aIzp4Po0t8EhSA
356
356
  radboy/SystemSettings/__pycache__/__init__.cpython-313.pyc,sha256=QFDuoidxMWsGVLsy5lN-rDs6TP8nKJ4yyCyiamNOhwo,156
357
357
  radboy/TasksMode/ReFormula.py,sha256=REDRJYub-OEOE6g14oRQOLOQwv8pHqVJy4NQk3CCM90,2255
358
358
  radboy/TasksMode/SetEntryNEU.py,sha256=mkV9zAZe0lfpu_3coMuIILEzh6PgCNi7g9lJ4yDUpYM,20596
359
- radboy/TasksMode/Tasks.py,sha256=cXMwh9ozenlLnew3TxOSO8ogdLMih44ATKdvgB2jv9E,362241
359
+ radboy/TasksMode/Tasks.py,sha256=3kFpc5wmlykqHboT1EuydTiM9V6tkn2iYJx92lfRnkA,362259
360
360
  radboy/TasksMode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
361
361
  radboy/TasksMode/__pycache__/ReFormula.cpython-311.pyc,sha256=QEG3PwVw-8HTd_Mf9XbVcxU56F1fC9yBqWXYPLC39DU,4865
362
362
  radboy/TasksMode/__pycache__/ReFormula.cpython-312.pyc,sha256=aX7BWm2PPjCTnxsbGUitR-2h9hq4AjaBiHMrUXvIl0Y,3967
@@ -365,7 +365,7 @@ radboy/TasksMode/__pycache__/SetEntryNEU.cpython-312.pyc,sha256=pCdFj61aPKkHL6Sv
365
365
  radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc,sha256=jMSrUX9pvEhf67uVwrPE2ZlBCems8V7tHJ1LcC15ovU,24603
366
366
  radboy/TasksMode/__pycache__/Tasks.cpython-311.pyc,sha256=6QOTJnLiXSKdF81hkhy3vyrz49PPhS20s5_0X52g3Hw,131120
367
367
  radboy/TasksMode/__pycache__/Tasks.cpython-312.pyc,sha256=hyJwdaYaaRLdcrNxgg36diJ5iijX5_3I0UAORsj-6LU,310295
368
- radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=ivLl31WL6Ca8aGjUraMUTuMHqbYOjGTbAO6-G4U0DFw,437836
368
+ radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=J3xhMbxese4nbG-MbdohkOqvHJVQXFZTtMrhi_Ou4Hg,437907
369
369
  radboy/TasksMode/__pycache__/__init__.cpython-311.pyc,sha256=PKV1JbihEacm639b53bZozRQvcllSkjGP3q8STVMxF4,234
370
370
  radboy/TasksMode/__pycache__/__init__.cpython-312.pyc,sha256=ERgnEvRMiGSecWp1BpNzLdSq_SdKw7GvFWUvUM7bLVw,272
371
371
  radboy/TasksMode/__pycache__/__init__.cpython-313.pyc,sha256=lvsTxukyvGKB3C0rdF9dQi_bvVh6ceDVINfwcuIsd0s,151
@@ -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=3gLwOgmhewtsAuj0F-zLnv9lOW6ZHxD2_nrAz0fThK4,165
415
+ radboy/__pycache__/__init__.cpython-313.pyc,sha256=2ccebnfpPldCKJqwMBeQ-HWjP_6514o2Bt5pARkZu9o,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
@@ -422,8 +422,8 @@ radboy/__pycache__/t.cpython-311.pyc,sha256=bVszNkmfiyoNLd0WUc8aBJc2geGseW4O28cq
422
422
  radboy/__pycache__/te.cpython-311.pyc,sha256=vI8eNUE5VVrfCQvnrJ7WuWpoKcLz-vVK3ifdUZ4UNhk,592
423
423
  radboy/__pycache__/x.cpython-311.pyc,sha256=3jIvWoO5y5WqrL_hRmXNK8O0vO7DwJ4gufjm2b0V7VI,1963
424
424
  radboy/preloader/__init__.py,sha256=lrGR0JF0dkDM8N9ORGUKH_MucUFx1-PI38YsvqS-wgA,926
425
- radboy/preloader/preloader.py,sha256=_FDnVlYnEyr1FVd3N4ttnb7Gf_EMGzzkxosFOnj76GY,7407
426
- radboy/preloader/preloader_func.py,sha256=-QEpIDIetQ1WH3xt7KbXkm2wypU9yLGCY7NUVuIRRYs,52862
425
+ radboy/preloader/preloader.py,sha256=KHIRJ_BIccbRkre6NqAnWRZZ2STrbBZHV79GgxjsDa4,7548
426
+ radboy/preloader/preloader_func.py,sha256=PYhObv_X7RQ508t3iCpNgZPnv4yZk_HIej7XFKBDYFM,53424
427
427
  radboy/setCode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
428
428
  radboy/setCode/setCode.py,sha256=8UOf4okbx-Zane99odeoLAS_lfIt8pIaFomN7EtnnVA,5202
429
429
  radboy/setCode/__pycache__/__init__.cpython-311.pyc,sha256=cJuP5rve6Wn7ZO789tixyOlyrHZQWsBxDn9oZGoG5WE,232
@@ -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.773.dist-info/METADATA,sha256=oZhMoDROZ8hkDcmlLtcOKYJmBDbqihxBor_0XZFHgZ4,1920
444
- radboy-0.0.773.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
445
- radboy-0.0.773.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
446
- radboy-0.0.773.dist-info/RECORD,,
443
+ radboy-0.0.775.dist-info/METADATA,sha256=aTt5efgpn_QYRYOh6iq669KMj47_c61cCcvGuMCh3EA,1920
444
+ radboy-0.0.775.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
445
+ radboy-0.0.775.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
446
+ radboy-0.0.775.dist-info/RECORD,,