Skip to content

Commit 7670500

Browse files
committed
Bugfix: Blood Genre was being using the old way for creating html icon
1 parent 795e9eb commit 7670500

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tigaserver_app/models.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,12 @@ def grant_award(for_report, awarded_on_date, awarded_to_tigauser, awarded_by_exp
140140

141141
def get_icon_for_blood_genre(blood_genre) -> str:
142142
blood_genre_table = {
143-
BLOOD_GENRE[0][0]: '<label title="Male"><i class="fa fa-mars fa-lg" aria-hidden="true"></i> Male</label>',
144-
BLOOD_GENRE[1][0]: '<label title="Female"><i class="fa fa-venus fa-lg" aria-hidden="true"></i> Female</label>',
145-
BLOOD_GENRE[2][0]: '<label title="Female blood"><i class="fa fa-tint fa-lg" aria-hidden="true"></i> Bloodfed</label>',
146-
BLOOD_GENRE[3][0]: '<label title="Female gravid"><i class="moon" aria-hidden="true"></i> Gravid</label>',
147-
BLOOD_GENRE[4][0]: '<label title="Female gravid + blood"><i class="moon" aria-hidden="true"></i><i class="fa fa-plus fa-lg" aria-hidden="true"></i><i class="fa fa-tint fa-lg" aria-hidden="true"></i> Bloodfed and gravid</label>',
148-
BLOOD_GENRE[5][0]: '<label title="Dont know"><i class="fa fa-question fa-lg" aria-hidden="true"></i> Dont know</label>'
143+
Photo.BLOOD_GENRE_MALE: '<label title="Male"><i class="fa fa-mars fa-lg" aria-hidden="true"></i> Male</label>',
144+
Photo.BLOOD_GENRE_FEMALE: '<label title="Female"><i class="fa fa-venus fa-lg" aria-hidden="true"></i> Female</label>',
145+
Photo.BLOOD_GENRE_FEMALE_BLOOD_FED: '<label title="Female blood"><i class="fa fa-tint fa-lg" aria-hidden="true"></i> Bloodfed</label>',
146+
Photo.BLOOD_GENRE_FEMALE_GRAVID: '<label title="Female gravid"><i class="moon" aria-hidden="true"></i> Gravid</label>',
147+
Photo.BLOOD_GENRE_FEMALE_GRAVID_BLOOD_FED: '<label title="Female gravid + blood"><i class="moon" aria-hidden="true"></i><i class="fa fa-plus fa-lg" aria-hidden="true"></i><i class="fa fa-tint fa-lg" aria-hidden="true"></i> Bloodfed and gravid</label>',
148+
Photo.BLOOD_GENRE_UNKNOWN: '<label title="Dont know"><i class="fa fa-question fa-lg" aria-hidden="true"></i> Dont know</label>'
149149
}
150150
if blood_genre is None:
151151
return ''

0 commit comments

Comments
 (0)