forked from DGNum/gestioCOF
Run black on all files
This commit is contained in:
parent
e20d7ca6c2
commit
892bf51163
153 changed files with 12 additions and 163 deletions
|
@ -41,7 +41,6 @@ class Command(BaseCommand):
|
|||
)
|
||||
|
||||
def handle(self, *args, **options):
|
||||
|
||||
self.stdout.write("Génération d'opérations")
|
||||
|
||||
# Output log vars
|
||||
|
@ -74,7 +73,6 @@ class Command(BaseCommand):
|
|||
opegroup_list = []
|
||||
|
||||
for i in range(num_ops):
|
||||
|
||||
# Randomly pick account
|
||||
if random.random() > 0.25:
|
||||
account = random.choice(accounts)
|
||||
|
@ -174,7 +172,6 @@ class Command(BaseCommand):
|
|||
at_list = []
|
||||
|
||||
for i in range(num_transfers):
|
||||
|
||||
# Randomly pick time
|
||||
at = now - timedelta(seconds=random.randint(0, time))
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ class Command(MyBaseCommand):
|
|||
created_accounts = 0
|
||||
team_accounts = 0
|
||||
|
||||
for (profile, trigramme) in zip(gaulois, gaulois_trigramme):
|
||||
for profile, trigramme in zip(gaulois, gaulois_trigramme):
|
||||
account, created = Account.objects.get_or_create(
|
||||
trigramme=trigramme,
|
||||
cofprofile=profile,
|
||||
|
@ -74,7 +74,7 @@ class Command(MyBaseCommand):
|
|||
if profile.user.first_name == "Abraracourcix":
|
||||
profile.user.groups.add(group_chef)
|
||||
|
||||
for (profile, trigramme) in zip(romains, romains_trigramme):
|
||||
for profile, trigramme in zip(romains, romains_trigramme):
|
||||
account, created = Account.objects.get_or_create(
|
||||
trigramme=trigramme,
|
||||
cofprofile=profile,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue