radboy 0.0.379__py3-none-any.whl → 0.0.382__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/DayLog/BhTrSa/bhtrsaa.py +86 -84
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- {radboy-0.0.379.dist-info → radboy-0.0.382.dist-info}/METADATA +1 -1
- {radboy-0.0.379.dist-info → radboy-0.0.382.dist-info}/RECORD +7 -7
- {radboy-0.0.379.dist-info → radboy-0.0.382.dist-info}/WHEEL +0 -0
- {radboy-0.0.379.dist-info → radboy-0.0.382.dist-info}/top_level.txt +0 -0
radboy/DayLog/BhTrSa/bhtrsaa.py
CHANGED
|
@@ -7,14 +7,14 @@ class BhTrSa_Gui:
|
|
|
7
7
|
return
|
|
8
8
|
lu_state=db.detectGetOrSet('list maker lookup order',False,setValue=False,literal=False)
|
|
9
9
|
includes=["varchar","string","str","text"]
|
|
10
|
-
sfields=[str(i.name) for i in BusinessHours.__table__.columns if str(i.type) in includes]
|
|
10
|
+
sfields=[str(i.name) for i in BusinessHours.__table__.columns if str(i.type).lower() in includes]
|
|
11
11
|
with Session(ENGINE) as session:
|
|
12
12
|
query=session.query(Scheduled_And_Appointments)
|
|
13
13
|
q=[]
|
|
14
14
|
if stext != 'd':
|
|
15
15
|
for i in sfields:
|
|
16
|
-
q.append(
|
|
17
|
-
squery=query.filter(*q)
|
|
16
|
+
q.append(getattr(Scheduled_And_Appointments,i).icontains(stext))
|
|
17
|
+
squery=query.filter(or_(*q))
|
|
18
18
|
else:
|
|
19
19
|
squery=query
|
|
20
20
|
if lu_state:
|
|
@@ -22,31 +22,31 @@ class BhTrSa_Gui:
|
|
|
22
22
|
else:
|
|
23
23
|
sorted_query=squery.order_by(Scheduled_And_Appointments.DTOE.desc())
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
25
|
+
results=sorted_query.all()
|
|
26
|
+
ct=len(results)
|
|
27
|
+
htext=[]
|
|
28
|
+
if ct == 0:
|
|
29
|
+
print("No Results were found")
|
|
30
|
+
return
|
|
31
|
+
for num,i in enumerate(results):
|
|
32
|
+
htext.append(i.colorize(i,num,ct))
|
|
33
|
+
htext='\n'.join(htext)
|
|
34
|
+
print(htext)
|
|
35
|
+
if returnable:
|
|
36
|
+
while True:
|
|
37
|
+
try:
|
|
38
|
+
which=Prompt.__init2__(None,func=FormBuilderMkText,ptext="which index(es) to yield?",helpText=htext,data="list")
|
|
39
|
+
if which in [None,'d']:
|
|
40
|
+
return
|
|
41
|
+
for i in which:
|
|
42
|
+
try:
|
|
43
|
+
index=int(i)
|
|
44
|
+
yield results[index].saa_id
|
|
45
|
+
except Exception as e:
|
|
46
|
+
print(e)
|
|
47
|
+
break
|
|
48
|
+
except Exception as e:
|
|
49
|
+
print(e)
|
|
50
50
|
|
|
51
51
|
def search_business_hours(self,returnable=False):
|
|
52
52
|
stext=Prompt.__init2__(None,func=FormBuilderMkText,ptext="What are you looking for?",helpText="a textwise search",data="string")
|
|
@@ -54,46 +54,48 @@ class BhTrSa_Gui:
|
|
|
54
54
|
return
|
|
55
55
|
lu_state=db.detectGetOrSet('list maker lookup order',False,setValue=False,literal=False)
|
|
56
56
|
includes=["varchar","string","str","text"]
|
|
57
|
-
sfields=[str(i.name) for i in BusinessHours.__table__.columns if str(i.type) in includes]
|
|
57
|
+
sfields=[str(i.name) for i in BusinessHours.__table__.columns if str(i.type).lower() in includes]
|
|
58
58
|
with Session(ENGINE) as session:
|
|
59
59
|
query=session.query(BusinessHours)
|
|
60
60
|
q=[]
|
|
61
|
+
print(stext)
|
|
61
62
|
if stext != 'd':
|
|
62
63
|
for i in sfields:
|
|
63
|
-
q.append(
|
|
64
|
-
squery=query.filter(*q)
|
|
64
|
+
q.append(getattr(BusinessHours,i).icontains(stext))
|
|
65
|
+
squery=query.filter(or_(*q))
|
|
65
66
|
else:
|
|
66
67
|
squery=query
|
|
68
|
+
|
|
67
69
|
if lu_state:
|
|
68
70
|
sorted_query=squery.order_by(BusinessHours.DTOE.asc())
|
|
69
71
|
else:
|
|
70
72
|
sorted_query=squery.order_by(BusinessHours.DTOE.desc())
|
|
71
73
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
74
|
+
results=sorted_query.all()
|
|
75
|
+
ct=len(results)
|
|
76
|
+
htext=[]
|
|
77
|
+
if ct == 0:
|
|
78
|
+
print("No Results were found")
|
|
79
|
+
return
|
|
80
|
+
for num,i in enumerate(results):
|
|
81
|
+
htext.append(i.colorize(i,num,ct))
|
|
82
|
+
htext='\n'.join(htext)
|
|
83
|
+
print(htext)
|
|
84
|
+
if returnable:
|
|
85
|
+
while True:
|
|
86
|
+
try:
|
|
87
|
+
which=Prompt.__init2__(None,func=FormBuilderMkText,ptext="which index(es) to yield?",helpText=htext,data="list")
|
|
88
|
+
if which in [None,'d']:
|
|
89
|
+
return
|
|
90
|
+
for i in which:
|
|
91
|
+
try:
|
|
92
|
+
index=int(i)
|
|
93
|
+
yield results[index].bhid
|
|
94
|
+
except Exception as e:
|
|
95
|
+
print(e)
|
|
96
|
+
break
|
|
97
|
+
except Exception as e:
|
|
98
|
+
print(e)
|
|
97
99
|
|
|
98
100
|
def search_taxrates(self,returnable=False):
|
|
99
101
|
stext=Prompt.__init2__(None,func=FormBuilderMkText,ptext="What are you looking for?",helpText="a textwise search",data="string")
|
|
@@ -101,14 +103,14 @@ class BhTrSa_Gui:
|
|
|
101
103
|
return
|
|
102
104
|
lu_state=db.detectGetOrSet('list maker lookup order',False,setValue=False,literal=False)
|
|
103
105
|
includes=["varchar","string","str","text"]
|
|
104
|
-
sfields=[str(i.name) for i in TaxRates.__table__.columns if str(i.type) in includes]
|
|
106
|
+
sfields=[str(i.name) for i in TaxRates.__table__.columns if str(i.type).lower() in includes]
|
|
105
107
|
with Session(ENGINE) as session:
|
|
106
108
|
query=session.query(TaxRates)
|
|
107
109
|
q=[]
|
|
108
110
|
if stext != 'd':
|
|
109
111
|
for i in sfields:
|
|
110
|
-
q.append(
|
|
111
|
-
squery=query.filter(*q)
|
|
112
|
+
q.append(getattr(TaxRates,i).icontains(stext))
|
|
113
|
+
squery=query.filter(or_(*q))
|
|
112
114
|
else:
|
|
113
115
|
squery=query
|
|
114
116
|
if lu_state:
|
|
@@ -116,31 +118,31 @@ class BhTrSa_Gui:
|
|
|
116
118
|
else:
|
|
117
119
|
sorted_query=squery.order_by(TaxRates.DTOE.desc())
|
|
118
120
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
121
|
+
results=sorted_query.all()
|
|
122
|
+
ct=len(results)
|
|
123
|
+
htext=[]
|
|
124
|
+
if ct == 0:
|
|
125
|
+
print("No Results were found")
|
|
126
|
+
return
|
|
127
|
+
for num,i in enumerate(results):
|
|
128
|
+
htext.append(i.colorize(i,num,ct))
|
|
129
|
+
htext='\n'.join(htext)
|
|
130
|
+
print(htext)
|
|
131
|
+
if returnable:
|
|
132
|
+
while True:
|
|
133
|
+
try:
|
|
134
|
+
which=Prompt.__init2__(None,func=FormBuilderMkText,ptext="which index(es) to yield?",helpText=htext,data="list")
|
|
135
|
+
if which in [None,'d']:
|
|
136
|
+
return
|
|
137
|
+
for i in which:
|
|
138
|
+
try:
|
|
139
|
+
index=int(i)
|
|
140
|
+
yield results[index].trid
|
|
141
|
+
except Exception as e:
|
|
142
|
+
print(e)
|
|
143
|
+
break
|
|
144
|
+
except Exception as e:
|
|
145
|
+
print(e)
|
|
144
146
|
|
|
145
147
|
def edit_taxrates(self):
|
|
146
148
|
excludes=['trid','DTOE']
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.382'
|
|
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=XXy-o5Z_yOgrgHNju4iqM3h7xhRBkNIoHG1qePtBnGY,41316
|
|
7
7
|
radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
|
|
8
|
-
radboy/__init__.py,sha256=
|
|
8
|
+
radboy/__init__.py,sha256=jR79fGBMZEbB5i2XsmXPylOMnNJjDr8Q3tinJX7Ll_4,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
|
|
@@ -139,7 +139,7 @@ radboy/DayLog/TaxiFares.py,sha256=3slYjtBcTnRe8IeneJ-_iZJJ3E7alW09f6GWYXPxhOo,10
|
|
|
139
139
|
radboy/DayLog/Wavelength4Freq.py,sha256=MfN2EATrN3bbEDgP1qOPjV1Fk8sVnkc_4tgX6sKfSE0,2054
|
|
140
140
|
radboy/DayLog/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
141
141
|
radboy/DayLog/BhTrSa/__init__.py,sha256=q6xDsXAiWpQR2QWILKZKf--D3apR_KOE1CRbZaP7Vq4,976
|
|
142
|
-
radboy/DayLog/BhTrSa/bhtrsaa.py,sha256=
|
|
142
|
+
radboy/DayLog/BhTrSa/bhtrsaa.py,sha256=6-rv9XRLfLzkwE_vGgrr_JnBW3itv64QlWVDAsNFiDQ,13506
|
|
143
143
|
radboy/DayLog/__pycache__/DayLogger.cpython-311.pyc,sha256=TmRnRZHp5tMTokSEB8hWTxnasi-iJdh6TmYcb_nXGoY,29557
|
|
144
144
|
radboy/DayLog/__pycache__/DayLogger.cpython-312.pyc,sha256=bfDCQZrIhgQYzoUle7roicRE_bhGPYZtIbCRIiDrsxU,68240
|
|
145
145
|
radboy/DayLog/__pycache__/DayLogger.cpython-313.pyc,sha256=L3BYIw7SMXTsTK64KnTRg0mn-CRZn2Eq-4rjh75JXcs,151046
|
|
@@ -388,7 +388,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
|
|
|
388
388
|
radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
|
|
389
389
|
radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
|
|
390
390
|
radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
|
|
391
|
-
radboy/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
391
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=lXEZ3ZffO96J30dey3V3rA-ZyvTiPwt07zWxwWKJxGs,165
|
|
392
392
|
radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
|
|
393
393
|
radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
|
|
394
394
|
radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
|
|
@@ -413,7 +413,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
|
|
|
413
413
|
radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
|
|
414
414
|
radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
|
|
415
415
|
radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
|
|
416
|
-
radboy-0.0.
|
|
417
|
-
radboy-0.0.
|
|
418
|
-
radboy-0.0.
|
|
419
|
-
radboy-0.0.
|
|
416
|
+
radboy-0.0.382.dist-info/METADATA,sha256=SdF_eY1iv9esyZcBMLcNTGswZ1-oMzxHpPmSysgCqCY,794
|
|
417
|
+
radboy-0.0.382.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
418
|
+
radboy-0.0.382.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
419
|
+
radboy-0.0.382.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|