Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BP
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakub Štercl
BP
Commits
a9eba471
Commit
a9eba471
authored
7 years ago
by
Jakub Štercl
Browse files
Options
Downloads
Patches
Plain Diff
fixed database_create, added file encoding to export
parent
0d5e3ac7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Implementace/controllers/distribution_overview_controller.py
+1
-1
1 addition, 1 deletion
Implementace/controllers/distribution_overview_controller.py
Implementace/database_create.py
+1
-0
1 addition, 0 deletions
Implementace/database_create.py
with
2 additions
and
1 deletion
Implementace/controllers/distribution_overview_controller.py
+
1
−
1
View file @
a9eba471
...
...
@@ -181,7 +181,7 @@ class DistributionOverview(BaseController, QWidget, distribution_overview.Ui_For
file
,
options
=
QFileDialog
.
getSaveFileName
(
self
,
self
.
tr
(
"
Exportovat do
"
))
if
file
==
''
:
return
with
open
(
file
,
'
w
'
)
as
f
:
with
open
(
file
,
'
w
'
,
encoding
=
'
utf-8
'
)
as
f
:
f
.
write
(
self
.
distribution_name
+
'
\n
'
)
for
table
in
self
.
teamTables
:
team
=
table
.
getAllData
()
...
...
This diff is collapsed.
Click to expand it.
Implementace/database_create.py
+
1
−
0
View file @
a9eba471
...
...
@@ -68,6 +68,7 @@ def create_db(path):
curs
.
execute
(
'''
CREATE
VIEW
member_history_view
as
SELECT
t1
.
member_id
member_id
,
t2
.
member_id
With_member_id
,
count
(
*
)
times_together
...
...
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