Fixed issue where session via request wouldn't work.

This commit is contained in:
Ed 2023-01-17 22:49:39 +01:00
parent a1aca73527
commit d6c19862de
1 changed files with 5 additions and 5 deletions

2
ext.py
View File

@ -11,7 +11,7 @@ from time import time
class Order: class Order:
def __init__(self, data): def __init__(self, data):
self.time = time self.time = time()
self.data = data self.data = data
self.status = {'n': 'pending', 'p': 'paid', 'e': 'expired', 'c': 'canceled'}[self.data['status']] self.status = {'n': 'pending', 'p': 'paid', 'e': 'expired', 'c': 'canceled'}[self.data['status']]
self.code = data['code'] self.code = data['code']