radboy 0.0.619__py3-none-any.whl → 0.0.621__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 +18 -4
- radboy/DB/__pycache__/db.cpython-313.pyc +0 -0
- radboy/DB/db.py +5 -4
- radboy/ExportUtility/ExportTableClass.py +6 -7
- radboy/ExportUtility/__pycache__/ExportTableClass.cpython-313.pyc +0 -0
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- {radboy-0.0.619.dist-info → radboy-0.0.621.dist-info}/METADATA +1 -1
- {radboy-0.0.619.dist-info → radboy-0.0.621.dist-info}/RECORD +11 -11
- {radboy-0.0.619.dist-info → radboy-0.0.621.dist-info}/WHEEL +0 -0
- {radboy-0.0.619.dist-info → radboy-0.0.621.dist-info}/top_level.txt +0 -0
radboy/DB/OrderedAndRxd.py
CHANGED
|
@@ -97,7 +97,7 @@ class OrderedAndRecieved(BASE,Template):
|
|
|
97
97
|
Description=Column(String,default=None)
|
|
98
98
|
oarid=Column(Integer,primary_key=True)
|
|
99
99
|
dtoe=Column(DateTime,default=datetime.now())
|
|
100
|
-
|
|
100
|
+
|
|
101
101
|
order_dt=Column(DateTime,default=datetime.now())
|
|
102
102
|
rx_dt=Column(DateTime,default=datetime.today()+timedelta(days=1))
|
|
103
103
|
|
|
@@ -180,6 +180,15 @@ class OrderedAndRecieved(BASE,Template):
|
|
|
180
180
|
DT_grocery_breakdown_finished=Column(DateTime,default=None)
|
|
181
181
|
DT_frozen_breakdown_finished=Column(DateTime,default=None)
|
|
182
182
|
|
|
183
|
+
clocked_in_early=Column(Boolean,default=False)
|
|
184
|
+
clocked_in_late=Column(Boolean,default=False)
|
|
185
|
+
clocked_out_early=Column(Boolean,default=False)
|
|
186
|
+
clocked_out_late=Column(Boolean,default=False)
|
|
187
|
+
lunch_out_early=Column(Boolean,default=False)
|
|
188
|
+
lunch_in_early=Column(Boolean,default=False)
|
|
189
|
+
lunch_out_late=Column(Boolean,default=False)
|
|
190
|
+
lunch_in_late=Column(Boolean,default=False)
|
|
191
|
+
|
|
183
192
|
assisted_deli=Column(Boolean,default=False)
|
|
184
193
|
assisted_deli_with=Column(String,default='')
|
|
185
194
|
|
|
@@ -418,19 +427,24 @@ class OrderAndRxdUi():
|
|
|
418
427
|
if ct > 1:
|
|
419
428
|
plural="s"
|
|
420
429
|
print(f"{ct} result{plural}!")
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
print(std_colorize(i,num,ct))
|
|
430
|
+
zebra=0
|
|
431
|
+
|
|
424
432
|
|
|
425
433
|
if selector:
|
|
426
434
|
#for returning a list of OrderedAndRecieved
|
|
427
435
|
selectortext(resuls)
|
|
436
|
+
zebra+=1
|
|
428
437
|
pass
|
|
429
438
|
if menu:
|
|
430
439
|
#for paged edit/delete of OrderedAndRecieved and returns None
|
|
431
440
|
selectortext(results,page=True)
|
|
441
|
+
zebra+=1
|
|
432
442
|
pass
|
|
433
443
|
|
|
444
|
+
if not(zebra > 0):
|
|
445
|
+
for num,i in enumerate(results):
|
|
446
|
+
print(std_colorize(i,num,ct))
|
|
447
|
+
|
|
434
448
|
|
|
435
449
|
def __init__(self,*args,**kwargs):
|
|
436
450
|
self.cmds[uuid1()]={
|
|
Binary file
|
radboy/DB/db.py
CHANGED
|
@@ -941,20 +941,21 @@ class Template:
|
|
|
941
941
|
0:Fore.green_yellow
|
|
942
942
|
}
|
|
943
943
|
settting=0
|
|
944
|
+
ct=len(fields)
|
|
944
945
|
for num,i in enumerate(fields):
|
|
945
946
|
if isinstance(getattr(self,i),time):
|
|
946
947
|
|
|
947
|
-
m.append(f"{fc}{i}{nsc[settting]}[{ft[i]}]{fc}={vg}{Style.bold}{nsc[settting]}'{fc}{vc}{getattr(self,i).strftime(f"{Fore.deep_pink_4a}%I:%M %p(12H)/{Fore.dark_red_1}%H:%M(24H)")}{nsc[settting]}'{Style.reset}{Back.black}")
|
|
948
|
+
m.append(std_colorize(f"{fc}{i}{nsc[settting]}[{ft[i]}]{fc}={vg}{Style.bold}{nsc[settting]}'{fc}{vc}{getattr(self,i).strftime(f"{Fore.deep_pink_4a}%I:%M %p(12H)/{Fore.dark_red_1}%H:%M(24H)")}{nsc[settting]}'{Style.reset}{Back.black}",num,ct))
|
|
948
949
|
elif isinstance(getattr(self,i),datetime):
|
|
949
|
-
m.append(f"{fc}{i}{nsc[settting]}[{ft[i]}]{fc}={vg}{Style.bold}{nsc[settting]}'{fc}{vc}{getattr(self,i).strftime(f"""{Fore.deep_sky_blue_4a}%m/%d/%Y
|
|
950
|
+
m.append(std_colorize(f"{fc}{i}{nsc[settting]}[{ft[i]}]{fc}={vg}{Style.bold}{nsc[settting]}'{fc}{vc}{getattr(self,i).strftime(f"""{Fore.deep_sky_blue_4a}%m/%d/%Y
|
|
950
951
|
%A(%d) of %B,
|
|
951
952
|
week[Business] %V of year %Y,
|
|
952
953
|
week[Sunday First] %U of year %Y,
|
|
953
954
|
week[Monday First] %W of year %Y)
|
|
954
955
|
@[12H] {Fore.deep_pink_4a}%I:%M %p
|
|
955
|
-
@[24H] {Fore.dark_red_1}%H:%M""")}{nsc[settting]}'{Style.reset}{Back.black}")
|
|
956
|
+
@[24H] {Fore.dark_red_1}%H:%M""")}{nsc[settting]}'{Style.reset}{Back.black}",num,ct))
|
|
956
957
|
else:
|
|
957
|
-
m.append(f"{fc}{i}{nsc[settting]}[{ft[i]}]{fc}={vg}{Style.bold}{nsc[settting]}'{fc}{vc}{getattr(self,i)}{nsc[settting]}'{Style.reset}{Back.black}")
|
|
958
|
+
m.append(std_colorize(f"{fc}{i}{nsc[settting]}[{ft[i]}]{fc}={vg}{Style.bold}{nsc[settting]}'{fc}{vc}{getattr(self,i)}{nsc[settting]}'{Style.reset}{Back.black}",num,ct))
|
|
958
959
|
m.append(f") {Fore.dark_goldenrod}{nowStr.replace("\n","")}{Style.reset}")
|
|
959
960
|
return '\n'.join(m)
|
|
960
961
|
|
|
@@ -224,7 +224,7 @@ class ExportTable:
|
|
|
224
224
|
return dictionary
|
|
225
225
|
|
|
226
226
|
def import_x_from_excel(self):
|
|
227
|
-
print("Not Yet Ready")
|
|
227
|
+
print("Not Yet Ready; need to get mapped class for table by string, until then this is a dud!")
|
|
228
228
|
return
|
|
229
229
|
import_file=Control(func=FormBuilderMkText,ptext="Filename: ",helpText="file to import from",data="string")
|
|
230
230
|
if import_file is None:
|
|
@@ -257,25 +257,24 @@ class ExportTable:
|
|
|
257
257
|
elif import_as in ['d','']:
|
|
258
258
|
return
|
|
259
259
|
if import_as in [i for i in range(0,ct)]:
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
print(classes[import_as])
|
|
261
|
+
CLASS=globals().get(classes[import_as])
|
|
262
|
+
print(CLASS)
|
|
262
263
|
with Session(ENGINE) as session:
|
|
263
264
|
for row in df.itertuples():
|
|
264
265
|
skip=False
|
|
265
266
|
entryRow=row._asdict()
|
|
266
267
|
try:
|
|
267
268
|
if import_as in [i for i in range(0,ct)]:
|
|
268
|
-
CLASS=BASE.metadata.tables.get(classes[import_as])
|
|
269
269
|
#i need the class for the table
|
|
270
|
-
entry=CLASS
|
|
270
|
+
entry=CLASS()
|
|
271
271
|
else:
|
|
272
272
|
return
|
|
273
273
|
|
|
274
274
|
for k in entryRow:
|
|
275
275
|
print(row)
|
|
276
276
|
entryRow[k]=self.alterDictionary(entryRow,k)[k]
|
|
277
|
-
|
|
278
|
-
continue
|
|
277
|
+
|
|
279
278
|
try:
|
|
280
279
|
setattr(entry,k,entryRow[k])
|
|
281
280
|
except Exception as ee:
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.621'
|
|
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=m_zGeKWgp3nwFeMXGWgeQZWPJKrJtcwwDARQHnnEux4,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=cGkArh68IUezdjmIUW7SyyMmlqc9I0nUk5tO97sD4FQ,22021
|
|
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
|
|
@@ -94,7 +94,7 @@ radboy/DB/SMLabelImporter.py,sha256=eUoBDxVUUEKGL2g_PwkASM67ZB7FmXtSnn4bCagskhY,
|
|
|
94
94
|
radboy/DB/__init__.py,sha256=JiigA9B7GalP7YuRdcwyGDu5PDSBahoi0lLjtScxlN8,49
|
|
95
95
|
radboy/DB/blankDataFile.py,sha256=YX_05Usi71UpDkZN9UTMYwUipbTndTAtEgqzBEga0kE,9285
|
|
96
96
|
radboy/DB/config.py,sha256=bvu43dUl1_yO3Zq3gsLuenGUgJSiS3S9Cs6ppFEvZbg,239
|
|
97
|
-
radboy/DB/db.py,sha256=
|
|
97
|
+
radboy/DB/db.py,sha256=vNajBkWEqI21HIZgpOwORrqYn6wSkD7w04ffgD9aKfM,254984
|
|
98
98
|
radboy/DB/glossary_db.py,sha256=1_qxeEpjjEtpWB_eDjsgJisimLv7OBm75MuqM-Lt6zg,28218
|
|
99
99
|
radboy/DB/masterLookup.py,sha256=DBaM2uscG3_X5dek49wjdnOzhrjWhKgvOEz_umdz0mY,4566
|
|
100
100
|
radboy/DB/msg.txt,sha256=YxWed6A6tuP1djJ5QPS2Rz3ING4TKKf8kUiCCPtzHXE,7937
|
|
@@ -130,7 +130,7 @@ radboy/DB/__pycache__/config.cpython-312.pyc,sha256=Qo7E6MHrF6yqvKgepNFyCoekZXiv
|
|
|
130
130
|
radboy/DB/__pycache__/config.cpython-313.pyc,sha256=_8wCIg_3jhyJjxnExD2Sm6aY-uZTw036p7Ki5znL7dc,376
|
|
131
131
|
radboy/DB/__pycache__/db.cpython-311.pyc,sha256=rNgigyBd0D-cg1JxKAS8t0B_k0IEJivgVlRaZE10Xis,210105
|
|
132
132
|
radboy/DB/__pycache__/db.cpython-312.pyc,sha256=ANDJPC0RoavbmSKFxG15vC7B4rEGyVt7xRJt7XGY3OA,334609
|
|
133
|
-
radboy/DB/__pycache__/db.cpython-313.pyc,sha256=
|
|
133
|
+
radboy/DB/__pycache__/db.cpython-313.pyc,sha256=pCxGOpK0cYXUxhc7CeZHYYxXk7d9qk6jgdKbQCQO0y8,401844
|
|
134
134
|
radboy/DB/__pycache__/glossary_db.cpython-312.pyc,sha256=8UL-29cKqtKovx0BANm6kzKKteef1BW_2qF3wumzst4,36023
|
|
135
135
|
radboy/DB/__pycache__/glossary_db.cpython-313.pyc,sha256=Ke9bkvllGv5CK0JdT9DRvQ3MOdrXxoYv7TVLNkqLux0,36582
|
|
136
136
|
radboy/DB/__pycache__/masterLookup.cpython-312.pyc,sha256=bQiOkmMwwHgcO18tYSWGQ-YUff4GQlKVhBMp1GoWAqY,6324
|
|
@@ -172,10 +172,10 @@ radboy/ExportList/__pycache__/ExportListCurrent.cpython-313.pyc,sha256=dzQW8WMGX
|
|
|
172
172
|
radboy/ExportList/__pycache__/__init__.cpython-311.pyc,sha256=Un4CG_te_VMBqYQel5c4jsw4sHe_LYZWSaXx_vVJL9w,235
|
|
173
173
|
radboy/ExportList/__pycache__/__init__.cpython-312.pyc,sha256=NdzphL0FHS2zypVi1pG6SoNpv3v3ZynIN2WSl0VMnd8,273
|
|
174
174
|
radboy/ExportList/__pycache__/__init__.cpython-313.pyc,sha256=xitjWDqLahSMr4qux3sM0AyU-LZF_5XYDKruBvnPr8I,152
|
|
175
|
-
radboy/ExportUtility/ExportTableClass.py,sha256=
|
|
175
|
+
radboy/ExportUtility/ExportTableClass.py,sha256=aU_1sk-RwAZ9RYQpi83oVL3CyOK32w47a4DDKkNMSAI,18688
|
|
176
176
|
radboy/ExportUtility/__init__.py,sha256=cybpF7RcHJkB2V6Fc37B5X2LLUfCtlveVpz8P4nRmo4,902
|
|
177
177
|
radboy/ExportUtility/__pycache__/ExportTableClass.cpython-312.pyc,sha256=R3crrAJq1SZHaIEskRkNfm1kQ4akcfw8cXK0A8SQcZ8,30267
|
|
178
|
-
radboy/ExportUtility/__pycache__/ExportTableClass.cpython-313.pyc,sha256=
|
|
178
|
+
radboy/ExportUtility/__pycache__/ExportTableClass.cpython-313.pyc,sha256=glFgsChdiwFG2TvBnQEI_bxa6qh40x2aTiTtMpSd6EQ,32821
|
|
179
179
|
radboy/ExportUtility/__pycache__/__init__.cpython-312.pyc,sha256=acMdux6Y869oA-gpjY0Fem97iQwq9BAGNrW7AEzUnTI,1308
|
|
180
180
|
radboy/ExportUtility/__pycache__/__init__.cpython-313.pyc,sha256=DrB-8MZCIcENUju5eBxf1tT9Gu5h71rwfayzgm7wx3M,1308
|
|
181
181
|
radboy/ExtraTools/__init__.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=hfn5CF1xVsgEq25ybw7e_JI5tueGiR-vTHYCThqUjtI,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.621.dist-info/METADATA,sha256=tzChPI_20b51FL6s2ZdjjY3ooO95LR6L3VkC93fdpJA,1662
|
|
433
|
+
radboy-0.0.621.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
434
|
+
radboy-0.0.621.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
435
|
+
radboy-0.0.621.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|