typo and forget to call function

This commit is contained in:
Pierre-antoine Comby 2020-06-01 22:27:41 +02:00
parent b58a643e0e
commit 7d9599d4d8
2 changed files with 5 additions and 4 deletions

View File

@ -15,4 +15,4 @@ class Command(BaseCommand):
call_command('import_account', alias=True, chunk=5000, save = "map.json")
call_command('import_activities', chunk=5000, map="map.json")
call_command('import_transaction', chunk=5000, buttons=True, map="map.json")
call_command('make_su', 'Coq', 'erdnaxe', 'PAC', 'Pollion', 'ÿnérant')
call_command('make_su','-sS', 'Coq', 'erdnaxe', 'PAC', 'Pollion', 'ÿnérant')

View File

@ -267,10 +267,10 @@ class Command(ImportCommand):
membership_ids = Membership.objects.values_list('id',flat=True)
for m_id in membership_ids:
bulk_mgr.add(
Membership.roles.trough(membership_id=m_id,role_id=BDE_ROLE_PK),
Membership.roles.trough(membership_id=m_id,role_id=KFET_ROLE_PK),
Membership.roles.through(membership_id=m_id,role_id=BDE_ROLE_PK),
Membership.roles.through(membership_id=m_id,role_id=KFET_ROLE_PK),
)
bulk_mgr.done()
bulk_mgr.done()
@timed
def handle(self, *args, **kwargs):
@ -284,3 +284,4 @@ class Command(ImportCommand):
self.load_map(kwargs["map"])
self.import_buttons(cur, kwargs["chunk"])
self.import_transaction(cur, kwargs["chunk"], 0)
self.set_roles()