Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""NX AI - FastAPI/Python/Postgres/tsvector"""

# Current Version
__version__ = "1.0.7"
__version__ = "1.0.8"
1 change: 1 addition & 0 deletions app/api/products/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .products import router
File renamed without changes.
2 changes: 1 addition & 1 deletion app/api/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def root() -> dict:
"message": "Welcome to NX AI!"
}
endpoints = [
{"docs": "docs", "url": f"{base_url}/docs"},
{"name": "docs", "url": f"{base_url}/docs"},
{"name": "health", "url": f"{base_url}/health"},
{"name": "products", "url": f"{base_url}/products"}
]
Expand Down
2 changes: 1 addition & 1 deletion app/api/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from app.api.health import router as health_router
from app.api.echo import router as echo_router
from app.api.import_csv import router as import_csv_router
from app.api.products import router as products_router
from app.api.products.products import router as products_router

router.include_router(root_router)
router.include_router(health_router)
Expand Down
9 changes: 9 additions & 0 deletions tests/csv/small.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Params,item,desc,UOS,Pack_Description,Hierarchy1,Hierarchy2,Hierarchy3,UOP,sSell1,sSell2,sSell3,sSell4,sSell5,pack1,pack2,pack3,pack4,pack5,EAN
"Branch: 1, Display Cost: Y,From Hierarchy1: 19,To Hierarchy1: 19,From Hierarchy2: ,To Hierarchy2: ZZZZZZZZZZ,From Hierarchy3: ,To Hierarchy3: ZZZZZZZZZZ",14217,HEETS AMBER LABEL,10,20'S,19 ECIG/VAPE,,,1,55.99,0,0,0,0,1,0,0,0,0,5.06059E+12

"Branch: 1, Display Cost: Y,From Hierarchy1: 19,To Hierarchy1: 19,From Hierarchy2: ,To Hierarchy2: ZZZZZZZZZZ,From Hierarchy3: ,To Hierarchy3: ZZZZZZZZZZ",19098,INSTA FLOW 5000 FRESH MINT MOJITO,1,6,19 ECIG/VAPE,,,1,28.99,0,0,0,0,1,0,0,0,0,
"Branch: 1, Display Cost: Y,From Hierarchy1: 19,To Hierarchy1: 19,From Hierarchy2: ,To Hierarchy2: ZZZZZZZZZZ,From Hierarchy3: ,To Hierarchy3: ZZZZZZZZZZ",19099,INSTA FLOW 5000 KIWI PASSION FRUIT GUAVA,1,6,19 ECIG/VAPE,,,1,28.99,0,0,0,0,1,0,0,0,0,5.06102E+12
"Branch: 1, Display Cost: Y,From Hierarchy1: 19,To Hierarchy1: 19,From Hierarchy2: ,To Hierarchy2: ZZZZZZZZZZ,From Hierarchy3: ,To Hierarchy3: ZZZZZZZZZZ",19100,INSTA FLOW 5000 LEMON LIME,1,6,19 ECIG/VAPE,,,1,28.99,0,0,0,0,1,0,0,0,0,
"Branch: 1, Display Cost: Y,From Hierarchy1: 19,To Hierarchy1: 19,From Hierarchy2: ,To Hierarchy2: ZZZZZZZZZZ,From Hierarchy3: ,To Hierarchy3: ZZZZZZZZZZ",19101,INSTA FLOW 5000 PINEAPPLE ICE,1,6,19 ECIG/VAPE,,,1,28.99,0,0,0,0,1,0,0,0,0,
"Branch: 1, Display Cost: Y,From Hierarchy1: 19,To Hierarchy1: 19,From Hierarchy2: ,To Hierarchy2: ZZZZZZZZZZ,From Hierarchy3: ,To Hierarchy3: ZZZZZZZZZZ",19102,INSTA FLOW 5000 POLAR MINT,1,6,19 ECIG/VAPE,,,1,28.99,0,0,0,0,1,0,0,0,0,
"Branch: 1, Display Cost: Y,From Hierarchy1: 19,To Hierarchy1: 19,From Hierarchy2: ,To Hierarchy2: ZZZZZZZZZZ,From Hierarchy3: ,To Hierarchy3: ZZZZZZZZZZ",19103,INSTA FLOW 5000 RASPBERRY LEMONADE,1,6,19 ECIG/VAPE,,,1,28.99,0,0,0,0,1,0,0,0,0,
Loading