Move old scripts into scripts/ directory

This commit is contained in:
2021-07-29 01:06:28 +00:00
parent f88292a305
commit 9cfde3e3ca
23 changed files with 0 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import django, sys, os
os.environ['DJANGO_SETTINGS_MODULE'] = 'apiserver.settings'
django.setup()
from apiserver.api import models
indexs = models.HistoryIndex.objects.filter(object_name='UsageTrack')
count = indexs.delete()
print(count, 'indexs deleted')
changes = models.HistoryChange.objects.filter(field='num_seconds')
count = changes.delete()
print(count, 'changes deleted')