radboy 0.0.829__py3-none-any.whl → 0.0.831__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.

Binary file
radboy/DB/db.py CHANGED
@@ -1187,9 +1187,9 @@ For hot food, one of the notable exceptions is "Hot Baked Goods," like pretzels
1187
1187
  ShelfCount=Column(Integer,default=0)
1188
1188
  #LoadCount=1,PalletCount=1,ShelfCount=1
1189
1189
 
1190
- Expiry=Column(DateTime,default=datetime(1,1,1))
1191
- BestBy=Column(DateTime,default=datetime(1,1,1))
1192
- AquisitionDate=Column(DateTime,default=datetime(1,1,1))
1190
+ Expiry=Column(DateTime,default=None)
1191
+ BestBy=Column(DateTime,default=None)
1192
+ AquisitionDate=Column(DateTime,default=None)
1193
1193
  '''
1194
1194
  #__init__ def #AquisitionDate=None,BestBy=None,Expiry=None
1195
1195
 
@@ -1304,7 +1304,7 @@ For hot food, one of the notable exceptions is "Hot Baked Goods," like pretzels
1304
1304
  if k in [s.name for s in self.__table__.columns]:
1305
1305
  setattr(self,k,kwargs.get(k))
1306
1306
 
1307
- def __init__(self,Barcode,Code,upce2upca='',Name='',InList=True,Price=0.0,Note='',Size='',CaseCount=1,Shelf=0,BackRoom=0,Display_1=0,Display_2=0,Display_3=0,Display_4=0,Display_5=0,Display_6=0,Stock_Total=0,Timestamp=datetime.now().timestamp(),EntryId=None,Location='///',ListQty=0.0,Image='',CHKSTND_SPLY=0,WD_DSPLY=0,FLRL_CHP_DSPLY=0,FLRL_WTR_DSPLY=0,SBX_WTR_KLR=0,SBX_CHP_DSPLY=0,SBX_WTR_DSPLY=0,Facings=0,Tags='',CaseID_6W='',CaseID_BR='',CaseID_LD='',ALT_Barcode='',DUP_Barcode='',CRV=0.0,Tax=0.0,TaxNote='',userUpdated=False,LoadCount=1,PalletCount=1,ShelfCount=1,Description='',Distress=0,UnitsDeep=1,UnitsHigh=1,AquisitionDate=datetime(1,1,1),BestBy=datetime(1,1,1),Expiry=datetime(1,1,1)):
1307
+ def __init__(self,Barcode,Code,upce2upca='',Name='',InList=True,Price=0.0,Note='',Size='',CaseCount=1,Shelf=0,BackRoom=0,Display_1=0,Display_2=0,Display_3=0,Display_4=0,Display_5=0,Display_6=0,Stock_Total=0,Timestamp=datetime.now().timestamp(),EntryId=None,Location='///',ListQty=0.0,Image='',CHKSTND_SPLY=0,WD_DSPLY=0,FLRL_CHP_DSPLY=0,FLRL_WTR_DSPLY=0,SBX_WTR_KLR=0,SBX_CHP_DSPLY=0,SBX_WTR_DSPLY=0,Facings=0,Tags='',CaseID_6W='',CaseID_BR='',CaseID_LD='',ALT_Barcode='',DUP_Barcode='',CRV=0.0,Tax=0.0,TaxNote='',userUpdated=False,LoadCount=1,PalletCount=1,ShelfCount=1,Description='',Distress=0,UnitsDeep=1,UnitsHigh=1,AquisitionDate=None,BestBy=None,Expiry=None):
1308
1308
  if EntryId:
1309
1309
  self.EntryId=EntryId
1310
1310
  self.CRV=CRV
@@ -1386,18 +1386,6 @@ For hot food, one of the notable exceptions is "Hot Baked Goods," like pretzels
1386
1386
  self.ShelfCount=ShelfCount
1387
1387
  self.PalletCount=PalletCount
1388
1388
  self.LoadCount=LoadCount
1389
- if Expiry is None:
1390
- self.Expiry=datetime(1,1,1)
1391
- else:
1392
- self.Expiry=Expiry
1393
- if BestBy is None:
1394
- self.BestBy=datetime(1,1,1)
1395
- else:
1396
- self.BestBy=BestBy
1397
- if AquisitionDate is None:
1398
- self.AquisitionDate=datetime(1,1,1)
1399
- else:
1400
- self.AquisitionDate=AquisitionDate
1401
1389
  #CHKSTND_SPLY=0,WD_DSPLY=0,FLRL_CHP_DSPLY=0,FLRL_WTR_DSPLY=0,SBX_WTR_KLR=0,SBX_CHP_DSPLY=0,SBX_WTR_DSPLY=0,Facings=0,Tags='',CaseID_6W='',CaseID_BR='',CaseID_LD='',ALT_Barcode='',DUP_Barcode=''
1402
1390
 
1403
1391
  '''
@@ -1616,12 +1604,6 @@ For hot food, one of the notable exceptions is "Hot Baked Goods," like pretzels
1616
1604
  return result
1617
1605
 
1618
1606
  def saveListExtended(self,num):
1619
- if self.Expiry is None:
1620
- self.Expiry=datetime(1,1,1)
1621
- if self.BestBy is None:
1622
- self.BestBy=datetime(1,1,1)
1623
- if self.AquisitionDate is None:
1624
- self.AquisitionDate=datetime(1,1,1)
1625
1607
  if self.LCL_ANDROID.exists():
1626
1608
  self.LCL=self.LCL_ANDROID
1627
1609
  total=self.Display_1+self.Display_2+self.Display_3+self.Display_4+self.Display_5+self.Display_6+self.Shelf+self.BackRoom
@@ -1664,9 +1646,9 @@ CHKSTND_SPLY={self.CHKSTND_SPLY}
1664
1646
  Distress={self.Distress} #not added to total
1665
1647
  Total = {total}
1666
1648
  Total(w/o BR+) - Backroom = {(total-self.BackRoom)-self.BackRoom}
1667
- Expiry = {self.Expiry}[{self.Expiry-datetime.now()} old]
1668
- BestBy = {self.BestBy}[{self.BestBy-datetime.now()} old]
1669
- AquisitionDate = {self.AquisitionDate}[{self.AquisitionDate-datetime.now()} old]
1649
+ Expiry = {self.Expiry}
1650
+ BestBy = {self.BestBy}
1651
+ AquisitionDate = {self.AquisitionDate}
1670
1652
  -------------{num}-------------
1671
1653
  """
1672
1654
 
@@ -1725,12 +1707,6 @@ Facings={self.Facings}
1725
1707
  return total
1726
1708
 
1727
1709
  def listdisplay_extended(self,num):
1728
- if self.Expiry is None:
1729
- self.Expiry=datetime(1,1,1)
1730
- if self.BestBy is None:
1731
- self.BestBy=datetime(1,1,1)
1732
- if self.AquisitionDate is None:
1733
- self.AquisitionDate=datetime(1,1,1)
1734
1710
  #print(self.csv_headers())
1735
1711
  #print(self.csv_values())
1736
1712
  total=self.Display_1+self.Display_2+self.Display_3+self.Display_4+self.Display_5+self.Display_6+self.Shelf+self.BackRoom
@@ -1791,9 +1767,9 @@ deducted from Total as remainder is to be filled from LOAD{Style.reset}
1791
1767
  {Fore.medium_violet_red}Total Product Handled/To Be Handled Value*CaseCount: {Fore.spring_green_3a}{total_value_case}{Style.reset}
1792
1768
  {Fore.orange_3}Distressed Product:{Fore.light_red}{self.Distress}{Style.reset}
1793
1769
  ------------- Dates ----------------------
1794
- {Fore.light_cyan}Expiry = {Fore.light_green}{self.Expiry}[{self.Expiry-datetime.now()} old]{Style.reset}
1795
- {Fore.light_cyan}BestBy = {Fore.light_green}{self.BestBy}[{self.BestBy-datetime.now()} old]{Style.reset}
1796
- {Fore.light_cyan}AquisitionDate = {Fore.light_green}{self.AquisitionDate}[{self.AquisitionDate-datetime.now()} old]{Style.reset}
1770
+ {Fore.light_cyan}Expiry = {Fore.light_green}{self.Expiry}{Style.reset}
1771
+ {Fore.light_cyan}BestBy = {Fore.light_green}{self.BestBy}{Style.reset}
1772
+ {Fore.light_cyan}AquisitionDate = {Fore.light_green}{self.AquisitionDate}{Style.reset}
1797
1773
  -------------{Style.bold+Style.underline+Fore.orange_red_1}{num}{Style.reset}-------------
1798
1774
  """
1799
1775
  print(msg)
@@ -1880,12 +1856,20 @@ deducted from Total as remainder is to be filled from LOAD{Style.reset}
1880
1856
 
1881
1857
  pinfo=f"{Back.green_3a}{Fore.red}**{Fore.white}{Style.bold}Product/Entry Info{Fore.red}- #REPLACE#**{Style.reset} "
1882
1858
  def __repr__(self):
1883
- if self.Expiry is None:
1884
- self.Expiry=datetime(1,1,1)
1885
- if self.BestBy is None:
1886
- self.BestBy=datetime(1,1,1)
1887
- if self.AquisitionDate is None:
1888
- self.AquisitionDate=datetime(1,1,1)
1859
+ if self.Expiry is not None:
1860
+ expiry_age=self.Expiry-datetime.now()
1861
+ else:
1862
+ expiry_age=timedelta(days=0)
1863
+ if self.BestBy is not None:
1864
+ bestby_age=self.BestBy-datetime.now()
1865
+ else:
1866
+ bestby_age=timedelta(days=0)
1867
+
1868
+ if self.AquisitionDate is not None:
1869
+ aqd_age=self.AquisitionDate-datetime.now()
1870
+ else:
1871
+ aqd_age=timedelta(days=0)
1872
+
1889
1873
  pinfo=self.pinfo
1890
1874
  total_value=self.total_value(CaseMode=False)
1891
1875
  total_value_case=self.total_value()
@@ -1949,9 +1933,9 @@ deducted from Total as remainder is to be filled from LOAD{Style.reset}
1949
1933
 
1950
1934
  {Fore.orange_3}Distressed Product:{Fore.light_red}{self.Distress}{Style.reset}
1951
1935
  ------------- Dates -----------------
1952
- {Fore.light_cyan}Expiry{Fore.grey_70}[{types['Expiry']}{Fore.light_cyan}]={Fore.light_green}{self.Expiry}[{self.Expiry-datetime.now()} old]{Style.reset}
1953
- {Fore.light_cyan}BestBy{Fore.grey_70}[{types['BestBy']}{Fore.light_cyan}]={Fore.light_green}{self.BestBy}[{self.BestBy-datetime.now()} old]{Style.reset}
1954
- {Fore.light_cyan}AquisitionDate{Fore.grey_70}[{types['AquisitionDate']}{Fore.light_cyan}]={Fore.light_green}{self.AquisitionDate}[{self.AquisitionDate-datetime.now()} old]{Style.reset}
1936
+ {Fore.light_cyan}Expiry{Fore.grey_70}[{types['Expiry']}{Fore.light_cyan}]={Fore.light_green}{self.Expiry}[{expiry_age} old]{Style.reset}
1937
+ {Fore.light_cyan}BestBy{Fore.grey_70}[{types['BestBy']}{Fore.light_cyan}]={Fore.light_green}{self.BestBy}[{bestby_age} old]{Style.reset}
1938
+ {Fore.light_cyan}AquisitionDate{Fore.grey_70}[{types['AquisitionDate']}{Fore.light_cyan}]={Fore.light_green}{self.AquisitionDate}[{aqd_age} old]{Style.reset}
1955
1939
 
1956
1940
  {Fore.sky_blue_2}Size{Style.reset}:{Fore.grey_70}{types['Size']}{Style.reset}={self.Size}
1957
1941
  {Fore.tan}Image[{Fore.dark_goldenrod}Exists:{Fore.deep_pink_3b}{self.imageExists()}{Style.reset}{Fore.tan}]{Style.reset}:{Fore.grey_70}{types['Image']}{Style.reset}={self.Image}
@@ -2121,9 +2105,9 @@ class DayLog(BASE,EntryExtras):
2121
2105
  WD_DSPLY=WD_DSPLY=Column(Integer)
2122
2106
  CHKSTND_SPLY=CHKSTND_SPLY=Column(Integer)
2123
2107
 
2124
- Expiry=Column(DateTime,default=datetime(1,1,1))
2125
- BestBy=Column(DateTime,default=datetime(1,1,1))
2126
- AquisitionDate=Column(DateTime,default=datetime(1,1,1))
2108
+ Expiry=Column(DateTime,default=None)
2109
+ BestBy=Column(DateTime,default=None)
2110
+ AquisitionDate=Column(DateTime,default=None)
2127
2111
  '''
2128
2112
  #__init__ def #AquisitionDate=None,BestBy=None,Expiry=None
2129
2113
 
@@ -2225,7 +2209,7 @@ class DayLog(BASE,EntryExtras):
2225
2209
  {Fore.light_yellow}Name({Fore.pale_green_1b}{self.Name}{Fore.light_yellow}) {Fore.light_magenta}Price Per Unit({Fore.slate_blue_1}prc={self.Price}{Fore.light_magenta},crv={self.CRV},tax={self.Tax},ttl={formula}){Style.reset} {Fore.misty_rose_3}EID({Fore.pale_green_1b}{self.EntryId}{Fore.light_yellow}) {Fore.spring_green_3a}[BCD/UPC[A/E]/EAN[8/13]/GTIN](cd={Fore.light_magenta}{rebar},{Fore.chartreuse_1}no_sep={self.rebar(skip_sep=True)}{Fore.spring_green_3a}){Style.reset}{Fore.slate_blue_1} -{Fore.cyan}> {Fore.orange_red_1}[SHELF/TAG/CIC/STR_CD]({Fore.light_red}cd={self.cfmt(self.Code)}{Fore.orange_red_1},{Fore.light_steel_blue}DayLogId={self.DayLogId},{Fore.pale_green_1b}EntryId={self.EntryId}){Style.reset}'''
2226
2210
  return msg
2227
2211
 
2228
- def __init__(self,Barcode,Code,upce2upca='',Name='',InList=False,Price=0.0,Note='',Size='',CaseCount=0,Shelf=0,BackRoom=0,Display_1=0,Display_2=0,Display_3=0,Display_4=0,Display_5=0,Display_6=0,Stock_Total=0,Timestamp=datetime.now().timestamp(),EntryId=None,Location='///',ListQty=0.0,Image='',CHKSTND_SPLY=0,WD_DSPLY=0,FLRL_CHP_DSPLY=0,FLRL_WTR_DSPLY=0,SBX_WTR_KLR=0,SBX_CHP_DSPLY=0,SBX_WTR_DSPLY=0,Facings=0,Tags='',CaseID_6W='',CaseID_BR='',CaseID_LD='',ALT_Barcode='',DUP_Barcode='',DayLogDate=datetime.now(),DayLogId=None,CRV=0.0,Tax=0.0,TaxNote='',userUpdated=False,LoadCount=1,PalletCount=1,ShelfCount=1,Description='',Distress=0,UnitsDeep=1,UnitsHigh=1,AquisitionDate=datetime(1,1,1),BestBy=datetime(1,1,1),Expiry=datetime(1,1,1)):
2212
+ def __init__(self,Barcode,Code,upce2upca='',Name='',InList=False,Price=0.0,Note='',Size='',CaseCount=0,Shelf=0,BackRoom=0,Display_1=0,Display_2=0,Display_3=0,Display_4=0,Display_5=0,Display_6=0,Stock_Total=0,Timestamp=datetime.now().timestamp(),EntryId=None,Location='///',ListQty=0.0,Image='',CHKSTND_SPLY=0,WD_DSPLY=0,FLRL_CHP_DSPLY=0,FLRL_WTR_DSPLY=0,SBX_WTR_KLR=0,SBX_CHP_DSPLY=0,SBX_WTR_DSPLY=0,Facings=0,Tags='',CaseID_6W='',CaseID_BR='',CaseID_LD='',ALT_Barcode='',DUP_Barcode='',DayLogDate=datetime.now(),DayLogId=None,CRV=0.0,Tax=0.0,TaxNote='',userUpdated=False,LoadCount=1,PalletCount=1,ShelfCount=1,Description='',Distress=0,UnitsDeep=1,UnitsHigh=1,AquisitionDate=None,BestBy=None,Expiry=None):
2229
2213
  if EntryId:
2230
2214
  self.EntryId=EntryId
2231
2215
  self.AquisitionDate=AquisitionDate
@@ -2269,18 +2253,6 @@ class DayLog(BASE,EntryExtras):
2269
2253
  self.Image=Image
2270
2254
  self.Tags=Tags
2271
2255
  self.Facings=Facings
2272
- if Expiry is None:
2273
- self.Expiry=datetime(1,1,1)
2274
- else:
2275
- self.Expiry=Expiry
2276
- if BestBy is None:
2277
- self.BestBy=datetime(1,1,1)
2278
- else:
2279
- self.BestBy=BestBy
2280
- if AquisitionDate is None:
2281
- self.AquisitionDate=datetime(1,1,1)
2282
- else:
2283
- self.AquisitionDate=AquisitionDate
2284
2256
 
2285
2257
 
2286
2258
  self.ALT_Barcode=ALT_Barcode
@@ -2499,12 +2471,6 @@ class DayLog(BASE,EntryExtras):
2499
2471
  return result
2500
2472
 
2501
2473
  def saveListExtended(self,num):
2502
- if self.Expiry is None:
2503
- self.Expiry=datetime(1,1,1)
2504
- if self.BestBy is None:
2505
- self.BestBy=datetime(1,1,1)
2506
- if self.AquisitionDate is None:
2507
- self.AquisitionDate=datetime(1,1,1)
2508
2474
  if self.LCL_ANDROID.exists():
2509
2475
  self.LCL=self.LCL_ANDROID
2510
2476
  total=self.Display_1+self.Display_2+self.Display_3+self.Display_4+self.Display_5+self.Display_6+self.Shelf+self.BackRoom
@@ -2549,9 +2515,9 @@ CHKSTND_SPLY={self.CHKSTND_SPLY}
2549
2515
  Total = {total}
2550
2516
  Distressed={self.Distress} #not included in total
2551
2517
  Total(w/o BR+) - Backroom = {(total-self.BackRoom)-self.BackRoom}
2552
- Expiry = {self.Expiry}[{self.Expiry-datetime.now()} old]
2553
- BestBy = {self.BestBy}[{self.BestBy-datetime.now()} old]
2554
- AquisitionDate = {self.AquisitionDate}[{self.AquisitionDate-datetime.now()} old]
2518
+ Expiry = {self.Expiry}
2519
+ BestBy = {self.BestBy}
2520
+ AquisitionDate = {self.AquisitionDate}
2555
2521
  -------------{num}-------------
2556
2522
  """
2557
2523
 
@@ -2571,12 +2537,6 @@ Facings={self.Facings}
2571
2537
  '''
2572
2538
 
2573
2539
  def listdisplay_extended(self,num):
2574
- if self.Expiry is None:
2575
- self.Expiry=datetime(1,1,1)
2576
- if self.BestBy is None:
2577
- self.BestBy=datetime(1,1,1)
2578
- if self.AquisitionDate is None:
2579
- self.AquisitionDate=datetime(1,1,1)
2580
2540
  #print(self.csv_headers())
2581
2541
  #print(self.csv_values())
2582
2542
  total=self.Display_1+self.Display_2+self.Display_3+self.Display_4+self.Display_5+self.Display_6+self.Shelf+self.BackRoom
@@ -2634,9 +2594,9 @@ Facings={self.Facings}
2634
2594
  deducted from Total as remainder is to be filled from LOAD{Style.reset}
2635
2595
  {Fore.cyan}{Style.bold}2->{Style.reset}{Fore.hot_pink_2}Total(w/o BR+) - Backroom{Style.reset} = {Fore.light_yellow}{(total-self.BackRoom)-self.BackRoom}{Style.reset}
2636
2596
  ------------- Dates ------------------
2637
- {Fore.light_cyan}Expiry = {Fore.light_green}{self.Expiry}[{self.Expiry-datetime.now()} old]{Style.reset}
2638
- {Fore.light_cyan}BestBy = {Fore.light_green}{self.BestBy}[{self.BestBy-datetime.now()} old]{Style.reset}
2639
- {Fore.light_cyan}AquisitionDate = {Fore.light_green}{self.AquisitionDate}[{self.AquisitionDate-datetime.now()} old]{Style.reset}
2597
+ {Fore.light_cyan}Expiry = {Fore.light_green}{self.Expiry}{Style.reset}
2598
+ {Fore.light_cyan}BestBy = {Fore.light_green}{self.BestBy}{Style.reset}
2599
+ {Fore.light_cyan}AquisitionDate = {Fore.light_green}{self.AquisitionDate}{Style.reset}
2640
2600
  -------------{Style.bold+Style.underline+Fore.orange_red_1}{num}{Style.reset}-------------
2641
2601
  """
2642
2602
  print(msg)
@@ -2662,12 +2622,19 @@ deducted from Total as remainder is to be filled from LOAD{Style.reset}
2662
2622
  return ''
2663
2623
 
2664
2624
  def __repr__(self):
2665
- if self.Expiry is None:
2666
- self.Expiry=datetime(1,1,1)
2667
- if self.BestBy is None:
2668
- self.BestBy=datetime(1,1,1)
2669
- if self.AquisitionDate is None:
2670
- self.AquisitionDate=datetime(1,1,1)
2625
+ if self.Expiry is not None:
2626
+ expiry_age=self.Expiry-datetime.now()
2627
+ else:
2628
+ expiry_age=timedelta(days=0)
2629
+ if self.BestBy is not None:
2630
+ bestby_age=self.BestBy-datetime.now()
2631
+ else:
2632
+ bestby_age=timedelta(days=0)
2633
+
2634
+ if self.AquisitionDate is not None:
2635
+ aqd_age=self.AquisitionDate-datetime.now()
2636
+ else:
2637
+ aqd_age=timedelta(days=0)
2671
2638
  types={i.name:str(i.type) for i in self.__table__.columns}
2672
2639
  m= f"""
2673
2640
  {Style.bold}{Style.underline}{Fore.pale_green_1b}Daylog{Style.reset}(
@@ -2727,9 +2694,9 @@ deducted from Total as remainder is to be filled from LOAD{Style.reset}
2727
2694
  {Fore.light_steel_blue}PalletCount{Style.reset}:{Fore.grey_70}{types['PalletCount']}{Style.reset}={self.PalletCount},
2728
2695
  {Fore.light_steel_blue}LoadCount{Style.reset}:{Fore.grey_70}{types['LoadCount']}{Style.reset}={self.LoadCount},
2729
2696
  ------------- Dates ---------------
2730
- {Fore.light_cyan}Expiry{Fore.grey_70}[{types['Expiry']}] = {Fore.light_green}{self.Expiry}[{self.Expiry-datetime.now()} old]{Style.reset}
2731
- {Fore.light_cyan}BestBy{Fore.grey_70}[{types['BestBy']}] = {Fore.light_green}{self.BestBy}[{self.BestBy-datetime.now()} old]{Style.reset}
2732
- {Fore.light_cyan}AquisitionDate{Fore.grey_70}[{types['AquisitionDate']}] = {Fore.light_green}{self.AquisitionDate}[{self.AquisitionDate-datetime.now()} old]{Style.reset}
2697
+ {Fore.light_cyan}Expiry{Fore.grey_70}[{types['Expiry']}] = {Fore.light_green}{self.Expiry}[{expiry_age} old]{Style.reset}
2698
+ {Fore.light_cyan}BestBy{Fore.grey_70}[{types['BestBy']}] = {Fore.light_green}{self.BestBy}[{bestby_age} old]{Style.reset}
2699
+ {Fore.light_cyan}AquisitionDate{Fore.grey_70}[{types['AquisitionDate']}] = {Fore.light_green}[{aqd_age} old]{self.AquisitionDate}{Style.reset}
2733
2700
 
2734
2701
  {Fore.sky_blue_2}Size{Style.reset}:{Fore.grey_70}{types['Size']}{Style.reset}={self.Size}
2735
2702
  {Fore.tan}Image[{Fore.dark_goldenrod}Exists:{Fore.deep_pink_3b}{self.imageExists()}{Style.reset}{Fore.tan}]{Style.reset}:{Fore.grey_70}{types['Image']}{Style.reset}={self.Image}
@@ -4820,7 +4787,7 @@ class HistoryUi:
4820
4787
  ALL_LINES=session.query(PH).all()
4821
4788
  all_lines_ct=len(ALL_LINES)
4822
4789
 
4823
- max_lines=detectGetOrSet('PH_MAXLINES',10000)
4790
+ max_lines=detectGetOrSet('PH_MAXLINES',1000)
4824
4791
  if all_lines_ct >= max_lines:
4825
4792
  for num,line in enumerate(reversed(ALL_LINES)):
4826
4793
  if num <= max_lines:
@@ -5077,10 +5044,10 @@ class HistoryUi:
5077
5044
  else:
5078
5045
  session.delete(results[which])
5079
5046
  session.commit()
5047
+ session.flush()
5080
5048
  self.cmd=None
5081
5049
  except Exception as e:
5082
5050
  print(e)
5083
- session.flush()
5084
5051
 
5085
5052
  def saveHistory(cmd,ageLimit,executed,data):
5086
5053
  HistoryUi(init_only=True,noPrint=True).clean_old()
@@ -5089,6 +5056,7 @@ def saveHistory(cmd,ageLimit,executed,data):
5089
5056
  ph=PH(cmd=cmd,dtod=now+timedelta(seconds=ageLimit),ageLimit=ageLimit,executed=str(executed),data=str(data),dtoe=now)
5090
5057
  session.add(ph)
5091
5058
  session.commit()
5059
+ session.refresh(ph)
5092
5060
 
5093
5061
  max_file_lines=detectGetOrSet("MAX_HFL",500)
5094
5062
  def logInput(text,max_hfl=None,maxed_hfl=True,user=True,filter_colors=False,ofile=None,clear_only=False):
radboy/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION='0.0.829'
1
+ VERSION='0.0.831'
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: radboy
3
- Version: 0.0.829
3
+ Version: 0.0.831
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=h30zoTqt-XLt_afDPlxMxBiKKwmKi3N-yAuldNCqXUo,41476
7
7
  radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
8
- radboy/__init__.py,sha256=O4YeuonuTN1G-oNNjOGrbasFL1ZX2LWu1ik_49aD_so,17
8
+ radboy/__init__.py,sha256=etHicDBF2t-60RzO-0nVQ9f2ni0pggreJkOWTYexOOE,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
@@ -96,7 +96,7 @@ radboy/DB/SMLabelImporter.py,sha256=eUoBDxVUUEKGL2g_PwkASM67ZB7FmXtSnn4bCagskhY,
96
96
  radboy/DB/__init__.py,sha256=JiigA9B7GalP7YuRdcwyGDu5PDSBahoi0lLjtScxlN8,49
97
97
  radboy/DB/blankDataFile.py,sha256=YX_05Usi71UpDkZN9UTMYwUipbTndTAtEgqzBEga0kE,9285
98
98
  radboy/DB/config.py,sha256=bvu43dUl1_yO3Zq3gsLuenGUgJSiS3S9Cs6ppFEvZbg,239
99
- radboy/DB/db.py,sha256=od32JLbXdkV3sX38OsperNVdrRtJRagecR63-TZYaT8,271186
99
+ radboy/DB/db.py,sha256=cDzPO1fcdfTHmTIphOTkJLw9jDHzeFl6UyF1H3qMJIM,269276
100
100
  radboy/DB/glossary_db.py,sha256=1_qxeEpjjEtpWB_eDjsgJisimLv7OBm75MuqM-Lt6zg,28218
101
101
  radboy/DB/jobnotes.txt,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
102
102
  radboy/DB/lsToday.py,sha256=Pevus6GBHLM2xudBEx8u36Q-jYvatOI-y5o72BmFnzA,9435
@@ -138,7 +138,7 @@ radboy/DB/__pycache__/config.cpython-312.pyc,sha256=Qo7E6MHrF6yqvKgepNFyCoekZXiv
138
138
  radboy/DB/__pycache__/config.cpython-313.pyc,sha256=_8wCIg_3jhyJjxnExD2Sm6aY-uZTw036p7Ki5znL7dc,376
139
139
  radboy/DB/__pycache__/db.cpython-311.pyc,sha256=rNgigyBd0D-cg1JxKAS8t0B_k0IEJivgVlRaZE10Xis,210105
140
140
  radboy/DB/__pycache__/db.cpython-312.pyc,sha256=ANDJPC0RoavbmSKFxG15vC7B4rEGyVt7xRJt7XGY3OA,334609
141
- radboy/DB/__pycache__/db.cpython-313.pyc,sha256=O8SprpMzewQxcNR9oHgHAffYGXsYAy0VnbtSWxo-qmQ,425576
141
+ radboy/DB/__pycache__/db.cpython-313.pyc,sha256=n1ZN0c9T_q7lzJAxMNZ8cUjHxEzMe7xZ-ueRvgeWGQU,421839
142
142
  radboy/DB/__pycache__/glossary_db.cpython-312.pyc,sha256=8UL-29cKqtKovx0BANm6kzKKteef1BW_2qF3wumzst4,36023
143
143
  radboy/DB/__pycache__/glossary_db.cpython-313.pyc,sha256=Ke9bkvllGv5CK0JdT9DRvQ3MOdrXxoYv7TVLNkqLux0,36582
144
144
  radboy/DB/__pycache__/masterLookup.cpython-312.pyc,sha256=bQiOkmMwwHgcO18tYSWGQ-YUff4GQlKVhBMp1GoWAqY,6324
@@ -414,7 +414,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
414
414
  radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
415
415
  radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
416
416
  radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
417
- radboy/__pycache__/__init__.cpython-313.pyc,sha256=tUPQvVLufZMPro5q4fXJp6FJQ3vEAhXmeWkkhl8dw_M,165
417
+ radboy/__pycache__/__init__.cpython-313.pyc,sha256=he48rtZrhLFLjEI1xapTmP06KbdyJHWFBFfdROaBPvQ,165
418
418
  radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
419
419
  radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
420
420
  radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
@@ -442,7 +442,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
442
442
  radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
443
443
  radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
444
444
  radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
445
- radboy-0.0.829.dist-info/METADATA,sha256=ryfpxPFV9zqisTfs_9EZAR2CSeyXMttq716zNQvRRVI,1920
446
- radboy-0.0.829.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
447
- radboy-0.0.829.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
448
- radboy-0.0.829.dist-info/RECORD,,
445
+ radboy-0.0.831.dist-info/METADATA,sha256=iEXMvXKEzj3q6Mtjh21h3L4Niqr9jJw1nJC8nJZqWKI,1920
446
+ radboy-0.0.831.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
447
+ radboy-0.0.831.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
448
+ radboy-0.0.831.dist-info/RECORD,,