Added /scouting error messages

This commit is contained in:
Cal Corum 2023-10-20 16:02:43 -05:00
parent 96be768ec9
commit ed6e73528f
2 changed files with 4 additions and 4 deletions

View File

@ -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:
logging.warning(f'Team_id {team_id} attempted to pull ratings')
db.close()
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: ' \
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 (thank you!): ' \
'https://ko-fi.com/manticorum/shop'
all_ratings = BattingCardRatings.select()

View File

@ -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:
logging.warning(f'Team_id {team_id} attempted to pull ratings')
db.close()
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: ' \
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 (thank you!): ' \
'https://ko-fi.com/manticorum/shop'
all_ratings = PitchingCardRatings.select()