q2rad 0.1.233__py3-none-any.whl → 0.1.234__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 q2rad might be problematic. Click here for more details.

q2rad/q2rad.py CHANGED
@@ -699,11 +699,11 @@ class Q2RadApp(Q2App):
699
699
  else "q2rad/bin/q2rad\n"
700
700
  ),
701
701
  )
702
- elif os.path.isdir("python.loc"):
702
+ elif os.path.isdir(f"python.loc.{sys.version.split()[0]}"):
703
703
  self.write_restore_file(
704
704
  "run_q2rad",
705
705
  ("" if "win32" in sys.platform else "#!/bin/bash\n")
706
- + ("python.loc\\scripts\\q2rad" if "win32" in sys.platform else "python.loc/bin/q2rad\n"),
706
+ + (f"python.loc.{sys.version.split()[0]}\\scripts\\q2rad" if "win32" in sys.platform else f"python.loc.{sys.version.split()[0]}/bin/q2rad\n"),
707
707
  )
708
708
  else:
709
709
  self.write_restore_file(
@@ -713,10 +713,16 @@ class Q2RadApp(Q2App):
713
713
  )
714
714
 
715
715
  if "win32" in sys.platform:
716
- open("run_q2rad.vbs", "w").write(
717
- 'WScript.CreateObject("WScript.Shell").Run '
718
- '"q2rad\\scripts\\pythonw.exe -m q2rad", 0, false'
719
- )
716
+ if os.path.isdir(f"python.loc.{sys.version.split()[0]}"):
717
+ open("run_q2rad.vbs", "w").write(
718
+ 'WScript.CreateObject("WScript.Shell").Run '
719
+ f'"python.loc.{sys.version.split()[0]}\\pythonw.exe -m q2rad", 1, false'
720
+ )
721
+ else: # venv
722
+ open("run_q2rad.vbs", "w").write(
723
+ 'WScript.CreateObject("WScript.Shell").Run '
724
+ '"q2rad\\scripts\\pythonw.exe -m q2rad", 1, false'
725
+ )
720
726
 
721
727
  open("make_shortcut.vbs", "w").write(
722
728
  'Set oWS = WScript.CreateObject("WScript.Shell")\n'
@@ -733,10 +739,10 @@ class Q2RadApp(Q2App):
733
739
  def write_reinstall_files(self):
734
740
  if sys.prefix != sys.base_prefix: # in virtualenv
735
741
  pip_command = (
736
- "q2rad\\scripts\\python -m " if "win32" in sys.platform else "q2rad/script/python -m "
742
+ "q2rad\\scripts\\python -m " if "win32" in sys.platform else "q2rad/bin/python -m "
737
743
  )
738
- elif os.path.isdir("python.loc"):
739
- pip_command = "python.loc\\python -m " if "win32" in sys.platform else "python.loc/python -m "
744
+ elif os.path.isdir(f"python.loc.{sys.version.split()[0]}"):
745
+ pip_command = f"python.loc.{sys.version.split()[0]}\\python -m " if "win32" in sys.platform else f"python.loc{sys.version.split()[0]}/python -m "
740
746
  else:
741
747
  pip_command = "python -m " if "win32" in sys.platform else "python -m "
742
748
 
q2rad/q2utils.py CHANGED
@@ -536,6 +536,7 @@ class auto_filter:
536
536
  self.mem.add_control("/f")
537
537
  if col["control"] == "text":
538
538
  col["control"] = "line"
539
+ col["datatype"] = "char"
539
540
  col = Q2Controls.validate(col)
540
541
  self.filter_columns.append(cu.r.column)
541
542
  if col["datatype"] in ["date"] or (
@@ -567,10 +568,13 @@ class auto_filter:
567
568
 
568
569
  self.mem.add_control(**col)
569
570
  self.mem.add_control("/")
571
+ self._valid = self.mem.valid
570
572
  self.mem.valid = self.valid
571
573
 
572
574
  def valid(self):
573
575
  where = []
576
+ if custom_whr := self._valid():
577
+ where.append(custom_whr)
574
578
  for x in self.filter_columns:
575
579
  where.append(self.mem.prepare_where(x))
576
580
  where_string = " and ".join([x for x in where if x])
q2rad/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.233"
1
+ __version__ = "0.1.234"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: q2rad
3
- Version: 0.1.233
3
+ Version: 0.1.234
4
4
  Summary: RAD - database, GUI, reports
5
5
  Author: Andrei Puchko
6
6
  Author-email: andrei.puchko@gmx.de
@@ -12,14 +12,14 @@ q2rad/q2market.py,sha256=RNXTNv-fFUgbzBGhHPNXlzGjsAHAtz71BRbTErJarNo,2641
12
12
  q2rad/q2modules.py,sha256=RwemVJwfxth0lBN4K96tKz62VOW71C7CmmKyhIoH5mc,4632
13
13
  q2rad/q2packages.py,sha256=y72L1RAw1OgtKGaL8lJ1KHIaers5I6kTZSiphwwrY0M,3808
14
14
  q2rad/q2queries.py,sha256=YYJEpC_0rXAV8W_lx2604yqnkooHzheFmDCfqbW02zY,13203
15
- q2rad/q2rad.py,sha256=2eda5Rp0eLNd598e52EPK2KDzo3ZWFR_ODSrYHsNBuw,56787
15
+ q2rad/q2rad.py,sha256=TFb2uluiMwqsv34nH7bMWZWGo2QOyi_rWMTVgHfda20,57283
16
16
  q2rad/q2raddb.py,sha256=9sQuod4Ws0xiWu4ejv1lODMSUtijJTUHGgCKmV61qGQ,5975
17
17
  q2rad/q2reports.py,sha256=tAOm54_P_NN8nRDsZy8N6vbw0YOTNQ_9xtvT6NMG724,86155
18
18
  q2rad/q2stylesettings.py,sha256=_aK-44kFfkaEGdwH7FzRs1KP7nsP08bL8t8OmdjM2eY,4767
19
- q2rad/q2utils.py,sha256=zI2WN2vA9NC40_M2S-b7UJ2kalAGeRBqRaDFfe0XFbs,18805
20
- q2rad/version.py,sha256=r9uCYaQt8NnDU4D0J1v8fGU7KC5hBvg-wZHF3sZzB3o,23
21
- q2rad-0.1.233.dist-info/entry_points.txt,sha256=DmsJQE6f3wYuhdN2h6ARYxSe8_d03paeepfGpdVj5rs,42
22
- q2rad-0.1.233.dist-info/LICENSE,sha256=JRR3LlR18ghhYXT4G2cWgXmnxRvcuVcKlqncWWK4MRY,10347
23
- q2rad-0.1.233.dist-info/METADATA,sha256=fiehcbR6hH7w_dDxbwnNckxGQCvzdLIoCbtij5pROuM,3369
24
- q2rad-0.1.233.dist-info/WHEEL,sha256=WGfLGfLX43Ei_YORXSnT54hxFygu34kMpcQdmgmEwCQ,88
25
- q2rad-0.1.233.dist-info/RECORD,,
19
+ q2rad/q2utils.py,sha256=AEKNWCYkeYHPYtxKqEhIOeSBZDGLB0KoEGu7dkmAZrw,18964
20
+ q2rad/version.py,sha256=UlEUs5F9_PU-hfXEOWasm-pL8DFirM12n-X6V8yWJmg,23
21
+ q2rad-0.1.234.dist-info/entry_points.txt,sha256=DmsJQE6f3wYuhdN2h6ARYxSe8_d03paeepfGpdVj5rs,42
22
+ q2rad-0.1.234.dist-info/LICENSE,sha256=JRR3LlR18ghhYXT4G2cWgXmnxRvcuVcKlqncWWK4MRY,10347
23
+ q2rad-0.1.234.dist-info/METADATA,sha256=9s7lAgzSPVlSu8K_q0MkUs4rO8gAm2TGSu0I1RvnfoI,3369
24
+ q2rad-0.1.234.dist-info/WHEEL,sha256=WGfLGfLX43Ei_YORXSnT54hxFygu34kMpcQdmgmEwCQ,88
25
+ q2rad-0.1.234.dist-info/RECORD,,