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

@@ -30,6 +30,62 @@ from copy import copy
30
30
  from radboy.DB.OrderedAndRxd import *
31
31
 
32
32
  class HealthLogUi:
33
+ def last_dose(self):
34
+ with localcontext() as ctx:
35
+ with Session(ENGINE) as session:
36
+ status=0
37
+ lai=session.query(HealthLog).filter(and_(HealthLog.LongActingInsulinName!=None,HealthLog.LongActingInsulinTaken!=None))
38
+ lai=orderQuery(lai,HealthLog.DTOE,inverse=True).first()
39
+ if lai:
40
+ view=[]
41
+ for x in lai.__table__.columns:
42
+ if getattr(lai,str(x.name)) not in [None]:
43
+ view.append(f'{Fore.green_3b}{Style.bold}{str(x.name)}{Fore.deep_sky_blue_1}={Fore.sea_green_2}{str(getattr(lai,str(x.name)))}{Style.reset}')
44
+ msg=f"{'|'.join(view)}"
45
+ print(std_colorize(msg,num,ct))
46
+ else:
47
+ status+=1
48
+
49
+ sai=session.query(HealthLog).filter(and_(HealthLog.ShortActingInsulinName!=None,HealthLog.ShortActingInsulinTaken!=None))
50
+ sai=orderQuery(sai,HealthLog.DTOE,inverse=True).first()
51
+ if sai:
52
+
53
+ view=[]
54
+ for x in sai.__table__.columns:
55
+ if getattr(sai,str(x.name)) not in [None]:
56
+ view.append(f'{Fore.green_3b}{Style.bold}{str(x.name)}{Fore.deep_sky_blue_1}={Fore.sea_green_2}{str(getattr(sai,str(x.name)))}{Style.reset}')
57
+ msg=f"{'|'.join(view)}"
58
+ print(std_colorize(msg,num,ct))
59
+ else:
60
+ status+=1
61
+
62
+ last_carb=session.query(HealthLog).filter(and_(HealthLog.CarboHydrateIntake!=None,HealthLog.EntryName!=None))
63
+ last_carb=orderQuery(last_carb,HealthLog.DTOE,inverse=True).first()
64
+ if last_carb:
65
+
66
+ view=[]
67
+ for x in last_carb.__table__.columns:
68
+ if getattr(last_carb,str(x.name)) not in [None]:
69
+ view.append(f'{Fore.green_3b}{Style.bold}{str(x.name)}{Fore.deep_sky_blue_1}={Fore.sea_green_2}{str(getattr(last_carb,str(x.name)))}{Style.reset}')
70
+ msg=f"{'|'.join(view)}"
71
+ print(std_colorize(msg,num,ct))
72
+ else:
73
+ status+=1
74
+
75
+ drug=session.query(HealthLog).filter(HealthLog.DrugQtyConsumed!=None)
76
+ drug=orderQuery(drug,HealthLog.DTOE,inverse=True).first()
77
+ if drug:
78
+ view=[]
79
+ for x in drug.__table__.columns:
80
+ if getattr(drug,str(x.name)) not in [None]:
81
+ view.append(f'{Fore.green_3b}{Style.bold}{str(x.name)}{Fore.deep_sky_blue_1}={Fore.sea_green_2}{str(getattr(drug,str(x.name)))}{Style.reset}')
82
+ msg=f"{'|'.join(view)}"
83
+ print(std_colorize(msg,num,ct))
84
+ else:
85
+ status+=1
86
+ if status >= 4:
87
+ print("There is nothing to display!")
88
+
33
89
  def edit_hlid(self):
34
90
  with Session(ENGINE) as session:
35
91
  hlid=Prompt.__init2__(None,func=FormBuilderMkText,ptext="HLID to Edit?: ",helpText="what healthlod id do you wish to edit?",data="integer")
@@ -1071,6 +1127,11 @@ class HealthLogUi:
1071
1127
  'desc':'ordered and recieved journal',
1072
1128
  'exec':lambda self=self:OrderAndRxdUi()
1073
1129
  },
1130
+ str(uuid1()):{
1131
+ 'cmds':generate_cmds(startcmd=['last',],endCmd=['dse','dose','ds']),
1132
+ 'desc':'review last doses',
1133
+ 'exec':lambda self=self:self.last_dose()
1134
+ },
1074
1135
  'xpt consumed':{
1075
1136
  'cmds':['xptfd','xpt fd','xpt food','xpt-fd','xpt fuel','xpt fl','xlfl'],
1076
1137
  'desc':'export food',
radboy/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION='0.0.725'
1
+ VERSION='0.0.727'
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: radboy
3
- Version: 0.0.725
3
+ Version: 0.0.727
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=KI7Jmf3MX0Zng_YUvcjVKN2siyUOhaMAHQGzpPuX8KQ,41373
7
7
  radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
8
- radboy/__init__.py,sha256=iAsemKGzaiqBjedpuGOZiQhY1nLiKPvnv-xjROtQtoM,17
8
+ radboy/__init__.py,sha256=IkKulEdnwmMohtPpnVcQxsIw35ItTtbI63w36R7gTpU,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
@@ -218,10 +218,10 @@ radboy/GeoTools/__pycache__/GeoClass.cpython-313.pyc,sha256=eZ6hpLKoic1XCb7BKKg-
218
218
  radboy/GeoTools/__pycache__/OSMClass.cpython-312.pyc,sha256=5RoT8_wiI8R7yb_B9FWIC7mALdGNoqyWtkzsjM2pbh0,40387
219
219
  radboy/GeoTools/__pycache__/__init__.cpython-312.pyc,sha256=Y7Xtrzwm44-xuY_4NK8aDjYfVmXIzUFWOyexJu9le8A,1238
220
220
  radboy/GeoTools/__pycache__/__init__.cpython-313.pyc,sha256=-bk9eEIxWZgHYZHtNJbrpubDRWkbdYNkGr5J7sVhyIE,1238
221
- radboy/HealthLog/HealthLog.py,sha256=PgpelOkr-ANlKFow78_gdJ5OvTYdsoTH52IMAvRNw6s,42562
221
+ radboy/HealthLog/HealthLog.py,sha256=F2oHMd0r15CSIlFmkGzsVKeW-0kATK5tReVLxKWYtl0,45035
222
222
  radboy/HealthLog/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
223
223
  radboy/HealthLog/__pycache__/HealthLog.cpython-312.pyc,sha256=hTo4o7jo9L2yqPZgzuKUw_kon_PVcCuTRguELTuLrIo,27946
224
- radboy/HealthLog/__pycache__/HealthLog.cpython-313.pyc,sha256=WLbSELytACmZtIEuTi0ZH_KKG8AIfL0uaFW6jyMIe3k,67028
224
+ radboy/HealthLog/__pycache__/HealthLog.cpython-313.pyc,sha256=-doD_xALYWmcKT_tSVY_9LpWu4vdoWB169p07eWfxEo,72671
225
225
  radboy/HealthLog/__pycache__/__init__.cpython-312.pyc,sha256=yZrYKBk31pGSjCRqmqzpX409iw-muC1zsNO2ObqkGlY,272
226
226
  radboy/HealthLog/__pycache__/__init__.cpython-313.pyc,sha256=cqdZbEJKq9XVoVqDAwsW0pwwBBGSerJNWGlST3YVR3g,151
227
227
  radboy/InListRestore/ILR.py,sha256=s8fbbHLKQSVJX1VaeyGE-vdIUGBEbOPX29kRIG2j2WY,16847
@@ -406,7 +406,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
406
406
  radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
407
407
  radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
408
408
  radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
409
- radboy/__pycache__/__init__.cpython-313.pyc,sha256=4Wkj3_bc68oNKrVXJgpjQUSb67YGReWvyNICgMfeodU,165
409
+ radboy/__pycache__/__init__.cpython-313.pyc,sha256=Z2ew58kv-XqsZXy7cv810zPNTtZJQFVyW-ft-kBqd9Q,165
410
410
  radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
411
411
  radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
412
412
  radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
@@ -434,7 +434,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
434
434
  radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
435
435
  radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
436
436
  radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
437
- radboy-0.0.725.dist-info/METADATA,sha256=V_2ZjZZi0du68dFqOJJUcC6I0onNdn_us07Cz-lX9Kw,1891
438
- radboy-0.0.725.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
439
- radboy-0.0.725.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
440
- radboy-0.0.725.dist-info/RECORD,,
437
+ radboy-0.0.727.dist-info/METADATA,sha256=fNhy8dqmm0XHaqxorrTYkKSPjCnotqDlhkuNuMRrUVY,1891
438
+ radboy-0.0.727.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
439
+ radboy-0.0.727.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
440
+ radboy-0.0.727.dist-info/RECORD,,