mirror of
https://github.com/echemdata/galvani.git
synced 2025-12-14 01:15:34 +00:00
Merge pull request #99 from chatcannon/mdbtools-1-0
Update regular expression for mdbtools 1.0 output
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -17,8 +17,7 @@ jobs:
|
|||||||
|
|
||||||
pytest:
|
pytest:
|
||||||
name: Run Python unit tests
|
name: Run Python unit tests
|
||||||
# Note that 20.04 is currently required until galvani supports mdbtools>=1.0.
|
runs-on: ubuntu-22.04
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|||||||
@@ -439,7 +439,8 @@ CREATE VIEW IF NOT EXISTS Capacity_View
|
|||||||
def mdb_get_data_text(s3db, filename, table):
|
def mdb_get_data_text(s3db, filename, table):
|
||||||
print("Reading %s..." % table)
|
print("Reading %s..." % table)
|
||||||
insert_pattern = re.compile(
|
insert_pattern = re.compile(
|
||||||
r'INSERT INTO "\w+" \([^)]+?\) VALUES \(("[^"]*"|[^")])+?\);\n', re.IGNORECASE
|
r"""INSERT INTO "\w+" \([^)]+?\) VALUES (\((('[^']*')|"[^"]*"|[^')])+?\),?\s*)+;\n""",
|
||||||
|
re.IGNORECASE,
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
# Initialize values to avoid NameError in except clause
|
# Initialize values to avoid NameError in except clause
|
||||||
|
|||||||
Reference in New Issue
Block a user