Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Fischer Pedersen
AIR
Commits
df195d24
Commit
df195d24
authored
Nov 26, 2021
by
Christian Marius Lillelund
Browse files
removed password
parent
cabc3811
Pipeline
#95764
failed with stage
in 3 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ml/src/db/add_data_to_db.py
View file @
df195d24
...
...
@@ -68,7 +68,7 @@ def main():
server
=
"tcp:air-db-server.database.windows.net,1433"
database
=
"air-db"
username
=
"airadmin"
password
=
"
!air
password
123
"
password
=
"password"
cnxn
=
pyodbc
.
connect
(
'DRIVER={SQL Server};SERVER='
+
server
+
';DATABASE='
+
database
+
';UID='
+
username
+
';PWD='
+
password
)
cursor
=
cnxn
.
cursor
()
...
...
@@ -146,6 +146,7 @@ def main():
break
break
cnxn
.
commit
()
cursor
.
close
()
if
__name__
==
'__main__'
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment