Skip to content

Commit

Permalink
moves load_statuses to the aim cli
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Sep 25, 2024
1 parent 12d5bbb commit 7d37185
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
7 changes: 7 additions & 0 deletions aim/cli/digifeeds.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import typer
from aim.digifeeds.database import models, main

app = typer.Typer()


@app.command()
def add_to_db(barcode: str):
print(f'Adding barcode "{barcode}" to database')


@app.command()
def load_statuses():
with main.SessionLocal() as db_session:
models.load_statuses(session=db_session)
12 changes: 0 additions & 12 deletions aim/digifeeds/bin/load_statuses.py

This file was deleted.

0 comments on commit 7d37185

Please sign in to comment.