Skip to content
Snippets Groups Projects
Commit a9eba471 authored by Jakub Štercl's avatar Jakub Štercl
Browse files

fixed database_create, added file encoding to export

parent 0d5e3ac7
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment