Added emergency price. google analytics added
This commit is contained in:
@@ -18,7 +18,7 @@ class Pricing_Oil_Oil(Base):
|
|||||||
price_same_day = Column(DECIMAL(6, 2))
|
price_same_day = Column(DECIMAL(6, 2))
|
||||||
price_same_day = Column(DECIMAL(6, 2))
|
price_same_day = Column(DECIMAL(6, 2))
|
||||||
price_prime = Column(DECIMAL(6, 2))
|
price_prime = Column(DECIMAL(6, 2))
|
||||||
#price_emergency = Column(DECIMAL(6, 2))
|
price_emergency = Column(DECIMAL(6, 2))
|
||||||
date = Column(TIMESTAMP(), default=datetime.utcnow())
|
date = Column(TIMESTAMP(), default=datetime.utcnow())
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -37,12 +37,12 @@ async def get_todays_price_of_items_for_oil():
|
|||||||
|
|
||||||
price_same_day = str(get_current_prices.price_same_day)
|
price_same_day = str(get_current_prices.price_same_day)
|
||||||
price_prime = str(get_current_prices.price_prime)
|
price_prime = str(get_current_prices.price_prime)
|
||||||
#price_emergency = str(get_current_prices.price_emergency)
|
price_emergency = str(get_current_prices.price_emergency)
|
||||||
return {
|
return {
|
||||||
"ok": True,
|
"ok": True,
|
||||||
"price_same_day": price_same_day,
|
"price_same_day": price_same_day,
|
||||||
"price_prime": price_prime,
|
"price_prime": price_prime,
|
||||||
# "price_emergency": price_emergency,
|
"price_emergency": price_emergency,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ class SchemaPricing(BaseModel):
|
|||||||
price_for_employee: float
|
price_for_employee: float
|
||||||
price_same_day: float
|
price_same_day: float
|
||||||
price_prime: float
|
price_prime: float
|
||||||
|
price_emergency: float
|
||||||
date: datetime =Field(default_factory=datetime_now)
|
date: datetime =Field(default_factory=datetime_now)
|
||||||
|
|
||||||
Reference in New Issue
Block a user