This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |