q2rad 0.1.194__tar.gz → 0.1.195__tar.gz

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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: q2rad
3
- Version: 0.1.194
3
+ Version: 0.1.195
4
4
  Summary: RAD - database, GUI, reports
5
5
  Author: Andrei Puchko
6
6
  Author-email: andrei.puchko@gmx.de
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "q2rad"
3
- version = "0.1.194"
3
+ version = "0.1.195"
4
4
  description = "RAD - database, GUI, reports"
5
5
  authors = ["Andrei Puchko <andrei.puchko@gmx.de>"]
6
6
  readme = "README.md"
@@ -266,7 +266,11 @@ class Q2Form(_Q2Form):
266
266
  def after_form_show():
267
267
  query = self.model.get_table_name()
268
268
  if not query.strip().lower().startswith("select "):
269
- query = f"select * from {query}"
269
+ where = self.model.get_where()
270
+ where = "" if where == "" else f" where {where}"
271
+ order = self.model.get_order()
272
+ order = "" if order == "" else f" order by {order}"
273
+ query = f"select * from {query} {where} {order}"
270
274
  form.query_edit.set_content({"queries": {"query": query}})
271
275
 
272
276
  form.after_form_show = after_form_show
@@ -0,0 +1 @@
1
+ __version__ = "0.1.195"
@@ -1 +0,0 @@
1
- __version__ = "0.1.194"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes