Try except fix #26

Merged
H4CK3R-01 merged 3 commits from try_except_fix into main 2022-03-27 18:15:06 +00:00
Showing only changes of commit d19b38634a - Show all commits

View File

@ -60,16 +60,31 @@ class KeywordSchema(Schema):
keyword = String() keyword = String()
class SymbolSchema(Schema):
symbol = String()
class TransactionSchema(Schema):
symbol = String()
time = String(validate=validate.Regexp(r"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z"))
count = Integer()
price = Float()
class TelegramIdSchema(Schema):
telegram_user_id = String()
class DeleteSuccessfulSchema(Schema):
pass
class KeywordResponseSchema(Schema): class KeywordResponseSchema(Schema):
keyword = String() keyword = String()
s_id = Integer() s_id = Integer()
email = Email() email = Email()
class SymbolSchema(Schema):
symbol = String()
class SymbolResponseSchema(Schema): class SymbolResponseSchema(Schema):
symbol = String() symbol = String()
s_id = Integer() s_id = Integer()
@ -81,13 +96,6 @@ class PortfolioShareResponseSchema(Schema):
last_transaction = String() last_transaction = String()
class TransactionSchema(Schema):
symbol = String()
time = String(validate=validate.Regexp(r"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z"))
count = Integer()
price = Float()
class TransactionResponseSchema(Schema): class TransactionResponseSchema(Schema):
email = Email() email = Email()
symbol = String() symbol = String()
@ -96,16 +104,8 @@ class TransactionResponseSchema(Schema):
price = Float() price = Float()
class TelegramIdSchema(Schema):
telegram_user_id = String()
class PortfolioResponseSchema(Schema): class PortfolioResponseSchema(Schema):
symbol = String() symbol = String()
last_transaction = String() last_transaction = String()
count = Integer() count = Integer()
# price = Float() # price = Float()
class DeleteSuccessfulSchema(Schema):
pass