radboy 0.0.667__py3-none-any.whl → 0.0.668__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/SimpleScanner/SimpleScanner.py +26 -10
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- {radboy-0.0.667.dist-info → radboy-0.0.668.dist-info}/METADATA +1 -1
- {radboy-0.0.667.dist-info → radboy-0.0.668.dist-info}/RECORD +7 -7
- {radboy-0.0.667.dist-info → radboy-0.0.668.dist-info}/WHEEL +0 -0
- {radboy-0.0.667.dist-info → radboy-0.0.668.dist-info}/top_level.txt +0 -0
|
@@ -35,18 +35,24 @@ class SimpleScanUi:
|
|
|
35
35
|
ask_qty=default
|
|
36
36
|
|
|
37
37
|
if value is None:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
value
|
|
38
|
+
if not ask_qty:
|
|
39
|
+
value=Control(func=FormBuilderMkText,ptext=f"+/- To old(1):",helpText="How much to decrement or increment",data="float")
|
|
40
|
+
if value in [None,'NaN']:
|
|
41
|
+
return
|
|
42
|
+
elif value in ['d',]:
|
|
43
|
+
value=1
|
|
44
|
+
else:
|
|
45
|
+
value=0
|
|
43
46
|
|
|
44
47
|
if value > 0:
|
|
45
48
|
inc="add/+"
|
|
49
|
+
by_with="to"
|
|
46
50
|
elif value < 0:
|
|
47
|
-
inc="
|
|
51
|
+
inc="subtract/-"
|
|
52
|
+
by_with="from"
|
|
48
53
|
else:
|
|
49
|
-
inc="
|
|
54
|
+
inc="modify"
|
|
55
|
+
by_with='with'
|
|
50
56
|
with Session(ENGINE) as session:
|
|
51
57
|
while True:
|
|
52
58
|
scanText=Control(func=FormBuilderMkText,ptext="Barcode/Code/Text",helpText="whatever it is you are scanning, its just text.",data="string")
|
|
@@ -60,7 +66,7 @@ class SimpleScanUi:
|
|
|
60
66
|
cta=len(results)
|
|
61
67
|
if cta < 1:
|
|
62
68
|
if ask_qty:
|
|
63
|
-
value=Control(func=FormBuilderMkText,ptext="
|
|
69
|
+
value=Control(func=FormBuilderMkText,ptext=f"+/- To old(1):",helpText="How much to decrement or increment",data="float")
|
|
64
70
|
if value in [None,'NaN']:
|
|
65
71
|
return
|
|
66
72
|
elif value in ['d',]:
|
|
@@ -70,6 +76,16 @@ class SimpleScanUi:
|
|
|
70
76
|
scanned=SimpleScan(ScannedText=scanText,DTOE=datetime.now(),TimesScanned=value)
|
|
71
77
|
session.add(scanned)
|
|
72
78
|
session.commit()
|
|
79
|
+
elif cta == 1:
|
|
80
|
+
index=0
|
|
81
|
+
if ask_qty:
|
|
82
|
+
value=Control(func=FormBuilderMkText,ptext=f"+/- To old({results[index].TimesScanned}):",helpText="How much to decrement or increment",data="float")
|
|
83
|
+
if value in [None,'NaN']:
|
|
84
|
+
return
|
|
85
|
+
elif value in ['d',]:
|
|
86
|
+
value=1
|
|
87
|
+
results[index].TimesScanned+=value
|
|
88
|
+
session.commit()
|
|
73
89
|
else:
|
|
74
90
|
while True:
|
|
75
91
|
try:
|
|
@@ -78,7 +94,7 @@ class SimpleScanUi:
|
|
|
78
94
|
htext.append(std_colorize(i,num,cta))
|
|
79
95
|
htext='\n'.join(htext)
|
|
80
96
|
print(htext)
|
|
81
|
-
selected=Control(func=FormBuilderMkText,ptext=f"{Fore.orange_red_1}DUPLICATE SELECT{Fore.light_yellow} Which indexes do you wish to {inc} {
|
|
97
|
+
selected=Control(func=FormBuilderMkText,ptext=f"{Fore.orange_red_1}DUPLICATE SELECT{Fore.light_yellow} Which indexes do you wish to {inc} TimesScanned {by_with}?",helpText=htext,data="list")
|
|
82
98
|
if selected in [None,'NAN','NaN']:
|
|
83
99
|
return
|
|
84
100
|
elif selected in ['d',]:
|
|
@@ -88,7 +104,7 @@ class SimpleScanUi:
|
|
|
88
104
|
index=int(i)
|
|
89
105
|
if index_inList(index,results):
|
|
90
106
|
if ask_qty:
|
|
91
|
-
value=Control(func=FormBuilderMkText,ptext="
|
|
107
|
+
value=Control(func=FormBuilderMkText,ptext=f"+/- To old({results[index].TimesScanned}):",helpText="How much to decrement or increment",data="float")
|
|
92
108
|
if value in [None,'NaN']:
|
|
93
109
|
return
|
|
94
110
|
elif value in ['d',]:
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.668'
|
|
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=KI7Jmf3MX0Zng_YUvcjVKN2siyUOhaMAHQGzpPuX8KQ,41373
|
|
7
7
|
radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
|
|
8
|
-
radboy/__init__.py,sha256=
|
|
8
|
+
radboy/__init__.py,sha256=Rl9VwLyqrUPcsG7T4EjmdlVl5usLAHPe8ICDY0Ick-A,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
|
|
@@ -102,7 +102,7 @@ radboy/DB/msg.txt,sha256=YxWed6A6tuP1djJ5QPS2Rz3ING4TKKf8kUiCCPtzHXE,7937
|
|
|
102
102
|
radboy/DB/rad_types.py,sha256=mtZpBMIFPcw1IhmO7UQ7nV_1gNNURs4INwx3x40hLUU,4725
|
|
103
103
|
radboy/DB/renderText2Png.py,sha256=PWnTicLTfOPg9UlQYia3wMpjM9rh7MIyDVsmcsDRUBo,5678
|
|
104
104
|
radboy/DB/testClass.py,sha256=t3zT1gbvReUncnPY8R9JUfKXQ5UEB2wmQx8DNeds0hI,310
|
|
105
|
-
radboy/DB/SimpleScanner/SimpleScanner.py,sha256=
|
|
105
|
+
radboy/DB/SimpleScanner/SimpleScanner.py,sha256=wSnqWfrUAJNE5QIaIVmrmSUpitDG7yoqQgbvfDGdY9s,23088
|
|
106
106
|
radboy/DB/SimpleScanner/__init__.py,sha256=BknbeGbEv48sqoCWwCQbKbgbqLUuBAyeeIh4EFerJ0g,899
|
|
107
107
|
radboy/DB/__pycache__/DatePicker.cpython-311.pyc,sha256=VMJnJ7scb4VHMQi1HDZCF67KVYfb9m-fZK96IAoJzTQ,19676
|
|
108
108
|
radboy/DB/__pycache__/DatePicker.cpython-312.pyc,sha256=cc5XWJ6Sbtcg0xWPz3SOP93VceIqr1pH42kjkLl5iYs,30294
|
|
@@ -404,7 +404,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
|
|
|
404
404
|
radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
|
|
405
405
|
radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
|
|
406
406
|
radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
|
|
407
|
-
radboy/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
407
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=vp_zf7d3SRumJdA24N9dhbAgMedYrQ9vgnozCDjOe2A,165
|
|
408
408
|
radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
|
|
409
409
|
radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
|
|
410
410
|
radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
|
|
@@ -432,7 +432,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
|
|
|
432
432
|
radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
|
|
433
433
|
radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
|
|
434
434
|
radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
|
|
435
|
-
radboy-0.0.
|
|
436
|
-
radboy-0.0.
|
|
437
|
-
radboy-0.0.
|
|
438
|
-
radboy-0.0.
|
|
435
|
+
radboy-0.0.668.dist-info/METADATA,sha256=T5LqC0kQ9YVGvJ9-jes7tYYRUlW1uQhR7Cmpa3DEWR8,1891
|
|
436
|
+
radboy-0.0.668.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
437
|
+
radboy-0.0.668.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
438
|
+
radboy-0.0.668.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|