Skip to content

Commit

Permalink
fix association creation
Browse files Browse the repository at this point in the history
  • Loading branch information
djbrown committed Sep 4, 2023
1 parent 8f8b9f1 commit 18e0265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/leagues/management/commands/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def scrape_association(url: str, options):
LOGGER.debug('SKIPPING Association (options): %s %s', bhv_id, name)
return

defaults = {'name': name, 'abbreviation': abbreviation, 'bhv_id': bhv_id, 'url': url}
defaults = {'name': name, 'abbreviation': abbreviation, 'bhv_id': bhv_id, 'source_url': url}
association, created = Association.objects.update_or_create(defaults=defaults, bhv_id=bhv_id)
if created:
LOGGER.info('CREATED Association: %s', association)
Expand Down

0 comments on commit 18e0265

Please sign in to comment.