Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Bug-Fix: ',' within standard category field | 1bbc9791bf61c8c6d1889f3ba29191d665f85185 | Sebastian Fricke | 2020-04-30 07:44:40 |
Bug-Fix: Missing 'n's from Item name | b7d5f1d61d0b38646b1b71fc31d55f27ca551851 | Sebastian Fricke | 2020-04-30 07:43:07 |
Bug-Fix: Wrong value assignment to zip | 7fbe847e16821ddbaf18763d540d3f62a39567e0 | Sebastian Fricke | 2020-04-30 07:25:08 |
Fix-Typo: Typo in user prompt for the image upload | ed75e2ffc7426217ce6d529994901bd17f22b133 | Sebastian Fricke | 2020-04-30 06:55:36 |
Bug-fix: Empty output item upload | c7b09d6224024d03e2ac711371091fc46c234bb0 | Sebastian Fricke | 2020-04-30 06:53:28 |
Remove encoding from xlsx file intern numbers | 798259d898b83395e50f4d855399058c807f0c0c | Sebastian Fricke | 2020-04-29 13:50:47 |
Improve coding style and linting | d3d1d6de52f0f5530ec200aae082ac0ec99ddd70 | Sebastian Fricke | 2020-04-29 10:08:21 |
Remove fixed values for specific item settings | 0f2452a1bb953efcbb797c5feeb2b8f35617f537 | Sebastian Fricke | 2020-04-29 08:38:52 |
Remove fixed fba values from upload | 758ca263cf88343c55af70b1e7824c76d485d7f2 | Sebastian Fricke | 2020-04-29 08:32:09 |
Remove market assign & availibilty settings | fdf971d45706f8c75d9a7ea7e949193c45620051 | Sebastian Fricke | 2020-04-29 07:31:36 |
Remove manual upload of extern id & export files | 66d60bc9243173f256b01071f203849edf43546d | Sebastian Fricke | 2020-04-28 13:55:27 |
Bug Fix: product-import.py Empty TK root window | 0b087f8a7902523b2495c936a6e09447a93a6cb5 | Sebastian Fricke | 2020-04-28 09:41:04 |
Add ignore file for silver searcher tool | 87a1b335af1f88c10ad12e5b8f59f8207c58aaec | Sebastian Fricke | 2020-04-28 09:25:54 |
add tests folder pycache to gitignore | 9d7989d1658d3dffd7eb00e9411af3dec6c85563 | Sebastian Fricke | 2020-04-27 12:55:24 |
Unit test for find_price function | c19fa28ad9bf0dd1b5361e871dc498f6704cb196 | Sebastian Fricke | 2020-04-27 12:53:20 |
Remove price calculation from script | d852cb3ef648336ed94daeaaa220721e6055dd7c | Sebastian Fricke | 2020-04-27 12:50:52 |
Function description priceUpload | 2c5735f4f4c79607f55c77b1359aa5984d1e6699 | Sebastian Fricke | 2020-04-23 09:34:30 |
similar attribute search regardless of the parent | 4bb0970408d78d25264d479428fe8c3389483215 | Sebastian Fricke | 2020-04-23 09:28:19 |
Fix marking dropdown bug | 0d1695083d2b4e49fd364a36a7ef3c92a192d62f | Sebastian Fricke | 2020-04-23 09:26:46 |
update desktop specific build script for windows | 8a6536d6173f7383022fab92f234ab25fc81204b | Sebastian Fricke | 2020-04-22 10:15:05 |
File | Lines added | Lines deleted |
---|---|---|
packages/item_upload.py | 28 | 1 |
File packages/item_upload.py changed (mode: 100644) (index 3fba408..0bef68c) | |||
... | ... | def itemUpload(flatfile, intern, stocklist, folder, input_data, filename): | |
90 | 90 | except Exception as err: | except Exception as err: |
91 | 91 | error.warnPrint(msg="Attribute setting failed", err=err, | error.warnPrint(msg="Attribute setting failed", err=err, |
92 | 92 | linenumber=sys.exc_info()[2].tb_lineno) | linenumber=sys.exc_info()[2].tb_lineno) |
93 | |||
94 | standard_cat = get_standard_category(cat=input_data['categories']) | ||
95 | |||
93 | 96 | try: | try: |
94 | 97 | values = [ | values = [ |
95 | 98 | row['parent_sku'], row['item_sku'], | row['parent_sku'], row['item_sku'], |
... | ... | def itemUpload(flatfile, intern, stocklist, folder, input_data, filename): | |
104 | 107 | input_data['name'], row['product_description'], | input_data['name'], row['product_description'], |
105 | 108 | '', # externalID | '', # externalID |
106 | 109 | input_data['categories'], | input_data['categories'], |
107 | input_data['categories'][0:3], input_data['categories'][0:3], | ||
110 | standard_cat, standard_cat, | ||
108 | 111 | '', '', # barcode | '', '', # barcode |
109 | 112 | '', '', # market & accout id amazonsku | '', '', # market & accout id amazonsku |
110 | 113 | '', '', # sku & parentsku amazonsku | '', '', # sku & parentsku amazonsku |
... | ... | def get_externalid(dataset, numberlist): | |
498 | 501 | msg=str(f"{key} was not found in intern number list"), | msg=str(f"{key} was not found in intern number list"), |
499 | 502 | err='', linenumber=inspect.currentframe().f_back.f_lineno) | err='', linenumber=inspect.currentframe().f_back.f_lineno) |
500 | 503 | dataset[key]['ExternalID'] = exid.values.max() | dataset[key]['ExternalID'] = exid.values.max() |
504 | |||
505 | |||
506 | def get_standard_category(cat): | ||
507 | """ | ||
508 | Parameter: | ||
509 | cat [String] => String representation of category ids | ||
510 | separated by ',' | ||
511 | |||
512 | Description: | ||
513 | Get the first entry from a list of category ids, with a maximum | ||
514 | length of 3 digits. | ||
515 | |||
516 | Return: | ||
517 | [INT] integer representation of the category ID | ||
518 | """ | ||
519 | if not cat: | ||
520 | return 0 | ||
521 | value = cat[0:3].strip(',') | ||
522 | try: | ||
523 | cat_id = int(value) | ||
524 | except ValueError: | ||
525 | return 0 | ||
526 | |||
527 | return cat_id |