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

Binary file
radboy/DB/db.py CHANGED
@@ -1856,6 +1856,20 @@ deducted from Total as remainder is to be filled from LOAD{Style.reset}
1856
1856
 
1857
1857
  pinfo=f"{Back.green_3a}{Fore.red}**{Fore.white}{Style.bold}Product/Entry Info{Fore.red}- #REPLACE#**{Style.reset} "
1858
1858
  def __repr__(self):
1859
+ if self.Expiry is not None:
1860
+ expiry_age=self.Expiry-datetime.now()
1861
+ else:
1862
+ expiry_age=timedelta(days=0)
1863
+ if self.BestBy is not None:
1864
+ bestby_age=self.BestBy-datetime.now()
1865
+ else:
1866
+ bestby_age=timedelta(days=0)
1867
+
1868
+ if self.AquisitionDate is not None:
1869
+ aqd_age=self.AquisitionDate-datetime.now()
1870
+ else:
1871
+ aqd_age=timedelta(days=0)
1872
+
1859
1873
  pinfo=self.pinfo
1860
1874
  total_value=self.total_value(CaseMode=False)
1861
1875
  total_value_case=self.total_value()
@@ -1919,9 +1933,9 @@ deducted from Total as remainder is to be filled from LOAD{Style.reset}
1919
1933
 
1920
1934
  {Fore.orange_3}Distressed Product:{Fore.light_red}{self.Distress}{Style.reset}
1921
1935
  ------------- Dates -----------------
1922
- {Fore.light_cyan}Expiry{Fore.grey_70}[{types['Expiry']}{Fore.light_cyan}]={Fore.light_green}{self.Expiry}{Style.reset}
1923
- {Fore.light_cyan}BestBy{Fore.grey_70}[{types['BestBy']}{Fore.light_cyan}]={Fore.light_green}{self.BestBy}{Style.reset}
1924
- {Fore.light_cyan}AquisitionDate{Fore.grey_70}[{types['AquisitionDate']}{Fore.light_cyan}]={Fore.light_green}{self.AquisitionDate}{Style.reset}
1936
+ {Fore.light_cyan}Expiry{Fore.grey_70}[{types['Expiry']}{Fore.light_cyan}]={Fore.light_green}{self.Expiry}[{expiry_age} old]{Style.reset}
1937
+ {Fore.light_cyan}BestBy{Fore.grey_70}[{types['BestBy']}{Fore.light_cyan}]={Fore.light_green}{self.BestBy}[{bestby_age} old]{Style.reset}
1938
+ {Fore.light_cyan}AquisitionDate{Fore.grey_70}[{types['AquisitionDate']}{Fore.light_cyan}]={Fore.light_green}{self.AquisitionDate}[{aqd_age} old]{Style.reset}
1925
1939
 
1926
1940
  {Fore.sky_blue_2}Size{Style.reset}:{Fore.grey_70}{types['Size']}{Style.reset}={self.Size}
1927
1941
  {Fore.tan}Image[{Fore.dark_goldenrod}Exists:{Fore.deep_pink_3b}{self.imageExists()}{Style.reset}{Fore.tan}]{Style.reset}:{Fore.grey_70}{types['Image']}{Style.reset}={self.Image}
@@ -2608,6 +2622,19 @@ deducted from Total as remainder is to be filled from LOAD{Style.reset}
2608
2622
  return ''
2609
2623
 
2610
2624
  def __repr__(self):
2625
+ if self.Expiry is not None:
2626
+ expiry_age=self.Expiry-datetime.now()
2627
+ else:
2628
+ expiry_age=timedelta(days=0)
2629
+ if self.BestBy is not None:
2630
+ bestby_age=self.BestBy-datetime.now()
2631
+ else:
2632
+ bestby_age=timedelta(days=0)
2633
+
2634
+ if self.AquisitionDate is not None:
2635
+ aqd_age=self.AquisitionDate-datetime.now()
2636
+ else:
2637
+ aqd_age=timedelta(days=0)
2611
2638
  types={i.name:str(i.type) for i in self.__table__.columns}
2612
2639
  m= f"""
2613
2640
  {Style.bold}{Style.underline}{Fore.pale_green_1b}Daylog{Style.reset}(
@@ -2667,9 +2694,9 @@ deducted from Total as remainder is to be filled from LOAD{Style.reset}
2667
2694
  {Fore.light_steel_blue}PalletCount{Style.reset}:{Fore.grey_70}{types['PalletCount']}{Style.reset}={self.PalletCount},
2668
2695
  {Fore.light_steel_blue}LoadCount{Style.reset}:{Fore.grey_70}{types['LoadCount']}{Style.reset}={self.LoadCount},
2669
2696
  ------------- Dates ---------------
2670
- {Fore.light_cyan}Expiry{Fore.grey_70}[{types['Expiry']}] = {Fore.light_green}{self.Expiry}{Style.reset}
2671
- {Fore.light_cyan}BestBy{Fore.grey_70}[{types['BestBy']}] = {Fore.light_green}{self.BestBy}{Style.reset}
2672
- {Fore.light_cyan}AquisitionDate{Fore.grey_70}[{types['AquisitionDate']}] = {Fore.light_green}{self.AquisitionDate}{Style.reset}
2697
+ {Fore.light_cyan}Expiry{Fore.grey_70}[{types['Expiry']}] = {Fore.light_green}{self.Expiry}[{expiry_age} old]{Style.reset}
2698
+ {Fore.light_cyan}BestBy{Fore.grey_70}[{types['BestBy']}] = {Fore.light_green}{self.BestBy}[{bestby_age} old]{Style.reset}
2699
+ {Fore.light_cyan}AquisitionDate{Fore.grey_70}[{types['AquisitionDate']}] = {Fore.light_green}[{aqd_age} old]{self.AquisitionDate}{Style.reset}
2673
2700
 
2674
2701
  {Fore.sky_blue_2}Size{Style.reset}:{Fore.grey_70}{types['Size']}{Style.reset}={self.Size}
2675
2702
  {Fore.tan}Image[{Fore.dark_goldenrod}Exists:{Fore.deep_pink_3b}{self.imageExists()}{Style.reset}{Fore.tan}]{Style.reset}:{Fore.grey_70}{types['Image']}{Style.reset}={self.Image}
@@ -4760,7 +4787,7 @@ class HistoryUi:
4760
4787
  ALL_LINES=session.query(PH).all()
4761
4788
  all_lines_ct=len(ALL_LINES)
4762
4789
 
4763
- max_lines=detectGetOrSet('PH_MAXLINES',10000)
4790
+ max_lines=detectGetOrSet('PH_MAXLINES',1000)
4764
4791
  if all_lines_ct >= max_lines:
4765
4792
  for num,line in enumerate(reversed(ALL_LINES)):
4766
4793
  if num <= max_lines:
radboy/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION='0.0.830'
1
+ VERSION='0.0.831'
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: radboy
3
- Version: 0.0.830
3
+ Version: 0.0.831
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=l9X2MzzNRH5Vjyi5p7OeLeTmXWbkyhz8X8gb7pLnrZk,17
8
+ radboy/__init__.py,sha256=etHicDBF2t-60RzO-0nVQ9f2ni0pggreJkOWTYexOOE,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
@@ -96,7 +96,7 @@ radboy/DB/SMLabelImporter.py,sha256=eUoBDxVUUEKGL2g_PwkASM67ZB7FmXtSnn4bCagskhY,
96
96
  radboy/DB/__init__.py,sha256=JiigA9B7GalP7YuRdcwyGDu5PDSBahoi0lLjtScxlN8,49
97
97
  radboy/DB/blankDataFile.py,sha256=YX_05Usi71UpDkZN9UTMYwUipbTndTAtEgqzBEga0kE,9285
98
98
  radboy/DB/config.py,sha256=bvu43dUl1_yO3Zq3gsLuenGUgJSiS3S9Cs6ppFEvZbg,239
99
- radboy/DB/db.py,sha256=vXy1lPXebP-jjP2FJyjXIlKSCoaFxcB89zNHzyBux8M,268306
99
+ radboy/DB/db.py,sha256=cDzPO1fcdfTHmTIphOTkJLw9jDHzeFl6UyF1H3qMJIM,269276
100
100
  radboy/DB/glossary_db.py,sha256=1_qxeEpjjEtpWB_eDjsgJisimLv7OBm75MuqM-Lt6zg,28218
101
101
  radboy/DB/jobnotes.txt,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
102
102
  radboy/DB/lsToday.py,sha256=Pevus6GBHLM2xudBEx8u36Q-jYvatOI-y5o72BmFnzA,9435
@@ -138,7 +138,7 @@ radboy/DB/__pycache__/config.cpython-312.pyc,sha256=Qo7E6MHrF6yqvKgepNFyCoekZXiv
138
138
  radboy/DB/__pycache__/config.cpython-313.pyc,sha256=_8wCIg_3jhyJjxnExD2Sm6aY-uZTw036p7Ki5znL7dc,376
139
139
  radboy/DB/__pycache__/db.cpython-311.pyc,sha256=rNgigyBd0D-cg1JxKAS8t0B_k0IEJivgVlRaZE10Xis,210105
140
140
  radboy/DB/__pycache__/db.cpython-312.pyc,sha256=ANDJPC0RoavbmSKFxG15vC7B4rEGyVt7xRJt7XGY3OA,334609
141
- radboy/DB/__pycache__/db.cpython-313.pyc,sha256=mz63_Tgm8PkP5orRTVapYWZr6G_Q7axOQSXTwRp3_tg,420348
141
+ radboy/DB/__pycache__/db.cpython-313.pyc,sha256=n1ZN0c9T_q7lzJAxMNZ8cUjHxEzMe7xZ-ueRvgeWGQU,421839
142
142
  radboy/DB/__pycache__/glossary_db.cpython-312.pyc,sha256=8UL-29cKqtKovx0BANm6kzKKteef1BW_2qF3wumzst4,36023
143
143
  radboy/DB/__pycache__/glossary_db.cpython-313.pyc,sha256=Ke9bkvllGv5CK0JdT9DRvQ3MOdrXxoYv7TVLNkqLux0,36582
144
144
  radboy/DB/__pycache__/masterLookup.cpython-312.pyc,sha256=bQiOkmMwwHgcO18tYSWGQ-YUff4GQlKVhBMp1GoWAqY,6324
@@ -414,7 +414,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
414
414
  radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
415
415
  radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
416
416
  radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
417
- radboy/__pycache__/__init__.cpython-313.pyc,sha256=KfDI7AE4gTL9vwO8l5lmCovvAtFOSk7uZzMPAr6OZOw,165
417
+ radboy/__pycache__/__init__.cpython-313.pyc,sha256=he48rtZrhLFLjEI1xapTmP06KbdyJHWFBFfdROaBPvQ,165
418
418
  radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
419
419
  radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
420
420
  radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
@@ -442,7 +442,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
442
442
  radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
443
443
  radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
444
444
  radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
445
- radboy-0.0.830.dist-info/METADATA,sha256=FLTOhvxNBI5Y4x3RJOZrWr9fnJTkEZ2ojLyV-9TRLD0,1920
446
- radboy-0.0.830.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
447
- radboy-0.0.830.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
448
- radboy-0.0.830.dist-info/RECORD,,
445
+ radboy-0.0.831.dist-info/METADATA,sha256=iEXMvXKEzj3q6Mtjh21h3L4Niqr9jJw1nJC8nJZqWKI,1920
446
+ radboy-0.0.831.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
447
+ radboy-0.0.831.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
448
+ radboy-0.0.831.dist-info/RECORD,,