Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
HOTMapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HOTMapper
HOTMapper
Commits
9708a6fa
Commit
9708a6fa
authored
Sep 13, 2021
by
Pietro Cavassin
Browse files
Options
Downloads
Patches
Plain Diff
hotfix - strip parenthesis from derivative
parent
2679b1c7
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
database/database_table.py
+3
-1
3 additions, 1 deletion
database/database_table.py
mapping-protocols
+1
-1
1 addition, 1 deletion
mapping-protocols
settings.py
+1
-1
1 addition, 1 deletion
settings.py
sql-scripts
+1
-1
1 addition, 1 deletion
sql-scripts
table-definitions
+1
-1
1 addition, 1 deletion
table-definitions
with
7 additions
and
5 deletions
database/database_table.py
+
3
−
1
View file @
9708a6fa
...
...
@@ -840,9 +840,11 @@ class DatabaseTable(Table):
case_tokens
=
case
.
split
(
"
"
)
case_tokens
=
case
.
split
(
'
'
)
for
i
in
range
(
0
,
len
(
case_tokens
)):
#
remove
everything
prior to first,
and after
last
quotation mark (including them)
#
strip
everything
before
and after quotation mark
s and parentheses
(including them)
token_varname
=
re
.
sub
(
r
'
(^[^\"]*[\"])
'
,
''
,
case_tokens
[
i
])
token_varname
=
re
.
sub
(
r
'
([\"][^\"]*$)
'
,
''
,
token_varname
)
token_varname
=
re
.
sub
(
r
'
(^[^\(]*[\(])
'
,
''
,
token_varname
)
token_varname
=
re
.
sub
(
r
'
([\)][^\)]*$)
'
,
''
,
token_varname
)
if
(
token_varname
==
var_name
):
case_tokens
[
i
]
=
case_tokens
[
i
].
replace
(
var_name
,
var_db
)
...
...
This diff is collapsed.
Click to expand it.
mapping-protocols
@
fd005c23
Compare
7f70b1e8
...
fd005c23
Subproject commit
7f70b1e8a341c56c4b551e45343b4cd24ac3f959
Subproject commit
fd005c23b135180b365a5267c970aba3f025ec4e
This diff is collapsed.
Click to expand it.
settings.py
+
1
−
1
View file @
9708a6fa
...
...
@@ -33,7 +33,7 @@ DATABASE_USER_PASSWORD = 'monetdb'
DATABASE_HOST
=
'
localhost
'
# Database to connect to
DATABASE
=
'
hotmapper
_demo
'
DATABASE
=
'
aux_
hotmapper
'
# Column used to run aggregations and denormalizations
YEAR_COLUMN
=
'
ano_censo
'
...
...
This diff is collapsed.
Click to expand it.
sql-scripts
@
a98d1ac0
Compare
9bd31ae7
...
a98d1ac0
Subproject commit
9bd31ae76699d32e99e45b8f44918fbc7e445d0b
Subproject commit
a98d1ac004ddffad18d50286282cbc401e56f32d
This diff is collapsed.
Click to expand it.
table-definitions
@
0fd2d8bc
Compare
a3fad296
...
0fd2d8bc
Subproject commit
a3fad296971b7cd55bf98796bc4cae63f6f0246
3
Subproject commit
0fd2d8bc9b0c56225dea1ebfcba3d356b4b9ed0
3
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment