unsure
This commit is contained in:
17
app/info/views.py
Normal file → Executable file
17
app/info/views.py
Normal file → Executable file
@@ -1,7 +1,7 @@
|
||||
from flask import jsonify
|
||||
from app.info import info
|
||||
from app import db
|
||||
from app.classes.pricing import Pricing_Oil_Oil, Pricing_Service_General
|
||||
from app.classes.pricing import Pricing_Oil_Oil
|
||||
from app.classes.admin import Admin_Company
|
||||
|
||||
|
||||
@@ -16,21 +16,6 @@ def get_oil_price():
|
||||
}), 200
|
||||
|
||||
|
||||
@info.route("/price/service", methods=["GET"])
|
||||
def get_service_price():
|
||||
get_price_query = (db.session
|
||||
.query(Pricing_Service_General)
|
||||
.order_by(Pricing_Service_General.date.desc())
|
||||
.first())
|
||||
|
||||
return jsonify({"ok": True,
|
||||
'price_hourly': get_price_query.price_service_hour,
|
||||
'emergency_fee': get_price_query.price_emergency_call,
|
||||
'emergency_rate': get_price_query.price_emergency_service_hour,
|
||||
'prime': get_price_query.price_prime,
|
||||
'cleaning': get_price_query.price_cleaning,
|
||||
'out_of_oil': get_price_query.price_out_of_oil,
|
||||
}), 200
|
||||
|
||||
|
||||
@info.route("/company", methods=["GET"])
|
||||
|
||||
Reference in New Issue
Block a user