-
Notifications
You must be signed in to change notification settings - Fork 2
/
rents.py
42 lines (28 loc) · 968 Bytes
/
rents.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
from flask import request
from flask_restful import Resource
from flask_jwt_extended import jwt_required, get_jwt_identity
from data_pm import connect, uploadImage, s3
import boto3
import json
from datetime import date, datetime, timedelta
from dateutil.relativedelta import relativedelta
import calendar
from queries import testQuery, RentStatusQuery, RentDetailsQuery
class RentTest(Resource):
def get(self, user_id):
print("in Get Rent TEST Status")
response = {}
response["testStatus"] = testQuery(user_id)
return response
class Rents(Resource):
def get(self, user_id):
print("in Get Rent Status")
response = {}
response["RentStatus"] = RentStatusQuery(user_id)
return response
class RentDetails(Resource):
def get(self, user_id):
print("in Get Rent Details")
response = {}
response["RentStatus"] = RentDetailsQuery(user_id)
return response