-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from ferbncode/fix-reviewed-deleted
CB-269: Handle reviewed entities deleted in MB database
- Loading branch information
Showing
8 changed files
with
137 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
critiquebrainz/frontend/external/musicbrainz_db/special_entities.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from mbdata import models | ||
|
||
# Unknown entities | ||
unknown_artist = models.Artist() | ||
unknown_artist.gid = '125ec42a-7229-4250-afc5-e057484327fe' | ||
unknown_artist.id = 97546 | ||
unknown_artist.name = '[unknown]' | ||
unknown_artist.sort_name = '[unknown]' | ||
|
||
unknown_artist_credit_name = models.ArtistCreditName() | ||
unknown_artist_credit_name.name = '[unknown]' | ||
unknown_artist_credit_name.artist = unknown_artist | ||
|
||
unknown_artist_credit = models.ArtistCredit() | ||
unknown_artist_credit.name = '[unknown]' | ||
unknown_artist_credit.artists = [unknown_artist_credit_name] | ||
|
||
unknown_release_group = models.ReleaseGroup() | ||
unknown_release_group.artist_credit = unknown_artist_credit | ||
unknown_release_group.id = 0 | ||
unknown_release_group.name = '[Unknown Release Group]' | ||
|
||
unknown_place = models.Place() | ||
unknown_place.id = 0 | ||
unknown_place.name = '[Unknown Place]' | ||
|
||
unknown_event = models.Place() | ||
unknown_event.id = 0 | ||
unknown_event.name = '[Unknown Event]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters