-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ui-v2' of github.com:IGS/gEAR into ui-v2
- Loading branch information
Showing
44 changed files
with
1,067 additions
and
526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/opt/bin/python | ||
|
||
# This is to fix an issue where some layouts have duplicated display members, if the user | ||
# saved layouts in the layout arranger when the duplcation bug was active (https://github.com/IGS/gEAR/issues/768) | ||
|
||
import sys | ||
|
||
from pathlib import Path | ||
lib_path = Path(__file__).resolve().parents[1].joinpath('lib') | ||
|
||
sys.path.append(str(lib_path)) | ||
|
||
import geardb | ||
|
||
conn = geardb.Connection() | ||
cursor = conn.get_cursor() | ||
|
||
# print row count | ||
qry = "SELECT COUNT(*) FROM layout_displays" | ||
cursor.execute(qry) | ||
row_count = cursor.fetchone()[0] | ||
print("Row count before deletion: {}".format(row_count)) | ||
|
||
# https://www.tutorialspoint.com/mysql/mysql-delete-duplicate-records.htm | ||
qry = """ | ||
DELETE ld1 FROM layout_displays ld1 | ||
INNER JOIN layout_displays ld2 | ||
WHERE ld1.layout_id = ld2.layout_id | ||
AND ld1.display_id = ld2.display_id | ||
AND ld1.start_col = ld2.start_col | ||
AND ld1.grid_width = ld2.grid_width | ||
AND ld1.start_row = ld2.start_row | ||
AND ld1.grid_height = ld2.grid_height | ||
AND ld1.id > ld2.id | ||
""" | ||
cursor.execute(qry) | ||
|
||
conn.commit() | ||
|
||
# print row count | ||
qry = "SELECT COUNT(*) FROM layout_displays" | ||
cursor.execute(qry) | ||
row_count = cursor.fetchone()[0] | ||
print("Row count after deletion: {}".format(row_count)) | ||
|
||
cursor.close() | ||
conn.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Flask==3.0.0 | ||
gunicorn==20.1.0 | ||
rpy2==3.5.1 # 3.5.2 and up gives errors with rpy2py and py2rpy | ||
pandas==1.4.1 | ||
pandas==2.2.1 | ||
google-cloud-logging |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.