dockerfile.dev

This commit is contained in:
Tom Villette
2023-08-29 18:47:08 +02:00
parent cd39ac22fc
commit b90e7028b7
4 changed files with 26 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ async def root():
@app.post("/reprocess/")
async def reprocess(ep_items: Evepraisal, ep_mat: Evepraisal, efficiency: float = .55, sde: Session = Depends(get_sde_session)):
async def reprocess(ep_items: Evepraisal, ep_mat: Evepraisal, efficiency: float = .55, sde: Session = Depends(get_sde_session)) -> List[PriceReprocess]:
matprices = {item.typeID: {'sell': item.prices.sell.min, 'buy': item.prices.buy.max} for item in ep_mat.items}
item_reprocess: List[PriceReprocess] = []

View File

@@ -69,7 +69,6 @@ class MarketGroup(SQLModel, table=True):
class Type(SQLModel, table=True):
id: int = Field(primary_key=True)
# id = Column(Integer, primary_key=True, index=True)
group_id: Optional[int] = Field(default=None, foreign_key="group.id")
group: Optional[Group] = Relationship(back_populates="types")