Commit 8cc83aaf authored by Fabien  MAREUIL's avatar Fabien MAREUIL
Browse files

memory free update

parent 303529b7
Pipeline #50455 failed with stages
in 24 minutes and 20 seconds
......@@ -9,24 +9,37 @@ def init_isolevel(apps, schema_editor):
Chains = Chain.objects.all()
if Chains:
Chains.update(default_isolevel=0.5)
Chains = Chain.objects.none()
InteractFiles = InteractFile.objects.filter(label="all")
if InteractFiles:
InteractFiles.update(default_isolevel=0.7)
InteractFiles = InteractFile.objects.none()
InteractFiles = InteractFile.objects.filter(label="hydrophobic")
if InteractFiles:
InteractFiles.update(default_isolevel=0.3)
InteractFiles = InteractFile.objects.none()
InteractFiles = InteractFile.objects.filter(label="hbond donor-acceptor")
if InteractFiles:
InteractFiles.update(default_isolevel=0.3)
InteractFiles = InteractFile.objects.none()
InteractFiles = InteractFile.objects.filter(label="negative")
if InteractFiles:
InteractFiles.update(default_isolevel=0.08)
InteractFiles = InteractFile.objects.none()
InteractFiles = InteractFile.objects.filter(label="positive")
if InteractFiles:
InteractFiles.update(default_isolevel=0.05)
InteractFiles = InteractFile.objects.none()
InteractFiles = InteractFile.objects.filter(label="backbone")
if InteractFiles:
InteractFiles.update(default_isolevel=0.18)
InteractFiles = InteractFile.objects.none()
class Migration(migrations.Migration):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment