49 lines
848 B
Python
49 lines
848 B
Python
import marimo
|
|
|
|
__generated_with = "0.16.5"
|
|
app = marimo.App(width="medium")
|
|
|
|
|
|
@app.cell
|
|
def _():
|
|
from pif_compiler.classes.models import Esposition
|
|
return (Esposition,)
|
|
|
|
|
|
@app.cell
|
|
def _(Esposition):
|
|
it = Esposition(
|
|
preset_name="Test xzzx<xdsadsa<",
|
|
tipo_prodotto="Test Product",
|
|
luogo_applicazione="Face",
|
|
esp_normali=["DERMAL", "ASD"],
|
|
esp_secondarie=["ORAL"],
|
|
esp_nano=["NA"],
|
|
sup_esposta=500,
|
|
freq_applicazione=2,
|
|
qta_giornaliera=1.5,
|
|
ritenzione=0.1
|
|
)
|
|
return (it,)
|
|
|
|
|
|
@app.cell
|
|
def _(it):
|
|
it.save_to_postgres()
|
|
return
|
|
|
|
|
|
@app.cell
|
|
def _(Esposition):
|
|
data = Esposition.get_presets()
|
|
return (data,)
|
|
|
|
|
|
@app.cell
|
|
def _(data):
|
|
data
|
|
return
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app.run()
|