Skip to content

Commit

Permalink
Integer
Browse files Browse the repository at this point in the history
  • Loading branch information
odilxon committed Oct 26, 2022
1 parent 4d827da commit 5724782
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flask_paycomuz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Payme_Transaction(db.Model):
amount = db.Column(db.Integer, nullable=True)
state = db.Column(db.Integer, default=1)
created_at = db.Column(db.BigInteger, nullable=False)
reason = db.Column(db.String, nullable=True)
reason = db.Column(db.Integer, nullable=True)
account = db.relationship('Payme_Account', backref='payme_transaction')

def result(self):
Expand Down
2 changes: 1 addition & 1 deletion flask_paycomuz/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def CancelTransaction(self,data):
if tr.state == 1:
tr.state = -1
tr.time = int(time.time() * 1000)
tr.reason = data['params']['reason']
tr.reason = int(data['params']['reason'])
self.db.session.add(tr)
self.db.session.commit()
return {
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class Payme_Account(db.Model):

setup(
name='Flask-PaycomUz',
version='1.2.4',
version='1.2.5',
url='https://github.com/Odya-LLC/flask_paycomuz',
license='MIT',
author='odya',
Expand Down

0 comments on commit 5724782

Please sign in to comment.