Skip to content

Instantly share code, notes, and snippets.

import datetime
from django.core.management import base
from octoenergy.data.accounts import models as account_models
from octoenergy.interfaces.tempjobs import base_command
class Command(base_command.TempJobDryRunCommand):
"""
@patiences
patiences / update-examples.txt
Last active November 21, 2019 12:47
Updating Component Versions
1. Eff Dates: 20190101
DB: {id1, 20190101-null}
update(id1, 20190101)
=> updated {id1, 20190101-null}
2. Eff Dates: 20190101, 20200101
DB: {id1, 20190101-null}
update(id1, 20190101)
=> updated {id1, 20190101-20200101}, created {idnew1, 20200101-null}
3. Eff Dates: 201910101
DB: {id1, null-null}