radboy 0.0.830__py3-none-any.whl → 0.0.832__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/DB/__pycache__/db.cpython-313.pyc +0 -0
- radboy/DB/db.py +34 -7
- radboy/Lookup2/Lookup2.py +31 -1
- radboy/Lookup2/__pycache__/Lookup2.cpython-313.pyc +0 -0
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- {radboy-0.0.830.dist-info → radboy-0.0.832.dist-info}/METADATA +1 -1
- {radboy-0.0.830.dist-info → radboy-0.0.832.dist-info}/RECORD +10 -10
- {radboy-0.0.830.dist-info → radboy-0.0.832.dist-info}/WHEEL +0 -0
- {radboy-0.0.830.dist-info → radboy-0.0.832.dist-info}/top_level.txt +0 -0
|
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',
|
|
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/Lookup2/Lookup2.py
CHANGED
|
@@ -235,6 +235,11 @@ class Lookup:
|
|
|
235
235
|
'cmds':['14.1','sch spec sht','schspecsht','spec sch sht','search specific short','ssps','ssp-'],
|
|
236
236
|
'exec':lambda self=self:self.searchSpec(short=True),
|
|
237
237
|
'desc':f'{Fore.light_blue}Search For Product by Entry Data using prompted fields'
|
|
238
|
+
},
|
|
239
|
+
uuid1():{
|
|
240
|
+
'cmds':['14.2','save eid to text','save eid txt'],
|
|
241
|
+
'exec':lambda self=self:self.saveEID(),
|
|
242
|
+
'desc':f'{Fore.light_blue}Save An Entry to Text'
|
|
238
243
|
}
|
|
239
244
|
}
|
|
240
245
|
def mehelp(self):
|
|
@@ -261,7 +266,32 @@ class Lookup:
|
|
|
261
266
|
else:
|
|
262
267
|
self.cmds[i]['exec']()
|
|
263
268
|
break
|
|
264
|
-
|
|
269
|
+
def saveEID(self):
|
|
270
|
+
try:
|
|
271
|
+
EntryTXT=Path('EntryTXT.txt')
|
|
272
|
+
with Session(ENGINE) as session:
|
|
273
|
+
eids=Control(func=FormBuilderMkText,ptext=f"EntryId's to save to '{EntryTXT}'?",helpText="EntryId is an Integer, separate them with commas",data="list")
|
|
274
|
+
if eids is None:
|
|
275
|
+
return
|
|
276
|
+
tmp=[]
|
|
277
|
+
for eid in eids:
|
|
278
|
+
if eid not in tmp:
|
|
279
|
+
tmp.append(eid)
|
|
280
|
+
eids=tmp
|
|
281
|
+
for num,eid in enumerate(eids):
|
|
282
|
+
try:
|
|
283
|
+
eid=int(eid)
|
|
284
|
+
result=session.query(Entry).filter(Entry.EntryId==eid).first()
|
|
285
|
+
if result is not None:
|
|
286
|
+
mode="w"
|
|
287
|
+
if num > 0:
|
|
288
|
+
mode="a"
|
|
289
|
+
with open(EntryTXT,mode) as out:
|
|
290
|
+
out.write(strip_colors(str(result)))
|
|
291
|
+
except Exception as ee:
|
|
292
|
+
print(ee)
|
|
293
|
+
except Exception as e:
|
|
294
|
+
print(e)
|
|
265
295
|
def entryDataExtrasSearchExport(self,txt_export=False):
|
|
266
296
|
with Session(ENGINE) as session:
|
|
267
297
|
while True:
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.832'
|
|
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=h30zoTqt-XLt_afDPlxMxBiKKwmKi3N-yAuldNCqXUo,41476
|
|
7
7
|
radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
|
|
8
|
-
radboy/__init__.py,sha256=
|
|
8
|
+
radboy/__init__.py,sha256=G8WRu7MELxME_ycYszl6-5Z11GYy-woIPoRpQdZ1DoA,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=
|
|
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=
|
|
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
|
|
@@ -267,10 +267,10 @@ radboy/Lookup/__pycache__/Lookup.cpython-313.pyc,sha256=XLNpbTGk4ryJSRvzf2SDzoxI
|
|
|
267
267
|
radboy/Lookup/__pycache__/__init__.cpython-311.pyc,sha256=Jm4q7Xibyc4UjYYBeYK6uBoMNTBCYoivU7FCtdX5G08,231
|
|
268
268
|
radboy/Lookup/__pycache__/__init__.cpython-312.pyc,sha256=-3XFxnbTtwL4YFln0aSCyRFd2DD-Gr2-UoBV-eOOqqs,269
|
|
269
269
|
radboy/Lookup/__pycache__/__init__.cpython-313.pyc,sha256=p5qY0NPTD_pjFDK1cIJ6qwHaJb91xspPXboIvk-dIgE,148
|
|
270
|
-
radboy/Lookup2/Lookup2.py,sha256=
|
|
270
|
+
radboy/Lookup2/Lookup2.py,sha256=9Cipg-zfoo2ICbHSSbjtYJaVZpa_UXkhqf2jiBokUwM,26896
|
|
271
271
|
radboy/Lookup2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
272
272
|
radboy/Lookup2/__pycache__/Lookup2.cpython-312.pyc,sha256=Mka0F5UbDbhfF0ogsnklb8eVJz1v7H8hcm5N0yEjUjI,35474
|
|
273
|
-
radboy/Lookup2/__pycache__/Lookup2.cpython-313.pyc,sha256=
|
|
273
|
+
radboy/Lookup2/__pycache__/Lookup2.cpython-313.pyc,sha256=L1GyjbLTLv7flyCcbVXCFxILfKWUEkCj3nmnCqdAVJY,48852
|
|
274
274
|
radboy/Lookup2/__pycache__/__init__.cpython-312.pyc,sha256=0mqw_7WZPG7luwCFsqX5YMx3-2pN9URwnp8cuel5rGM,270
|
|
275
275
|
radboy/Lookup2/__pycache__/__init__.cpython-313.pyc,sha256=iuBE5G-ThcR2mSYUgGwZI8WCpQwwJXy6hHnYI-h97_Y,149
|
|
276
276
|
radboy/ModuleTemplate/Tasks.py,sha256=RF4sWnLH4FyzMU8AHOov7WP24-udd96-l9c9SvbIP_0,1088
|
|
@@ -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
|
|
417
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=-hE_4lnW4BuZrgueF32wb66O-REOdpcmXrW6Vum92bQ,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.
|
|
446
|
-
radboy-0.0.
|
|
447
|
-
radboy-0.0.
|
|
448
|
-
radboy-0.0.
|
|
445
|
+
radboy-0.0.832.dist-info/METADATA,sha256=mdTVZ79h9RVXcDIPhdroBugcjMOeK9YNKGbG-HXjB8g,1920
|
|
446
|
+
radboy-0.0.832.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
447
|
+
radboy-0.0.832.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
448
|
+
radboy-0.0.832.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|