radboy 0.0.595__py3-none-any.whl → 0.0.596__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/OrderedAndRxd.py +41 -0
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- {radboy-0.0.595.dist-info → radboy-0.0.596.dist-info}/METADATA +1 -1
- {radboy-0.0.595.dist-info → radboy-0.0.596.dist-info}/RECORD +7 -7
- {radboy-0.0.595.dist-info → radboy-0.0.596.dist-info}/WHEEL +0 -0
- {radboy-0.0.595.dist-info → radboy-0.0.596.dist-info}/top_level.txt +0 -0
radboy/DB/OrderedAndRxd.py
CHANGED
|
@@ -33,6 +33,23 @@ class OrderAndRxdUi():
|
|
|
33
33
|
cmds={}
|
|
34
34
|
#registered cmds
|
|
35
35
|
registry=[]
|
|
36
|
+
def filter(self,src_dict):
|
|
37
|
+
filte=[]
|
|
38
|
+
for k in src_dict:
|
|
39
|
+
if src_dict[k] is not None:
|
|
40
|
+
if isinstance(src_dict[k],str):
|
|
41
|
+
filte.append(getattr(OrderedAndRecieved,k).icontains(src_dict[k]))
|
|
42
|
+
elif isinstance(src_dict[k],datetime):
|
|
43
|
+
if k == 'rx_dtoe':
|
|
44
|
+
pass
|
|
45
|
+
elif k == 'dtoe':
|
|
46
|
+
pass
|
|
47
|
+
elif k == 'order_dt':
|
|
48
|
+
pass
|
|
49
|
+
else:
|
|
50
|
+
filte.append(getattr(OrderedAndRecieved,k)==src_dict[k])
|
|
51
|
+
return and_(*filte)
|
|
52
|
+
|
|
36
53
|
def OrderedAndRecieved_as(self,_exlcudes=[],as_=None):
|
|
37
54
|
excludes=['oarid',]
|
|
38
55
|
for i in _exlcudes:
|
|
@@ -64,6 +81,25 @@ class OrderAndRxdUi():
|
|
|
64
81
|
if fields is not None:
|
|
65
82
|
fd=FormBuilder(data=fields)
|
|
66
83
|
return fd,fields
|
|
84
|
+
|
|
85
|
+
def search(self,selector=False):
|
|
86
|
+
terms,z=self.OrderedAndRecieved_as(as_=None)
|
|
87
|
+
terms=self.filter(terms)
|
|
88
|
+
if terms is not None:
|
|
89
|
+
with Session(ENGINE) as session:
|
|
90
|
+
query=session.query(OrderedAndRecieved).filter(*terms)
|
|
91
|
+
query=orderQuery(query,OrderedAndRecieved.dtoe)
|
|
92
|
+
results=query.all()
|
|
93
|
+
ct=len(results)
|
|
94
|
+
plural=''
|
|
95
|
+
if ct > 1:
|
|
96
|
+
plural="s"
|
|
97
|
+
print(f"{ct} result{plural}!")
|
|
98
|
+
if not selector:
|
|
99
|
+
for num,i in enumerate(results):
|
|
100
|
+
print(std_colorize(i,num,ct))
|
|
101
|
+
|
|
102
|
+
|
|
67
103
|
def __init__(self,*args,**kwargs):
|
|
68
104
|
self.cmds[uuid1()]={
|
|
69
105
|
'cmds':generate_cmds(startcmd=['add','a'],endCmd=['no lu']),
|
|
@@ -80,6 +116,11 @@ class OrderAndRxdUi():
|
|
|
80
116
|
'desc':'test generate OrderedAndRecieved without lookup and fields to be used as default',
|
|
81
117
|
'exec':lambda self=self:print(self.OrderedAndRecieved_as(as_="default"))
|
|
82
118
|
}
|
|
119
|
+
self.cmds[uuid1()]={
|
|
120
|
+
'cmds':generate_cmds(startcmd=['sch','s','search'],endCmd=['', ' ']),
|
|
121
|
+
'desc':'search for OrderedAndRecieved',
|
|
122
|
+
'exec':lambda self=self:self.search()
|
|
123
|
+
}
|
|
83
124
|
|
|
84
125
|
#add cmds above
|
|
85
126
|
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.596'
|
|
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=AejTe7bVvy-07WUZ6T6yfIsDD5Kcs99qvOvxLEfiWFc,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
|
|
@@ -83,7 +83,7 @@ radboy/DB/DatePicker.py,sha256=B75mDtXQrkHRCpoU9TJsaBVvkK37ykMaJyaiqGOo4dM,18334
|
|
|
83
83
|
radboy/DB/DisplayItemDb.py,sha256=uVvrNyFyBuKvrw-BEPXKYvfa-QWyFN5ahESi2l6vUUA,52046
|
|
84
84
|
radboy/DB/EstimatedPayCalendarWorkSheet.txt,sha256=GOjRSmGxFoNTdAnpPe2kGv7CkXDrh0Mee01HslamGbo,17173
|
|
85
85
|
radboy/DB/ExerciseTracker.py,sha256=OS9i8jGIZPj-6m1bB0-eKNHQ6vf2iv_AYPEc0s4bkBM,27809
|
|
86
|
-
radboy/DB/OrderedAndRxd.py,sha256=
|
|
86
|
+
radboy/DB/OrderedAndRxd.py,sha256=63JWIPkRlG8ljXC-sbdbYqg8i81sm4igkU-vlDZ-JFI,6583
|
|
87
87
|
radboy/DB/PayDay.py,sha256=H2kPGvBCDkMOz7lbxQhYtUt_oAInpxi37Q6MFrah98I,8710
|
|
88
88
|
radboy/DB/PayModels.py,sha256=hjwWxP7PL33hmfzQl5YTf0HqzaMxXJxFknPdxFJXJc8,3499
|
|
89
89
|
radboy/DB/PrintLogging.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -401,7 +401,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
|
|
|
401
401
|
radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
|
|
402
402
|
radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
|
|
403
403
|
radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
|
|
404
|
-
radboy/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
404
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=VmT84lGUgG-LaolMgagWZA1tCYcYwXO6tRuON4ZzSoE,165
|
|
405
405
|
radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
|
|
406
406
|
radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
|
|
407
407
|
radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
|
|
@@ -429,7 +429,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
|
|
|
429
429
|
radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
|
|
430
430
|
radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
|
|
431
431
|
radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
|
|
432
|
-
radboy-0.0.
|
|
433
|
-
radboy-0.0.
|
|
434
|
-
radboy-0.0.
|
|
435
|
-
radboy-0.0.
|
|
432
|
+
radboy-0.0.596.dist-info/METADATA,sha256=b5CRdkWJ2X-IVeTbQKu0H_ij-852hm1rZbT4IDPg0Cc,1662
|
|
433
|
+
radboy-0.0.596.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
434
|
+
radboy-0.0.596.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
435
|
+
radboy-0.0.596.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|