Added emergency price. google analytics added

This commit is contained in:
2024-09-25 08:22:45 -04:00
parent b0d94619d9
commit 0ad7ae835a
3 changed files with 4 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ class Pricing_Oil_Oil(Base):
price_same_day = Column(DECIMAL(6, 2))
price_same_day = 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())

View File

@@ -37,12 +37,12 @@ async def get_todays_price_of_items_for_oil():
price_same_day = str(get_current_prices.price_same_day)
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 {
"ok": True,
"price_same_day": price_same_day,
"price_prime": price_prime,
# "price_emergency": price_emergency,
"price_emergency": price_emergency,
}

View File

@@ -13,5 +13,6 @@ class SchemaPricing(BaseModel):
price_for_employee: float
price_same_day: float
price_prime: float
price_emergency: float
date: datetime =Field(default_factory=datetime_now)