radboy 0.0.426__py3-none-any.whl → 0.0.428__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/RNE/RNE.py +53 -6
- radboy/RNE/__pycache__/RNE.cpython-313.pyc +0 -0
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- {radboy-0.0.426.dist-info → radboy-0.0.428.dist-info}/METADATA +1 -1
- {radboy-0.0.426.dist-info → radboy-0.0.428.dist-info}/RECORD +8 -8
- {radboy-0.0.426.dist-info → radboy-0.0.428.dist-info}/WHEEL +0 -0
- {radboy-0.0.426.dist-info → radboy-0.0.428.dist-info}/top_level.txt +0 -0
radboy/RNE/RNE.py
CHANGED
|
@@ -460,7 +460,7 @@ class Expiration:
|
|
|
460
460
|
except Exception as e:
|
|
461
461
|
print(e)
|
|
462
462
|
|
|
463
|
-
def search_expo(self,returnable=False,code=None):
|
|
463
|
+
def search_expo(self,returnable=False,code=None,group=True):
|
|
464
464
|
with Session(ENGINE) as session:
|
|
465
465
|
while True:
|
|
466
466
|
if code != None:
|
|
@@ -498,7 +498,18 @@ class Expiration:
|
|
|
498
498
|
Expiry.BB_Expiry==dt,
|
|
499
499
|
)
|
|
500
500
|
)
|
|
501
|
-
|
|
501
|
+
if group:
|
|
502
|
+
results=query.order_by(Expiry.DTOE.asc()).order_by(Expiry.BB_Expiry.asc()).group_by(Expiry.Barcode)
|
|
503
|
+
else:
|
|
504
|
+
results=query.order_by(Expiry.DTOE.asc()).order_by(Expiry.BB_Expiry.asc())
|
|
505
|
+
|
|
506
|
+
state=db.detectGetOrSet('list maker lookup order',False,setValue=False,literal=False)
|
|
507
|
+
if state == True:
|
|
508
|
+
results=results.order_by(Expiry.BB_Expiry.asc())
|
|
509
|
+
else:
|
|
510
|
+
results=results.order_by(Expiry.BB_Expiry.desc())
|
|
511
|
+
|
|
512
|
+
results=results.all()
|
|
502
513
|
ct=len(results)
|
|
503
514
|
if returnable:
|
|
504
515
|
return results
|
|
@@ -574,15 +585,41 @@ class Expiration:
|
|
|
574
585
|
return
|
|
575
586
|
|
|
576
587
|
async def show_warnings_async(self):
|
|
577
|
-
await asyncio.to_thread(self.show_warnings)
|
|
588
|
+
await asyncio.to_thread(lambda self=self:self.show_warnings(boot=True))
|
|
578
589
|
|
|
579
590
|
|
|
580
|
-
def show_warnings(self,barcode=None,export=False,regardless=False,code=None):
|
|
591
|
+
def show_warnings(self,barcode=None,export=False,regardless=False,code=None,boot=False):
|
|
581
592
|
with Session(ENGINE) as session:
|
|
593
|
+
if not boot:
|
|
594
|
+
group=Prompt.__init2__(None,func=FormBuilderMkText,ptext="Group results by Barcode[default=True/Yes]?",helpText="results will be grouped by barcode",data="boolean")
|
|
595
|
+
if group is None:
|
|
596
|
+
return
|
|
597
|
+
elif group in ['d',]:
|
|
598
|
+
group=True
|
|
599
|
+
|
|
600
|
+
page=Prompt.__init2__(None,func=FormBuilderMkText,ptext="Show results 1 at a time[default=True/Yes]?",helpText="one result at a time",data="boolean")
|
|
601
|
+
if page is None:
|
|
602
|
+
return
|
|
603
|
+
elif group in ['d',]:
|
|
604
|
+
page=True
|
|
605
|
+
else:
|
|
606
|
+
group=True
|
|
607
|
+
page=False
|
|
608
|
+
|
|
582
609
|
if barcode == None:
|
|
583
|
-
|
|
610
|
+
if group:
|
|
611
|
+
results=session.query(Expiry).group_by(Expiry.Barcode)
|
|
612
|
+
else:
|
|
613
|
+
results=session.query(Expiry)
|
|
614
|
+
state=db.detectGetOrSet('list maker lookup order',False,setValue=False,literal=False)
|
|
615
|
+
if state == True:
|
|
616
|
+
results=results.order_by(Expiry.BB_Expiry.asc())
|
|
617
|
+
else:
|
|
618
|
+
results=results.order_by(Expiry.BB_Expiry.desc())
|
|
619
|
+
|
|
620
|
+
results=results.all()
|
|
584
621
|
else:
|
|
585
|
-
results=self.search_expo(returnable=True,code=code)
|
|
622
|
+
results=self.search_expo(returnable=True,code=code,group=group)
|
|
586
623
|
if results in [None,]:
|
|
587
624
|
return
|
|
588
625
|
ct=len(results)
|
|
@@ -633,10 +670,20 @@ class Expiration:
|
|
|
633
670
|
session.flush()
|
|
634
671
|
else:
|
|
635
672
|
pass
|
|
673
|
+
if page:
|
|
674
|
+
nxt=Prompt.__init2__(None,func=FormBuilderMkText,ptext="Next?",helpText="enter",data="string")
|
|
675
|
+
if nxt is None:
|
|
676
|
+
return
|
|
677
|
+
elif nxt in ['d',True]:
|
|
678
|
+
print(headers)
|
|
679
|
+
continue
|
|
680
|
+
else:
|
|
681
|
+
break
|
|
636
682
|
num+=1
|
|
637
683
|
#postMsg=f'''{warn_date}: Warn Date
|
|
638
684
|
#{past_warn_date}: Past Warn Date
|
|
639
685
|
#{del_date}: Deletion Date'''
|
|
686
|
+
|
|
640
687
|
if export == True:
|
|
641
688
|
if len(exportable) < 1:
|
|
642
689
|
print("Nothing To Export")
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.428'
|
|
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=0qFnt3gEk58-8S1uCmVBbtOItFJ0zp0Yt7RqXsF0ksY,41364
|
|
7
7
|
radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
|
|
8
|
-
radboy/__init__.py,sha256=
|
|
8
|
+
radboy/__init__.py,sha256=IUGHFC_0wZta0N55q4Rw8eEQO70Ysdcg5pH8um8qS4o,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
|
|
@@ -292,11 +292,11 @@ radboy/PunchCard/__pycache__/PunchCard.cpython-313.pyc,sha256=N8L4cP6iQldfDcYZNx
|
|
|
292
292
|
radboy/PunchCard/__pycache__/__init__.cpython-311.pyc,sha256=Off5ltCdLUEhm2xHBufyQYZn3cmJ0FHMb5ZiZpzi6cI,234
|
|
293
293
|
radboy/PunchCard/__pycache__/__init__.cpython-312.pyc,sha256=Y6qJWX7nupibrd15D5ZkcLV2B9QucwyIu6Mz3YFv-Bw,272
|
|
294
294
|
radboy/PunchCard/__pycache__/__init__.cpython-313.pyc,sha256=aa7buQA_iDOOynayLa8DRx1TYsKRpB9VkhwoL1n8LDU,151
|
|
295
|
-
radboy/RNE/RNE.py,sha256=
|
|
295
|
+
radboy/RNE/RNE.py,sha256=KerxZGyKlPOhwmMV9DNn_TxdHimY5_QmjQ6H82powxA,37762
|
|
296
296
|
radboy/RNE/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
297
297
|
radboy/RNE/dateAhead.py,sha256=g5pp84vteEkYlxRi5rgo6p2Z6PyoBmozljlnWx8twMs,1594
|
|
298
298
|
radboy/RNE/__pycache__/RNE.cpython-312.pyc,sha256=TCmgh08Ac9MDZgJZwb-_cpCATcLu04wp_HPNtXBrwFw,54377
|
|
299
|
-
radboy/RNE/__pycache__/RNE.cpython-313.pyc,sha256
|
|
299
|
+
radboy/RNE/__pycache__/RNE.cpython-313.pyc,sha256=-P9Ob65csLEsAEhI6vGC8f1WJDot21jQPFjpGmlnElA,74235
|
|
300
300
|
radboy/RNE/__pycache__/__init__.cpython-312.pyc,sha256=uV2pHPbmeCebUp_7Fx1oOhe0ccQGsOtaCzVRFmj6IAg,266
|
|
301
301
|
radboy/RNE/__pycache__/__init__.cpython-313.pyc,sha256=7J11knluwp7WjdVRcd4526_Y1LJo_nH4Kg3rNKIc77U,145
|
|
302
302
|
radboy/Repack/Repack.py,sha256=JmGpsVWUIW71dwARwcuG_L2PP6puYbwRjVy1NJ9tYH8,42593
|
|
@@ -390,7 +390,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
|
|
|
390
390
|
radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
|
|
391
391
|
radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
|
|
392
392
|
radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
|
|
393
|
-
radboy/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
393
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=XVJLYqdcmDhgJA9pKlhh5Gr-Ng2Gu0LVd_dRTGbKM5w,165
|
|
394
394
|
radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
|
|
395
395
|
radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
|
|
396
396
|
radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
|
|
@@ -415,7 +415,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
|
|
|
415
415
|
radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
|
|
416
416
|
radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
|
|
417
417
|
radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
|
|
418
|
-
radboy-0.0.
|
|
419
|
-
radboy-0.0.
|
|
420
|
-
radboy-0.0.
|
|
421
|
-
radboy-0.0.
|
|
418
|
+
radboy-0.0.428.dist-info/METADATA,sha256=RUK57i3aKP6m-vBY7yVatnCZaBdj7CLiKESifabZqQE,794
|
|
419
|
+
radboy-0.0.428.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
420
|
+
radboy-0.0.428.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
421
|
+
radboy-0.0.428.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|