radboy 0.0.511__py3-none-any.whl → 0.0.512__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/HealthLog/HealthLog.py +32 -0
- radboy/HealthLog/__pycache__/HealthLog.cpython-313.pyc +0 -0
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- {radboy-0.0.511.dist-info → radboy-0.0.512.dist-info}/METADATA +1 -1
- {radboy-0.0.511.dist-info → radboy-0.0.512.dist-info}/RECORD +8 -8
- {radboy-0.0.511.dist-info → radboy-0.0.512.dist-info}/WHEEL +0 -0
- {radboy-0.0.511.dist-info → radboy-0.0.512.dist-info}/top_level.txt +0 -0
radboy/HealthLog/HealthLog.py
CHANGED
|
@@ -26,6 +26,33 @@ import plotext as plt
|
|
|
26
26
|
import pint_pandas
|
|
27
27
|
|
|
28
28
|
class HealthLogUi:
|
|
29
|
+
def edit_hlid(self):
|
|
30
|
+
with Session(ENGINE) as session:
|
|
31
|
+
hlid=Prompt.__init2__(None,func=FormBuilderMkText,ptext="HLID to Edit?: ",helpText="what healthlod id do you wish to edit?",data="integer")
|
|
32
|
+
if hlid is None:
|
|
33
|
+
return
|
|
34
|
+
elif hlid in ['d',]:
|
|
35
|
+
return
|
|
36
|
+
else:
|
|
37
|
+
hl=session.query(HealthLog).filter(HealthLog.HLID==hlid).first()
|
|
38
|
+
if hl:
|
|
39
|
+
print(std_colorize(f"Updated {hl}",0,1))
|
|
40
|
+
excludes=['HLID',]
|
|
41
|
+
fields={
|
|
42
|
+
i:{
|
|
43
|
+
'default':getattr(hl,i.name),
|
|
44
|
+
'type':str(i.type).lower(),
|
|
45
|
+
} for i in hl.__table__.columns if i.name not in excludes
|
|
46
|
+
}
|
|
47
|
+
fd=FormBuilder(data=fields)
|
|
48
|
+
if fd is None:
|
|
49
|
+
return
|
|
50
|
+
for k in fd:
|
|
51
|
+
setattr(hl,k,fd[k])
|
|
52
|
+
session.commit()
|
|
53
|
+
session.refresh(hl)
|
|
54
|
+
print(std_colorize(f"Updated {hl}",0,1))
|
|
55
|
+
|
|
29
56
|
def new_health_log(self):
|
|
30
57
|
with Session(ENGINE) as session:
|
|
31
58
|
hl=HealthLog()
|
|
@@ -583,6 +610,11 @@ class HealthLogUi:
|
|
|
583
610
|
'desc':'list long acting insulin intake',
|
|
584
611
|
'exec':lambda self=self:self.showAllField(fields=['LongActingInsulinName','LongActingInsulinTaken','LongActingInsulinUnitName'],not_none=['LongActingInsulinTaken',])
|
|
585
612
|
},
|
|
613
|
+
uuid1():{
|
|
614
|
+
'cmds':generate_cmds(startcmd=['edit','ed'],endCmd=['hl','hlid',' ','']),
|
|
615
|
+
'desc':'edit health log by hlid',
|
|
616
|
+
'exec':self.edit_hlid,
|
|
617
|
+
},
|
|
586
618
|
'ls sai':{
|
|
587
619
|
'cmds':['ls sai','lssai','list short insulin','list short acting insulin'],
|
|
588
620
|
'desc':'list long acting insulin intake',
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.512'
|
|
Binary file
|
|
@@ -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=Lt2reA6xchq3U7Y08DvkrHboZ25i1ts7X2E9gSIwcVg,41101
|
|
7
7
|
radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
|
|
8
|
-
radboy/__init__.py,sha256=
|
|
8
|
+
radboy/__init__.py,sha256=XjGl8NPtar2DmT9ktDE66YIZ1VxGS9ubSemlPrxQxII,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
|
|
@@ -210,10 +210,10 @@ radboy/GeoTools/__pycache__/GeoClass.cpython-313.pyc,sha256=eZ6hpLKoic1XCb7BKKg-
|
|
|
210
210
|
radboy/GeoTools/__pycache__/OSMClass.cpython-312.pyc,sha256=5RoT8_wiI8R7yb_B9FWIC7mALdGNoqyWtkzsjM2pbh0,40387
|
|
211
211
|
radboy/GeoTools/__pycache__/__init__.cpython-312.pyc,sha256=Y7Xtrzwm44-xuY_4NK8aDjYfVmXIzUFWOyexJu9le8A,1238
|
|
212
212
|
radboy/GeoTools/__pycache__/__init__.cpython-313.pyc,sha256=-bk9eEIxWZgHYZHtNJbrpubDRWkbdYNkGr5J7sVhyIE,1238
|
|
213
|
-
radboy/HealthLog/HealthLog.py,sha256=
|
|
213
|
+
radboy/HealthLog/HealthLog.py,sha256=2XwSMzRkCW0KPeT6XkawonwWEwWwgr5gWjAZoj3jQNM,28509
|
|
214
214
|
radboy/HealthLog/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
215
215
|
radboy/HealthLog/__pycache__/HealthLog.cpython-312.pyc,sha256=hTo4o7jo9L2yqPZgzuKUw_kon_PVcCuTRguELTuLrIo,27946
|
|
216
|
-
radboy/HealthLog/__pycache__/HealthLog.cpython-313.pyc,sha256=
|
|
216
|
+
radboy/HealthLog/__pycache__/HealthLog.cpython-313.pyc,sha256=9nwD1FL4H1VTE5cNmDQNJvPU0Gvy1fr8sq3tcEbxJgk,45824
|
|
217
217
|
radboy/HealthLog/__pycache__/__init__.cpython-312.pyc,sha256=yZrYKBk31pGSjCRqmqzpX409iw-muC1zsNO2ObqkGlY,272
|
|
218
218
|
radboy/HealthLog/__pycache__/__init__.cpython-313.pyc,sha256=cqdZbEJKq9XVoVqDAwsW0pwwBBGSerJNWGlST3YVR3g,151
|
|
219
219
|
radboy/InListRestore/ILR.py,sha256=s8fbbHLKQSVJX1VaeyGE-vdIUGBEbOPX29kRIG2j2WY,16847
|
|
@@ -398,7 +398,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
|
|
|
398
398
|
radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
|
|
399
399
|
radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
|
|
400
400
|
radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
|
|
401
|
-
radboy/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
401
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=I93VgIaBpBG8Npp_DYVIIi8_8AmFRY1cGWpxr3RbWGc,165
|
|
402
402
|
radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
|
|
403
403
|
radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
|
|
404
404
|
radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
|
|
@@ -423,7 +423,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
|
|
|
423
423
|
radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
|
|
424
424
|
radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
|
|
425
425
|
radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
|
|
426
|
-
radboy-0.0.
|
|
427
|
-
radboy-0.0.
|
|
428
|
-
radboy-0.0.
|
|
429
|
-
radboy-0.0.
|
|
426
|
+
radboy-0.0.512.dist-info/METADATA,sha256=UjD0nu4dnTSHbyC1qY7_FpX5jzsVXCF3T4i5pmSxf0w,1601
|
|
427
|
+
radboy-0.0.512.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
428
|
+
radboy-0.0.512.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
429
|
+
radboy-0.0.512.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|