Added /scouting error messages
This commit is contained in:
parent
96be768ec9
commit
ed6e73528f
@ -146,8 +146,8 @@ async def get_card_scouting(team_id: int, ts: str, cardset_id: list = Query(defa
|
|||||||
if this_team is None or ts != this_team.team_hash() or this_team.has_guide != 1:
|
if this_team is None or ts != this_team.team_hash() or this_team.has_guide != 1:
|
||||||
logging.warning(f'Team_id {team_id} attempted to pull ratings')
|
logging.warning(f'Team_id {team_id} attempted to pull ratings')
|
||||||
db.close()
|
db.close()
|
||||||
return 'Your team does not have the ratings guide enabled. If you have purchased a copy, ping Cal to ' \
|
return 'Your team does not have the ratings guide enabled. If you have purchased a copy ping Cal to ' \
|
||||||
'make sure it is enabled on your team. If you are interested, you can pick it up here: ' \
|
'make sure it is enabled on your team. If you are interested you can pick it up here (thank you!): ' \
|
||||||
'https://ko-fi.com/manticorum/shop'
|
'https://ko-fi.com/manticorum/shop'
|
||||||
|
|
||||||
all_ratings = BattingCardRatings.select()
|
all_ratings = BattingCardRatings.select()
|
||||||
|
|||||||
@ -134,8 +134,8 @@ async def get_card_scouting(team_id: int, ts: str, cardset_id: list = Query(defa
|
|||||||
if this_team is None or ts != this_team.team_hash() or this_team.has_guide != 1:
|
if this_team is None or ts != this_team.team_hash() or this_team.has_guide != 1:
|
||||||
logging.warning(f'Team_id {team_id} attempted to pull ratings')
|
logging.warning(f'Team_id {team_id} attempted to pull ratings')
|
||||||
db.close()
|
db.close()
|
||||||
return 'Your team does not have the ratings guide enabled. If you have purchased a copy, ping Cal to ' \
|
return 'Your team does not have the ratings guide enabled. If you have purchased a copy ping Cal to ' \
|
||||||
'make sure it is enabled on your team. If you are interested, you can pick it up here: ' \
|
'make sure it is enabled on your team. If you are interested you can pick it up here (thank you!): ' \
|
||||||
'https://ko-fi.com/manticorum/shop'
|
'https://ko-fi.com/manticorum/shop'
|
||||||
|
|
||||||
all_ratings = PitchingCardRatings.select()
|
all_ratings = PitchingCardRatings.select()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user