Skip to content

Commit

Permalink
Improved output for season service
Browse files Browse the repository at this point in the history
  • Loading branch information
danielengelhardt committed Aug 12, 2024
1 parent c7b0d57 commit fc86085
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DSTBundesliga/apps/dstffbl/services/season_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ def create_season_users(users):
new_player = True

email, sleeper_username, commish, region = user_tuple
print(f"Creating season user for {email}...")


sleeper_user = sleeper_wrapper.User(sleeper_username)

sleeper_id = sleeper_user.get_user_id()
Expand Down Expand Up @@ -131,6 +134,8 @@ def create_season_users(users):
type=2,
)

print("...done!")


def send_email_chunk(chunk_size=12):
open_mails = DSTEmail.objects.filter(send_ts=None)[:chunk_size]
Expand Down

0 comments on commit fc86085

Please sign in to comment.