radboy 0.0.580__py3-none-any.whl → 0.0.582__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/DatePicker.py CHANGED
@@ -294,8 +294,14 @@ def DateTimePkr(DATE=None):
294
294
  while True:
295
295
  tm=TimePkr()
296
296
  if not tm:
297
- raise Exception("Time is Missing!")
298
- tm=TimePkr()
297
+ try:
298
+ x=datetime.now()
299
+ #tm=TimePkr()
300
+ tm=_time_(x.hour,x.minute,x.second)
301
+ break
302
+ except Exception as e:
303
+ print(e)
304
+ raise Exception("Time is Missing!")
299
305
  else:
300
306
  break
301
307
  while True:
@@ -304,7 +310,12 @@ def DateTimePkr(DATE=None):
304
310
  else:
305
311
  dt=DatePkr()
306
312
  if not dt:
307
- raise Exception("Date is Missing!")
313
+ try:
314
+ dt=datetime.now()
315
+ break
316
+ except Exception as e:
317
+ print(e)
318
+ raise Exception("Date is Missing!")
308
319
  else:
309
320
  break
310
321
 
@@ -207,7 +207,56 @@ class NEUSetter:
207
207
  print(f"{Fore.light_sea_green}Done{Fore.light_yellow} Cleaning PairCollection's{Style.reset}")
208
208
 
209
209
  #scan through PairCollection table and check each barcode for an entry in Entry and if not exists, prompt to create it/skip it/delete it, perform said action, and remove PairCollection with corresponding Barcode
210
-
210
+
211
+ def delete(self):
212
+ while True:
213
+ try:
214
+ if self.code in [None,]:
215
+ barcode=Prompt.__init2__(None,func=FormBuilderMkText,ptext=f"[DELETE] {Fore.light_green}Barcode|{Fore.turquoise_4}Code|{Fore.light_magenta}Name{Fore.light_yellow}:",helpText="what are you looking for?",data="string")
216
+ if barcode in ['d',None]:
217
+ return
218
+ else:
219
+ barcode=self.code
220
+ with Session(ENGINE) as session:
221
+ query=session.query(Entry).filter(or_(
222
+ Entry.Barcode==barcode,
223
+ Entry.Code==barcode,
224
+ Entry.Barcode.icontains(barcode),
225
+ Entry.Code.icontains(barcode),
226
+ Entry.Name.icontains(barcode)
227
+ ))
228
+ results=query.all()
229
+ ct=len(results)
230
+ if ct == 0:
231
+ print("Nothing Found")
232
+ if self.code in [None,]:
233
+ continue
234
+ else:
235
+ return
236
+
237
+ for num,entry in enumerate(results):
238
+ msg=f'{Fore.light_green}{num}/{Fore.light_yellow}{num+1} of {Fore.light_red}{ct} -> {entry.seeShort()}'
239
+ print(msg)
240
+ whiches=Prompt.__init2__(None,func=FormBuilderMkText,ptext=f"[DELETE]which {Fore.light_green}index{Fore.light_yellow}?: ",helpText=f"{Fore.light_steel_blue}which index {Fore.light_yellow}number in light yellow{Style.reset}",data="list")
241
+ if whiches is None:
242
+ return
243
+ elif whiches in [[],'d']:
244
+ return
245
+ for which in whiches:
246
+ try:
247
+ index=int(which)
248
+ try:
249
+ session.delete(results[index])
250
+ session.commit()
251
+ except Exception as e:
252
+ print(e)
253
+ session.rollback()
254
+ except Exception as e:
255
+ print(e)
256
+ break
257
+ except Exception as e:
258
+ print(e)
259
+ return
211
260
 
212
261
  def setFieldByName(self,fname):
213
262
  fnames=[]
radboy/TasksMode/Tasks.py CHANGED
@@ -1788,12 +1788,15 @@ so use {Fore.orange_red_1}ls-lq/ls Shelf {Fore.light_yellow}from {Fore.light_mag
1788
1788
  {Fore.light_steel_blue}find_dupes|fd|clean_dups - {expo_color}find and delete duplicates{Style.reset}
1789
1789
  {Fore.light_steel_blue}cleanpc|clean_pc -{expo_color}Clean PairCollections{Style.reset}
1790
1790
  {Fore.light_steel_blue}cleanexp|clean_exp -{expo_color}Clean Expiry{Style.reset}
1791
+ {Fore.light_red}delete,remove{Fore.orange_red_1} Delete/Remove Entry(s){Style.reset}
1791
1792
  {helpMsg2}{Style.reset}'''
1792
1793
  while True:
1793
1794
  try:
1794
1795
  doWhat=Prompt.__init2__(None,func=mkTl,ptext=f"{h}Do What?",helpText=htext,data=self)
1795
1796
  if doWhat in [None,]:
1796
1797
  return
1798
+ elif doWhat.lower() in ["delete","remove"]:
1799
+ NEUSetter(code=code).delete()
1797
1800
  elif doWhat.lower() in ['em','extras menu']:
1798
1801
  EntryDataExtrasMenu(code=code)
1799
1802
  elif doWhat.lower() in ['nfa',f"nfa","new entry from all","new_entry_from_all","nefa"]:
@@ -2565,6 +2568,12 @@ so use {Fore.orange_red_1}ls-lq/ls Shelf {Fore.light_yellow}from {Fore.light_mag
2565
2568
  entrySepStart=f'{Back.grey_30}{Fore.light_red}\\\\{Fore.light_green}{"*"*10}{Fore.light_yellow}|{Fore.light_steel_blue}#REPLACE#{Fore.light_magenta}|{Fore.orange_red_1}{"+"*10}{Fore.light_yellow}{Style.bold}({today()}){Fore.light_red}//{Style.reset}'
2566
2569
  entrySepEnd=f'{Back.grey_30}{Fore.light_red}\\\\{Fore.orange_red_1}{"+"*10}{Fore.light_yellow}|{Fore.light_steel_blue}#REPLACE#{Fore.light_magenta}|{Fore.light_green}{"*"*10}{Fore.light_yellow}{Style.bold}({today()}){Fore.light_red}//{Style.reset}'
2567
2570
  def setFieldInList(self,fieldname,load=False,repack_exec=None,barcode=None,only_select_qty=False):
2571
+ try:
2572
+ self.setFieldInList_(fieldname,load=False,repack_exec=None,barcode=None,only_select_qty=False)
2573
+ except Exception as e:
2574
+ print(e)
2575
+
2576
+ def setFieldInList_(self,fieldname,load=False,repack_exec=None,barcode=None,only_select_qty=False):
2568
2577
  #determine if ascending or descending by
2569
2578
  def hnf(resultx,fieldname,code):
2570
2579
  if isinstance(resultx,Entry):
@@ -3191,6 +3200,7 @@ Location Fields:
3191
3200
  {Fore.dark_goldenrod}Barcode={Fore.light_green}{BCD}|{Style.reset}{Fore.light_sea_green}ALT_Barcode={Fore.turquoise_4}{ABCD}{Style.reset}
3192
3201
  {Style.bold}{Fore.orange_red_1}Code={Fore.spring_green_3a}{CD}{Style.reset}'''
3193
3202
  if isinstance(result,Entry):
3203
+ taxRate=decc(0)
3194
3204
  if result.Price is None:
3195
3205
  result.Price=Decimal('0.00')
3196
3206
  if result.Tax is None:
radboy/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION='0.0.580'
1
+ VERSION='0.0.582'
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: radboy
3
- Version: 0.0.580
3
+ Version: 0.0.582
4
4
  Summary: A Retail Calculator for Android/Linux
5
5
  Author: Carl Joseph Hirner III
6
6
  Author-email: Carl Hirner III <k.j.hirner.wisdom@gmail.com>
@@ -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=lMlpph2bcDNkUs1t27yEW_MLXhUyr3i6E7pXk-0vbg4,17
8
+ radboy/__init__.py,sha256=h34q7HshQcxbTUb4skjtPZ3c77ATc8jAqQUqW6O97Ic,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
@@ -79,7 +79,7 @@ radboy/ConvertCode/__pycache__/codep.cpython-311.pyc,sha256=-qJqPEjGOP1-x6Xw6W4M
79
79
  radboy/CookBook/CookBook.py,sha256=udDoeFxrSBdCwhrsWRN3gKW23tVI6hl5pH8p2adc99A,18403
80
80
  radboy/CookBook/__init__.py,sha256=svTiqqFxHZeqYCRorLx6qLxL3oI1pil4fxomm-kkQ88,927
81
81
  radboy/DB/CoinCombo.py,sha256=NJfTmx3XYgS41zkAyyO2W6de1Mj3rWsCWqU4ikHfvJI,13604
82
- radboy/DB/DatePicker.py,sha256=6eNjmryFWPpzrRYmI418UwSGin3XpJlL52h8cauanbY,18004
82
+ 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
@@ -101,7 +101,7 @@ radboy/DB/renderText2Png.py,sha256=PWnTicLTfOPg9UlQYia3wMpjM9rh7MIyDVsmcsDRUBo,5
101
101
  radboy/DB/testClass.py,sha256=t3zT1gbvReUncnPY8R9JUfKXQ5UEB2wmQx8DNeds0hI,310
102
102
  radboy/DB/__pycache__/DatePicker.cpython-311.pyc,sha256=VMJnJ7scb4VHMQi1HDZCF67KVYfb9m-fZK96IAoJzTQ,19676
103
103
  radboy/DB/__pycache__/DatePicker.cpython-312.pyc,sha256=cc5XWJ6Sbtcg0xWPz3SOP93VceIqr1pH42kjkLl5iYs,30294
104
- radboy/DB/__pycache__/DatePicker.cpython-313.pyc,sha256=mvdR-dzPS3X6tMFBDaMUoxIVU_NPh-zSvBdVJB66TQg,33508
104
+ radboy/DB/__pycache__/DatePicker.cpython-313.pyc,sha256=jV__j5ER1oshsenGPynR0UNHWMI7VStgyw73-iLKxzg,33993
105
105
  radboy/DB/__pycache__/DisplayItemDb.cpython-312.pyc,sha256=n2nRfavATZBSa7rBgH39pd11Ka-nUfGHVzr-R9KO7_Q,63121
106
106
  radboy/DB/__pycache__/DisplayItemDb.cpython-313.pyc,sha256=M4jujGXKVqYObZKQipamkTpw68YhEWLqBmywtPgnG-A,63715
107
107
  radboy/DB/__pycache__/ExerciseTracker.cpython-312.pyc,sha256=KzCmPhacS7t-70cpZM5tCnL8mBmRbA9dc4uuatdcQkI,34820
@@ -342,17 +342,17 @@ radboy/SystemSettings/__pycache__/SystemSettings.cpython-313.pyc,sha256=ddGbkpJe
342
342
  radboy/SystemSettings/__pycache__/__init__.cpython-312.pyc,sha256=aIzp4Po0t8EhSAE8ytO-tJlNuKnEzAWPi1fzEIoGesI,277
343
343
  radboy/SystemSettings/__pycache__/__init__.cpython-313.pyc,sha256=QFDuoidxMWsGVLsy5lN-rDs6TP8nKJ4yyCyiamNOhwo,156
344
344
  radboy/TasksMode/ReFormula.py,sha256=REDRJYub-OEOE6g14oRQOLOQwv8pHqVJy4NQk3CCM90,2255
345
- radboy/TasksMode/SetEntryNEU.py,sha256=Gu0Z677tjpc7-9AQtLbIr7yzPx6ZJXGK33lOIgU0IRM,17432
346
- radboy/TasksMode/Tasks.py,sha256=2FRctFo6clYUXd6-fYq5mqkoYwuBJvEyRnRg1W1ENPs,341806
345
+ radboy/TasksMode/SetEntryNEU.py,sha256=i4HyPq-LNDRwYN-q_CpZDAdzipe9Dx5TWeaXRCdX79k,19818
346
+ radboy/TasksMode/Tasks.py,sha256=vAr5RXvJD46hgoDp6ujtX9JPrpjYaBMm0o449zesfNU,342326
347
347
  radboy/TasksMode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
348
348
  radboy/TasksMode/__pycache__/ReFormula.cpython-311.pyc,sha256=QEG3PwVw-8HTd_Mf9XbVcxU56F1fC9yBqWXYPLC39DU,4865
349
349
  radboy/TasksMode/__pycache__/ReFormula.cpython-312.pyc,sha256=aX7BWm2PPjCTnxsbGUitR-2h9hq4AjaBiHMrUXvIl0Y,3967
350
350
  radboy/TasksMode/__pycache__/ReFormula.cpython-313.pyc,sha256=BfNrg6vlQn5f2asq3gT7JVYC0sOLmYqQyuBPTGJXPNk,3901
351
351
  radboy/TasksMode/__pycache__/SetEntryNEU.cpython-312.pyc,sha256=pCdFj61aPKkHL6SvZZ4jUfWJulvDbKue4HGFTIeteOU,17671
352
- radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc,sha256=UExwr8dN2STFEDE5t_YnQFMUX-wGv7JH10I1OyBDRtM,20212
352
+ radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc,sha256=XFHp4zFZKm7bREkoR9QB1Z6AzuFxW0-yRkGaSSyRTb0,23533
353
353
  radboy/TasksMode/__pycache__/Tasks.cpython-311.pyc,sha256=6QOTJnLiXSKdF81hkhy3vyrz49PPhS20s5_0X52g3Hw,131120
354
354
  radboy/TasksMode/__pycache__/Tasks.cpython-312.pyc,sha256=hyJwdaYaaRLdcrNxgg36diJ5iijX5_3I0UAORsj-6LU,310295
355
- radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=VPIU4QK7Hzk8vj0qnRSfICVp7nSokfKwdyRvM_C6IuI,415580
355
+ radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=JhhnO4PIUEJnvlRNTTqE2AD3KKBAIJwjhOGqK_jvrsA,416394
356
356
  radboy/TasksMode/__pycache__/__init__.cpython-311.pyc,sha256=PKV1JbihEacm639b53bZozRQvcllSkjGP3q8STVMxF4,234
357
357
  radboy/TasksMode/__pycache__/__init__.cpython-312.pyc,sha256=ERgnEvRMiGSecWp1BpNzLdSq_SdKw7GvFWUvUM7bLVw,272
358
358
  radboy/TasksMode/__pycache__/__init__.cpython-313.pyc,sha256=lvsTxukyvGKB3C0rdF9dQi_bvVh6ceDVINfwcuIsd0s,151
@@ -399,7 +399,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
399
399
  radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
400
400
  radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
401
401
  radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
402
- radboy/__pycache__/__init__.cpython-313.pyc,sha256=RIf32e998FGt2Qc899XjsyQ-ECVuxUG0D-b2h85LMHg,165
402
+ radboy/__pycache__/__init__.cpython-313.pyc,sha256=RI33bTqPwY9oxzGcXM6ZUXe7lh89CNa4eDt0GMtGgGM,165
403
403
  radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
404
404
  radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
405
405
  radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
@@ -427,7 +427,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
427
427
  radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
428
428
  radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
429
429
  radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
430
- radboy-0.0.580.dist-info/METADATA,sha256=GBBWbx_T1QhgD894RO1NG_bfgKnfp6uLTEl5LZdp-P4,1662
431
- radboy-0.0.580.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
432
- radboy-0.0.580.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
433
- radboy-0.0.580.dist-info/RECORD,,
430
+ radboy-0.0.582.dist-info/METADATA,sha256=AxSNDuD5ECe-1hAj-2mE8SpnHhzIxt46NosHiTNLM7Y,1662
431
+ radboy-0.0.582.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
432
+ radboy-0.0.582.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
433
+ radboy-0.0.582.dist-info/RECORD,,