Skip to content

Commit

Permalink
Merge pull request #502 from devinit/hotfix/frozen_tables
Browse files Browse the repository at this point in the history
Hotfix/frozen tables
  • Loading branch information
akmiller01 committed Apr 20, 2021
2 parents 993b036 + d73eae4 commit 2d04b06
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 1 deletion.
18 changes: 18 additions & 0 deletions core/migrations/0035_operation_is_sub_query.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 2.2.13 on 2020-11-11 12:44

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('core', '0034_savedquerydata_logs'),
]

operations = [
migrations.AddField(
model_name='operation',
name='is_sub_query',
field=models.BooleanField(default=False),
),
]
17 changes: 17 additions & 0 deletions core/migrations/0036_remove_operation_is_sub_query.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 2.2.13 on 2021-01-29 15:43

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('core', '0035_operation_is_sub_query'),
]

operations = [
migrations.RemoveField(
model_name='operation',
name='is_sub_query',
),
]
14 changes: 14 additions & 0 deletions core/migrations/0039_merge_20210309_0759.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Generated by Django 3.1 on 2021-03-09 07:59

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('core', '0036_remove_operation_is_sub_query'),
('core', '0038_merge_20210304_1858'),
]

operations = [
]
14 changes: 14 additions & 0 deletions core/migrations/0040_merge_20210420_1128.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Generated by Django 3.1.8 on 2021-04-20 11:28

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('core', '0039_auto_20210325_1604'),
('core', '0039_merge_20210309_0759'),
]

operations = [
]
2 changes: 1 addition & 1 deletion core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def get_header(self, cursor):
def streaming_export_view(request, pk):
try:
operation = Operation.objects.get(pk=pk)
frozen_table_id = request.query_params.get('frozen_table_id', None)
frozen_table_id = request.GET.get('frozen_table_id', None)
exporter = StreamingExporter(operation, frozen_table_id=frozen_table_id)
response = StreamingHttpResponse(
exporter.stream(), content_type="text/csv")
Expand Down

0 comments on commit 2d04b06

Please sign in to comment.