q2rad 0.1.212__tar.gz → 0.1.213__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.212
3
+ Version: 0.1.213
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.212"
3
+ version = "0.1.213"
4
4
  description = "RAD - database, GUI, reports"
5
5
  authors = ["Andrei Puchko <andrei.puchko@gmx.de>"]
6
6
  readme = "README.md"
@@ -446,13 +446,14 @@ class AppManager(Q2Form):
446
446
  db_tables = db.get_tables()
447
447
  wait_table = Q2WaitShow(len(data))
448
448
  errors = []
449
+ db.transaction()
449
450
  for table in data:
450
451
  wait_table.step(table)
451
452
  if table not in db_tables:
452
453
  continue
453
454
  wait_row = Q2WaitShow(len(data[table]))
454
455
  if table != "packages":
455
- db.cursor(f'delete from `{table}` where name not like "\\_%"')
456
+ db.cursor(f'delete from `{table}` where substr(name,1,1) <> "_"')
456
457
  if db.last_sql_error:
457
458
  errors.append(db.last_sql_error)
458
459
  for row in data[table]:
@@ -469,6 +470,7 @@ class AppManager(Q2Form):
469
470
  errors.append(db.last_sql_error)
470
471
  errors.append(db.last_record)
471
472
  wait_row.close()
473
+ db.commit()
472
474
  wait_table.close()
473
475
  if errors:
474
476
  q2Mess("<br>".join(errors))
@@ -491,6 +493,7 @@ class AppManager(Q2Form):
491
493
  db: Q2Db = q2app.q2_app.db_data
492
494
  db_tables = db.get_tables()
493
495
  wait_table = Q2WaitShow(len(data))
496
+ db.transaction()
494
497
  errors = []
495
498
  for table in data:
496
499
  wait_table.step(table)
@@ -506,6 +509,7 @@ class AppManager(Q2Form):
506
509
  errors.append(db.last_sql_error)
507
510
  # print(db.last_sql_error)
508
511
  wait_row.close()
512
+ db.commit()
509
513
  wait_table.close()
510
514
  if errors:
511
515
  q2Mess("<br>".join(errors))
@@ -0,0 +1 @@
1
+ __version__ = "0.1.213"
@@ -1 +0,0 @@
1
- __version__ = "0.1.212"
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