Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
vegitron committed Jul 21, 2015
1 parent 1d792f7 commit bd629ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlshare_rest/util/snapshot_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ def close_socket():
if os.path.isfile(TERMINATE_TRIGGER_FILE):
sys.exit(0)


snapshots = Dataset.objects.filter(snapshot_source__isnull=False,
snapshot_started=False)
for snapshot in snapshots:
Expand All @@ -142,6 +141,7 @@ def get_initial_filter_list():
return Dataset.objects.filter(snapshot_source__isnull=False,
snapshot_started=False)


def kill_snapshot_queue():
# Create the file that triggers the termination
f = open(TERMINATE_TRIGGER_FILE, "w")
Expand Down

0 comments on commit bd629ff

Please sign in to comment.