Skip to content

Commit

Permalink
Change docstrings to include details of fetching complete data for so…
Browse files Browse the repository at this point in the history
…me tables
  • Loading branch information
rsh7 authored and paramsingh committed Jul 24, 2018
1 parent c45a3d0 commit 83604b1
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions db/import_mb_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ def load_artist_credit(connection, MB_release_data, MB_release_group_data, MB_tr


def load_artist_type(connection):
"""Fetch artist_type table data from MusicBrainz database for the
recording MBIDs in AcousticBrainz database.
"""Fetch artist_type table data from MusicBrainz database for the recording MBIDs in
AcousticBrainz database. Retrieving complete data because the rows in MusicBrainz database
for this table are much less in number.
Args:
connection: database connection to execute the query.
Expand All @@ -102,8 +103,9 @@ def load_artist_type(connection):


def load_area_type(connection):
"""Fetch area_type table data from MusicBrainz database for the
recording MBIDs in AcousticBrainz database.
"""Fetch area_type table data from MusicBrainz database for the recording MBIDs in
AcousticBrainz database. Retrieving complete data because the rows in MusicBrainz database
for this table are much less in number.
Args:
connection: database connection to execute the query.
Expand Down Expand Up @@ -190,8 +192,9 @@ def load_end_area_type(connection, artist_credit_from_recording):


def load_release_status(connection):
"""Fetch release_status table data from MusicBrainz database for the
recording MBIDs in AcousticBrainz database.
"""Fetch release_status table data from MusicBrainz database for the recording MBID
in AcousticBrainz database. Retrieving complete data because the rows in MusicBrainz database
for this table are much less in number.
Args:
connection: database connection to execute the query.
Expand All @@ -211,7 +214,8 @@ def load_release_status(connection):

def load_release_group_primary_type(connection):
"""Fetch release_group_primary_type table data from MusicBrainz database for the
recording MBIDs in AcousticBrainz database.
recording MBIDs in AcousticBrainz database. Retrieving complete data because the rows
in MusicBrainz database for this table are much less in number.
Args:
connection: database connection to execute the query.
Expand All @@ -230,8 +234,9 @@ def load_release_group_primary_type(connection):


def load_medium_format(connection):
"""Fetch medium_format table data from MusicBrainz database for the
recording MBIDs in AcousticBrainz database.
"""Fetch medium_format table data from MusicBrainz database for the recording MBIDs in
AcousticBrainz database. Retrieving complete data because the rows in
MusicBrainz database for this table are much less in number.
Args:
connection: database connection to execute the query.
Expand All @@ -250,8 +255,9 @@ def load_medium_format(connection):


def load_release_packaging(connection):
"""Fetch release_packaging table data from MusicBrainz database for the
recording MBIDs in AcousticBrainz database.
"""Fetch release_packaging table data from MusicBrainz database for the recording MBIDs in
AcousticBrainz database. Retrieving complete data because the rows in MusicBrainz database
for this table are much less in number.
Args:
connection: database connection to execute the query.
Expand Down Expand Up @@ -374,8 +380,9 @@ def load_script(connection, MB_release_data, artist_credit_from_recording):


def load_gender(connection):
""" Fetch gender table data from MusicBrainz database for the
recording MBIDs in AcousticBrainz database.
""" Fetch gender table data from MusicBrainz database for the recording MBIDs in
AcousticBrainz database. Retrieving complete data because the rows in MusicBrainz
database for this table are much less in number.
Args:
connection: database connection to execute the query.
Expand Down

0 comments on commit 83604b1

Please sign in to comment.