Commit Graph

11 Commits

Author SHA1 Message Date
Markus Tiefenbacher
eeff2abab6 Unimarkt Categories 2023-06-22 23:56:20 +02:00
Mario Zechner
303d25ccb5 Categories for Billa & Spar, infra to add catgories for other stores.
Billa maps directly to the canonical categories. Spar uses a mapping file stores/spar-categories.json.

Each store has a generateCategoryMapping() function which is called once in analysis.js:updateData() and analysis.js:replay(). The function is responsible for

* Fetching the latest categories
* Merging them with already mapped categories
* Report new categories that haven't been mapped yet
* Report categories that have been mapped but are no longer part of the latest set of categories
* Save the merged mappings to disk

This schema might not work for all stores, in which case updateData() and replay() will use a knn approach to figure out the category for an item. See #81
2023-06-21 01:29:00 +02:00
Mario Zechner
898fa44ff1 Add description to items where available, use it in search index. 2023-06-17 20:54:45 +02:00
Matthias Hochsteger
17f5b5add4 Fix unimarkt units
Use 1 stk as fallback (7 articles so far).
The other 20 are using "mbe" -> wg (Waschgang).
2023-06-06 21:19:30 +02:00
Markus Tiefenbacher
f76be098c4 Add missing unimarkt "haushalt" category
Products like pet food, soap, shampoo, etc.
2023-06-06 16:55:22 +02:00
Matthias Hochsteger
ce13e6cc1d Units handling for Unimarkt, some clenaup 2023-06-03 15:09:29 +02:00
Mario Zechner
8bf0d65d89
Merge branch 'main' into compress-json 2023-06-02 16:56:22 +02:00
Mario Zechner
c6bbd0e03b Increased maxWidth to 150 in prettier config, formatted all the things. See #52. 2023-06-02 16:45:54 +02:00
Christian Tschugg
02bd7e5ff8 Compress raw data files on disk, fixes badlogic/heissepreise#51 2023-06-02 16:24:58 +02:00
Markus Tiefenbacher
7012e246fd Dedect Unimarkt Bio Products
should dedect about 99% of unimarkt bio products
2023-05-29 09:55:51 +02:00
Markus Tiefenbacher
1fa31bdf7c Add Unimarkt Support 2023-05-29 00:08:32 +02:00