|
|
|
@ -14,7 +14,7 @@ def all_badges(): |
|
|
|
|
'name': bgd.name, |
|
|
|
|
'description': bgd.description, |
|
|
|
|
'createDate': bgd.createDate, |
|
|
|
|
'icon': url_for('send_file', filename=bgd.icon) |
|
|
|
|
'icon': url_for('send_file', filename=bgd.icon), |
|
|
|
|
'canClaim': bgd.canClaim |
|
|
|
|
}) |
|
|
|
|
return jsonify({ |
|
|
|
@ -38,7 +38,7 @@ def my_badges(): |
|
|
|
|
'name': bgd.name, |
|
|
|
|
'description': bgd.description, |
|
|
|
|
'createDate': bgd.createDate, |
|
|
|
|
'icon': url_for('send_file', filename=bgd.icon) |
|
|
|
|
'icon': url_for('send_file', filename=bgd.icon), |
|
|
|
|
'canClaim': bgd.canClaim, |
|
|
|
|
'claimedDate': ub.claimedDate, |
|
|
|
|
}) |
|
|
|
|