q2rad 0.1.210__tar.gz → 0.1.211__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.210
3
+ Version: 0.1.211
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.210"
3
+ version = "0.1.211"
4
4
  description = "RAD - database, GUI, reports"
5
5
  authors = ["Andrei Puchko <andrei.puchko@gmx.de>"]
6
6
  readme = "README.md"
@@ -766,16 +766,15 @@ class Q2RadApp(Q2App):
766
766
  continue
767
767
  self.process_events()
768
768
  if force or latest_version != current_version and latest_version:
769
- self.pip_install(package, latest_version)
770
769
  try:
771
770
  self.pip_install(package, latest_version)
772
771
  except Exception as error:
773
772
  try:
774
773
  self.pip_install(package, latest_version)
775
- except Exception:
776
- pass
777
-
778
- latest_version, new_current_version = self.get_package_versions(package)
774
+ except Exception as error:
775
+ latest_version = None
776
+ logging.warning(f"pip update {package} error:{error}")
777
+ # latest_version, new_current_version = self.get_package_versions(package)
779
778
  if latest_version:
780
779
  upgraded.append(
781
780
  f"{package if isinstance(package, str) else package[0]} - "
@@ -792,6 +791,7 @@ class Q2RadApp(Q2App):
792
791
  mess = ("Upgrading complete!<p>" "The program will be restarted!" "<p><p>") + "<p>".join(upgraded)
793
792
  else:
794
793
  mess = "Updates not found!<p>"
794
+ q2mess(mess)
795
795
  if upgraded:
796
796
  self.restart()
797
797
 
@@ -1144,13 +1144,13 @@ class Q2RadApp(Q2App):
1144
1144
  return self.get_form(child_form_name)
1145
1145
 
1146
1146
  return worker
1147
-
1148
1147
  form.add_action(
1149
1148
  x["action_text"],
1150
1149
  self.code_runner(x["action_worker"]) if x["action_worker"] else None,
1151
1150
  child_form=get_action_form(child_form_name),
1152
1151
  child_where=x["child_where"],
1153
1152
  hotkey=x["action_key"],
1153
+ mess=x["action_mess"],
1154
1154
  icon=x["action_icon"],
1155
1155
  tag=x["tag"],
1156
1156
  child_noshow=x["child_noshow"],
@@ -1163,6 +1163,7 @@ class Q2RadApp(Q2App):
1163
1163
  self.code_runner(x["action_worker"], form=form) if x["action_worker"] else None,
1164
1164
  hotkey=x["action_key"],
1165
1165
  icon=x["action_icon"],
1166
+ mess=x["action_mess"],
1166
1167
  tag=x["tag"],
1167
1168
  child_noshow=x["child_noshow"],
1168
1169
  child_copy_mode=x["child_copy_mode"],
@@ -111,7 +111,7 @@ def insert(table, row, q2_db=None):
111
111
  return q2_db.insert(table, row)
112
112
 
113
113
 
114
- def insert_if_not_exist(table, row, key_column, q2_db=None):
114
+ def insert_if_not_exists(table, row, key_column, q2_db=None):
115
115
  q2_db: Q2Db = get_default_db(q2_db)
116
116
  value = row.get(key_column, "0")
117
117
  if q2_db.get(table, f"{key_column} = '{value}'") == {}:
@@ -124,6 +124,9 @@ def insert_if_not_exist(table, row, key_column, q2_db=None):
124
124
  return True
125
125
 
126
126
 
127
+ insert_if_not_exist = insert_if_not_exists
128
+
129
+
127
130
  def raw_insert(table, row, q2_db=None):
128
131
  q2_db = get_default_db(q2_db)
129
132
  return q2_db.raw_insert(table, row)
@@ -0,0 +1 @@
1
+ __version__ = "0.1.211"
@@ -1 +0,0 @@
1
- __version__ = "0.1.210"
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