Skip to content

Commit

Permalink
forgot to add the limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon committed Jul 19, 2019
1 parent 79d8bd3 commit a0cec1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion observation_portal/observations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def delete_old_observations(cutoff):
total_obs_deleted = 0
total_cs_deleted = 0
total_sm_deleted = 0
for observation in observations:
for observation in observations[:100000]:
num_deleted, deleted_dict = observation.delete()
total_deleted += num_deleted
total_obs_deleted += deleted_dict.get('observations.Observation', 0)
Expand Down

0 comments on commit a0cec1d

Please sign in to comment.