radboy 0.0.552__py3-none-any.whl → 0.0.557__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.
@@ -533,7 +533,7 @@ class HealthLogUi:
533
533
  return True
534
534
 
535
535
 
536
- def showAllField(self,fields=[],not_none=[],total_drg=True,total_fd=False):
536
+ def showAllField(self,fields=[],not_none=[],total_drg=False,total_fd=False):
537
537
  unit_registry=pint.UnitRegistry()
538
538
  try:
539
539
  useDateRange=Prompt.__init2__(None,func=FormBuilderMkText,ptext="use a date range?",helpText="yes or no",data="boolean")
@@ -601,10 +601,37 @@ class HealthLogUi:
601
601
  dummy[i.DrugConsumed].DrugQtyConsumedUnitName=f.units
602
602
  except Exception as e:
603
603
  print(e,"processing will not include this")
604
+ print(f"{Back.grey_11}{i}{Style.reset}")
604
605
  else:
605
606
  dummy[i.DrugConsumed]=copy(i)
606
607
  if total_fd:
607
- pass
608
+ if 'total_fd' in dummy:
609
+ for x in fields:
610
+ includes=[
611
+ "CarboHydrateIntake",
612
+ "ProtienIntake",
613
+ "FiberIntake",
614
+ "TotalFat",
615
+ "SodiumIntake",
616
+ "CholesterolIntake",
617
+ ]
618
+ if x.name not in includes:
619
+ continue
620
+ if getattr(dummy['total_fd'],x.name) is None:
621
+ setattr(dummy['total_fd'],x.name,0)
622
+ else:
623
+ try:
624
+ uname=x.name+"UnitName"
625
+ old=unit_registry.Quantity(getattr(dummy['total_fd'],x.name),getattr(dummy['total_fd'],uname))
626
+ new=unit_registry.Quantity(getattr(i,x.name),getattr(i,uname))
627
+ f=old+new
628
+ setattr(dummy['total_fd'],x.name,f.magnitude)
629
+ setattr(dummy['total_fd'],uname,f.units)
630
+ except Exception as e:
631
+ print(e,"processing will not include this value")
632
+ print(f"{Back.grey_11}{i}{Style.reset}")
633
+ else:
634
+ dummy['total_fd']=copy(i)
608
635
 
609
636
  view=[]
610
637
  for x in fields:
@@ -727,7 +754,7 @@ class HealthLogUi:
727
754
  'lsdrug':{
728
755
  'cmds':['ls drug','ls dg','list drug','lsdrug','lsdrg'],
729
756
  'desc':'list drug data',
730
- 'exec':lambda self=self:self.showAllField(fields=['EntryBarcode','EntryName','DrugConsumed','DrugQtyConsumed','DrugQtyConsumedUnitName'],not_none=['DrugQtyConsumed',])
757
+ 'exec':lambda self=self:self.showAllField(total_fd=False,total_drg=True,fields=['EntryBarcode','EntryName','DrugConsumed','DrugQtyConsumed','DrugQtyConsumedUnitName'],not_none=['DrugQtyConsumed',])
731
758
  },
732
759
  'xpt drug':{
733
760
  'cmds':['xpt drug','xpt dg','export drug','xptdrug','xptdrg'],
@@ -788,7 +815,7 @@ class HealthLogUi:
788
815
  'ls consumed':{
789
816
  'cmds':['lsfd','ls fd','ls food','lfd','ls fuel','ls fl','lfl'],
790
817
  'desc':'list food',
791
- 'exec':lambda self=self:self.showAllField(
818
+ 'exec':lambda self=self:self.showAllField(total_fd=True,total_drg=False,
792
819
  fields=["EntryBarcode",
793
820
  "EntryName",
794
821
  "CarboHydrateIntake",
radboy/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION='0.0.552'
1
+ VERSION='0.0.557'
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: radboy
3
- Version: 0.0.552
3
+ Version: 0.0.557
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=Lt2reA6xchq3U7Y08DvkrHboZ25i1ts7X2E9gSIwcVg,41101
7
7
  radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
8
- radboy/__init__.py,sha256=8wsd1wsIk-k7jrKf7JpAlwXiVe_2cxBVHTSozklewG8,17
8
+ radboy/__init__.py,sha256=0ViKsBYDCoQZJg1p5g8MaWIGdOAacxLPMHA169U8KRo,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
@@ -209,10 +209,10 @@ radboy/GeoTools/__pycache__/GeoClass.cpython-313.pyc,sha256=eZ6hpLKoic1XCb7BKKg-
209
209
  radboy/GeoTools/__pycache__/OSMClass.cpython-312.pyc,sha256=5RoT8_wiI8R7yb_B9FWIC7mALdGNoqyWtkzsjM2pbh0,40387
210
210
  radboy/GeoTools/__pycache__/__init__.cpython-312.pyc,sha256=Y7Xtrzwm44-xuY_4NK8aDjYfVmXIzUFWOyexJu9le8A,1238
211
211
  radboy/GeoTools/__pycache__/__init__.cpython-313.pyc,sha256=-bk9eEIxWZgHYZHtNJbrpubDRWkbdYNkGr5J7sVhyIE,1238
212
- radboy/HealthLog/HealthLog.py,sha256=Nxct60OaQk9n-6flawdbfOeBZGAzAEUgnOiQUl2cgWo,35624
212
+ radboy/HealthLog/HealthLog.py,sha256=FxkqCzJUzlFHr6eFnHrJf3Ss6vju5qpa9pGDehwxfJE,36720
213
213
  radboy/HealthLog/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
214
214
  radboy/HealthLog/__pycache__/HealthLog.cpython-312.pyc,sha256=hTo4o7jo9L2yqPZgzuKUw_kon_PVcCuTRguELTuLrIo,27946
215
- radboy/HealthLog/__pycache__/HealthLog.cpython-313.pyc,sha256=DLPmFTk2KFkUj3os9slcnulupv5RHWowEwyCpsNukrI,55632
215
+ radboy/HealthLog/__pycache__/HealthLog.cpython-313.pyc,sha256=QLMHj7pQb9_uk1ov7BYYcn9Mf0l-ySFBh8UpQAMwD5c,57024
216
216
  radboy/HealthLog/__pycache__/__init__.cpython-312.pyc,sha256=yZrYKBk31pGSjCRqmqzpX409iw-muC1zsNO2ObqkGlY,272
217
217
  radboy/HealthLog/__pycache__/__init__.cpython-313.pyc,sha256=cqdZbEJKq9XVoVqDAwsW0pwwBBGSerJNWGlST3YVR3g,151
218
218
  radboy/InListRestore/ILR.py,sha256=s8fbbHLKQSVJX1VaeyGE-vdIUGBEbOPX29kRIG2j2WY,16847
@@ -397,7 +397,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
397
397
  radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
398
398
  radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
399
399
  radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
400
- radboy/__pycache__/__init__.cpython-313.pyc,sha256=Flp24Sd0B8DguPjQAaGiF4y4UpV3HSC52ReuVpIOCGw,165
400
+ radboy/__pycache__/__init__.cpython-313.pyc,sha256=dnuoEBcBuHXLKwqTPLf1cpv3AgxVwnqJwN4oT6QEjX0,165
401
401
  radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
402
402
  radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
403
403
  radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
@@ -424,7 +424,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
424
424
  radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
425
425
  radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
426
426
  radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
427
- radboy-0.0.552.dist-info/METADATA,sha256=dvhIZJVafisqqhQWy6TdyKm2RLW9JtlsFkSK4odn5uc,1615
428
- radboy-0.0.552.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
429
- radboy-0.0.552.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
430
- radboy-0.0.552.dist-info/RECORD,,
427
+ radboy-0.0.557.dist-info/METADATA,sha256=JqSmUEBGjF_UfWydcGQuMH4byT8DLIEC23zlpS0t1cg,1615
428
+ radboy-0.0.557.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
429
+ radboy-0.0.557.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
430
+ radboy-0.0.557.dist-info/RECORD,,