python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 1847612 load datou : 4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de nombre was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current 4302 [] TODO datou_current to load to do maybe to take outside batchDatouExec SELECT * from MTRPhoto.mtr_datou_current where state = 0 AND mtr_portfolio_id is not NULL AND mtd_id = 4302 order by created_at desc LIMIT 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4025411) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4025411) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28378557 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4025411'] with mtr_portfolio_ids : ['28378557'] and first list_photo_ids : [] new path : /proc/1847612/ Name: python3 Umask: 0002 State: R (running) Tgid: 1847612 Ngid: 0 Pid: 1847612 PPid: 1847611 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1847612 NSpid: 1847612 NSpgid: 1845930 NSsid: 1845930 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99484 kB VmRSS: 99484 kB RssAnon: 59908 kB RssFile: 39576 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 50 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1847612', 'Ngid': '0', 'Pid': '1847612', 'PPid': '1847611', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1847612', 'NSpid': '1847612', 'NSpgid': '1845930', 'NSsid': '1845930', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99484 kB', 'VmRSS': '99484 kB', 'RssAnon': '59908 kB', 'RssFile': '39576 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '50', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '1847612', '1106908', '0', '1106884', '865636', '99484', b'', 'marlene', '4025411') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28378557) and hide_status = 0 ) AND ph.photo_id not in (SELECT mtr_photo_id from MTRPhoto.mtr_datou_result_search where mtr_current_id in (4025411 ) ) ORDER BY ph.photo_id DESC LIMIT 0, 200 We have 1 , {} SELECT mtr_photo_id, mtr_portfolio_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28378557) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1393689091, 'portfolio_id': 28378557}, {'photo_id': 1393689085, 'portfolio_id': 28378557}, {'photo_id': 1393689082, 'portfolio_id': 28378557}, {'photo_id': 1393689064, 'portfolio_id': 28378557}, {'photo_id': 1393689062, 'portfolio_id': 28378557}, {'photo_id': 1393689053, 'portfolio_id': 28378557}, {'photo_id': 1393689042, 'portfolio_id': 28378557}, {'photo_id': 1393688989, 'portfolio_id': 28378557}, {'photo_id': 1393688985, 'portfolio_id': 28378557}, {'photo_id': 1393688983, 'portfolio_id': 28378557}, {'photo_id': 1393688981, 'portfolio_id': 28378557}, {'photo_id': 1393688979, 'portfolio_id': 28378557}, {'photo_id': 1393688978, 'portfolio_id': 28378557}, {'photo_id': 1393688950, 'portfolio_id': 28378557}, {'photo_id': 1393688947, 'portfolio_id': 28378557}, {'photo_id': 1393688945, 'portfolio_id': 28378557}, {'photo_id': 1393688943, 'portfolio_id': 28378557}, {'photo_id': 1393688931, 'portfolio_id': 28378557}, {'photo_id': 1393688917, 'portfolio_id': 28378557}, {'photo_id': 1393688835, 'portfolio_id': 28378557}, {'photo_id': 1393688833, 'portfolio_id': 28378557}, {'photo_id': 1393688831, 'portfolio_id': 28378557}, {'photo_id': 1393688829, 'portfolio_id': 28378557}, {'photo_id': 1393688768, 'portfolio_id': 28378557}, {'photo_id': 1393688765, 'portfolio_id': 28378557}, {'photo_id': 1393688757, 'portfolio_id': 28378557}, {'photo_id': 1393688755, 'portfolio_id': 28378557}, {'photo_id': 1393688753, 'portfolio_id': 28378557}, {'photo_id': 1393688728, 'portfolio_id': 28378557}, {'photo_id': 1393688727, 'portfolio_id': 28378557}, {'photo_id': 1393688725, 'portfolio_id': 28378557}, {'photo_id': 1393688688, 'portfolio_id': 28378557}, {'photo_id': 1393688684, 'portfolio_id': 28378557}, {'photo_id': 1393688678, 'portfolio_id': 28378557}, {'photo_id': 1393688674, 'portfolio_id': 28378557}, {'photo_id': 1393688661, 'portfolio_id': 28378557}, {'photo_id': 1393688654, 'portfolio_id': 28378557}, {'photo_id': 1393688614, 'portfolio_id': 28378557}, {'photo_id': 1393688612, 'portfolio_id': 28378557}, {'photo_id': 1393688611, 'portfolio_id': 28378557}, {'photo_id': 1393688610, 'portfolio_id': 28378557}, {'photo_id': 1393688564, 'portfolio_id': 28378557}, {'photo_id': 1393688558, 'portfolio_id': 28378557}, {'photo_id': 1393688546, 'portfolio_id': 28378557}, {'photo_id': 1393688541, 'portfolio_id': 28378557}, {'photo_id': 1393688522, 'portfolio_id': 28378557}, {'photo_id': 1393688359, 'portfolio_id': 28378557}, {'photo_id': 1393688354, 'portfolio_id': 28378557}, {'photo_id': 1393688349, 'portfolio_id': 28378557}, {'photo_id': 1393688346, 'portfolio_id': 28378557}, {'photo_id': 1393688344, 'portfolio_id': 28378557}, {'photo_id': 1393688338, 'portfolio_id': 28378557}, {'photo_id': 1393688332, 'portfolio_id': 28378557}, {'photo_id': 1393688325, 'portfolio_id': 28378557}, {'photo_id': 1393688298, 'portfolio_id': 28378557}, {'photo_id': 1393688262, 'portfolio_id': 28378557}, {'photo_id': 1393688207, 'portfolio_id': 28378557}, {'photo_id': 1393688171, 'portfolio_id': 28378557}, {'photo_id': 1393688131, 'portfolio_id': 28378557}, {'photo_id': 1393688097, 'portfolio_id': 28378557}, {'photo_id': 1393687926, 'portfolio_id': 28378557}, {'photo_id': 1393687924, 'portfolio_id': 28378557}, {'photo_id': 1393687921, 'portfolio_id': 28378557}, {'photo_id': 1393687869, 'portfolio_id': 28378557}, {'photo_id': 1393687867, 'portfolio_id': 28378557}, {'photo_id': 1393687858, 'portfolio_id': 28378557}, {'photo_id': 1393687675, 'portfolio_id': 28378557}, {'photo_id': 1393687672, 'portfolio_id': 28378557}, {'photo_id': 1393687664, 'portfolio_id': 28378557}, {'photo_id': 1393687641, 'portfolio_id': 28378557}, {'photo_id': 1393687471, 'portfolio_id': 28378557}, {'photo_id': 1393687467, 'portfolio_id': 28378557}, {'photo_id': 1393687466, 'portfolio_id': 28378557}, {'photo_id': 1393687465, 'portfolio_id': 28378557}, {'photo_id': 1393687447, 'portfolio_id': 28378557}, {'photo_id': 1393687166, 'portfolio_id': 28378557}, {'photo_id': 1393687142, 'portfolio_id': 28378557}] map_portfolio_id_photo_id: {28378557: [1393689091, 1393689085, 1393689082, 1393689064, 1393689062, 1393689053, 1393689042, 1393688989, 1393688985, 1393688983, 1393688981, 1393688979, 1393688978, 1393688950, 1393688947, 1393688945, 1393688943, 1393688931, 1393688917, 1393688835, 1393688833, 1393688831, 1393688829, 1393688768, 1393688765, 1393688757, 1393688755, 1393688753, 1393688728, 1393688727, 1393688725, 1393688688, 1393688684, 1393688678, 1393688674, 1393688661, 1393688654, 1393688614, 1393688612, 1393688611, 1393688610, 1393688564, 1393688558, 1393688546, 1393688541, 1393688522, 1393688359, 1393688354, 1393688349, 1393688346, 1393688344, 1393688338, 1393688332, 1393688325, 1393688298, 1393688262, 1393688207, 1393688171, 1393688131, 1393688097, 1393687926, 1393687924, 1393687921, 1393687869, 1393687867, 1393687858, 1393687675, 1393687672, 1393687664, 1393687641, 1393687471, 1393687467, 1393687466, 1393687465, 1393687447, 1393687166, 1393687142]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.018384695053100586 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Nov 10 08:32:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28378557) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} beginning of datou step ventilate_hashtags_in_portfolio : To implement ! To do loadFromThcl(), then load ParamDescType : thcl2725 get_desc_type_from_thcl : type of cat SELECT id, mtr_user_id, name, pb_hashtag_id, hashtag_id_list, button_legend_list, portfolio_id_lists, photo_hashtag_type, photo_desc_type, svm_limit, limit_tagging, is_public, live, created_at, updated_at, type_classification FROM MTRDatou.classification_theme WHERE `id` IN (2725) thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 remove imagettes from duplicated photo Iterating over portfolio : 28378557 get user id for portfolio 28378557 get sub ptf for main ptf 28378557, type 3726 and hashtags ['metal', 'Teint_Dans_La_Masse', 'cartonnette', 'mal_croppe', 'Carton_brun', 'plastique', 'autre_refus', 'papier', 'kraft', 'environnement', 'Carton_gris', 'flou'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28378557 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Teint_Dans_La_Masse','cartonnette','mal_croppe','Carton_brun','plastique','autre_refus','papier','kraft','environnement','Carton_gris','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28378557 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Teint_Dans_La_Masse','cartonnette','mal_croppe','Carton_brun','plastique','autre_refus','papier','kraft','environnement','Carton_gris','flou')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 28378557, 'sub_port_id': 28378585, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216023, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 28)}, 'flou': {'main_port_id': 28378557, 'sub_port_id': 28378586, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216024, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 28)}, 'papier': {'main_port_id': 28378557, 'sub_port_id': 28378587, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216025, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 28)}, 'mal_croppe': {'main_port_id': 28378557, 'sub_port_id': 28378588, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216026, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 28)}, 'kraft': {'main_port_id': 28378557, 'sub_port_id': 28378589, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216027, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 28)}, 'cartonnette': {'main_port_id': 28378557, 'sub_port_id': 28378590, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216028, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 28)}, 'Carton_brun': {'main_port_id': 28378557, 'sub_port_id': 28378591, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216029, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 28)}, 'environnement': {'main_port_id': 28378557, 'sub_port_id': 28378592, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216030, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 28378557, 'sub_port_id': 28378593, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216031, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 28)}, 'plastique': {'main_port_id': 28378557, 'sub_port_id': 28378594, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216032, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 28)}, 'Carton_gris': {'main_port_id': 28378557, 'sub_port_id': 28378595, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216033, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 28)}, 'metal': {'main_port_id': 28378557, 'sub_port_id': 28378596, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216034, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28378585 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=28378557 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378585) result : ((1393688333,), (1393688334,), (1393688595,), (1393688596,), (1393688693,), (1393688694,), (1393688713,), (1393688818,), (1393688819,), (1393689090,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378557) result : ((1393687142,), (1393687166,), (1393687447,), (1393687465,), (1393687466,), (1393687467,), (1393687471,), (1393687641,), (1393687664,), (1393687672,), (1393687675,), (1393687858,), (1393687867,), (1393687869,), (1393687921,), (1393687924,), (1393687926,), (1393688097,), (1393688131,), (1393688171,), (1393688207,), (1393688262,), (1393688298,), (1393688325,), (1393688332,), (1393688338,), (1393688344,), (1393688346,), (1393688349,), (1393688354,), (1393688359,), (1393688522,), (1393688541,), (1393688546,), (1393688558,), (1393688564,), (1393688610,), (1393688611,), (1393688612,), (1393688614,), (1393688654,), (1393688661,), (1393688674,), (1393688678,), (1393688684,), (1393688688,), (1393688725,), (1393688727,), (1393688728,), (1393688753,), (1393688755,), (1393688757,), (1393688765,), (1393688768,), (1393688829,), (1393688831,), (1393688833,), (1393688835,), (1393688917,), (1393688931,), (1393688943,), (1393688945,), (1393688947,), (1393688950,), (1393688978,), (1393688979,), (1393688981,), (1393688983,), (1393688985,), (1393688989,), (1393689042,), (1393689053,), (1393689062,), (1393689064,), (1393689082,), (1393689085,), (1393689091,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28378586 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=28378557 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378586) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378557) result : ((1393687142,), (1393687166,), (1393687447,), (1393687465,), (1393687466,), (1393687467,), (1393687471,), (1393687641,), (1393687664,), (1393687672,), (1393687675,), (1393687858,), (1393687867,), (1393687869,), (1393687921,), (1393687924,), (1393687926,), (1393688097,), (1393688131,), (1393688171,), (1393688207,), (1393688262,), (1393688298,), (1393688325,), (1393688332,), (1393688338,), (1393688344,), (1393688346,), (1393688349,), (1393688354,), (1393688359,), (1393688522,), (1393688541,), (1393688546,), (1393688558,), (1393688564,), (1393688610,), (1393688611,), (1393688612,), (1393688614,), (1393688654,), (1393688661,), (1393688674,), (1393688678,), (1393688684,), (1393688688,), (1393688725,), (1393688727,), (1393688728,), (1393688753,), (1393688755,), (1393688757,), (1393688765,), (1393688768,), (1393688829,), (1393688831,), (1393688833,), (1393688835,), (1393688917,), (1393688931,), (1393688943,), (1393688945,), (1393688947,), (1393688950,), (1393688978,), (1393688979,), (1393688981,), (1393688983,), (1393688985,), (1393688989,), (1393689042,), (1393689053,), (1393689062,), (1393689064,), (1393689082,), (1393689085,), (1393689091,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28378587 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=28378557 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378587) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378557) result : ((1393687142,), (1393687166,), (1393687447,), (1393687465,), (1393687466,), (1393687467,), (1393687471,), (1393687641,), (1393687664,), (1393687672,), (1393687675,), (1393687858,), (1393687867,), (1393687869,), (1393687921,), (1393687924,), (1393687926,), (1393688097,), (1393688131,), (1393688171,), (1393688207,), (1393688262,), (1393688298,), (1393688325,), (1393688332,), (1393688338,), (1393688344,), (1393688346,), (1393688349,), (1393688354,), (1393688359,), (1393688522,), (1393688541,), (1393688546,), (1393688558,), (1393688564,), (1393688610,), (1393688611,), (1393688612,), (1393688614,), (1393688654,), (1393688661,), (1393688674,), (1393688678,), (1393688684,), (1393688688,), (1393688725,), (1393688727,), (1393688728,), (1393688753,), (1393688755,), (1393688757,), (1393688765,), (1393688768,), (1393688829,), (1393688831,), (1393688833,), (1393688835,), (1393688917,), (1393688931,), (1393688943,), (1393688945,), (1393688947,), (1393688950,), (1393688978,), (1393688979,), (1393688981,), (1393688983,), (1393688985,), (1393688989,), (1393689042,), (1393689053,), (1393689062,), (1393689064,), (1393689082,), (1393689085,), (1393689091,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28378588 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=28378557 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378588) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378557) result : ((1393687142,), (1393687166,), (1393687447,), (1393687465,), (1393687466,), (1393687467,), (1393687471,), (1393687641,), (1393687664,), (1393687672,), (1393687675,), (1393687858,), (1393687867,), (1393687869,), (1393687921,), (1393687924,), (1393687926,), (1393688097,), (1393688131,), (1393688171,), (1393688207,), (1393688262,), (1393688298,), (1393688325,), (1393688332,), (1393688338,), (1393688344,), (1393688346,), (1393688349,), (1393688354,), (1393688359,), (1393688522,), (1393688541,), (1393688546,), (1393688558,), (1393688564,), (1393688610,), (1393688611,), (1393688612,), (1393688614,), (1393688654,), (1393688661,), (1393688674,), (1393688678,), (1393688684,), (1393688688,), (1393688725,), (1393688727,), (1393688728,), (1393688753,), (1393688755,), (1393688757,), (1393688765,), (1393688768,), (1393688829,), (1393688831,), (1393688833,), (1393688835,), (1393688917,), (1393688931,), (1393688943,), (1393688945,), (1393688947,), (1393688950,), (1393688978,), (1393688979,), (1393688981,), (1393688983,), (1393688985,), (1393688989,), (1393689042,), (1393689053,), (1393689062,), (1393689064,), (1393689082,), (1393689085,), (1393689091,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28378589 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=28378557 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378589) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378557) result : ((1393687142,), (1393687166,), (1393687447,), (1393687465,), (1393687466,), (1393687467,), (1393687471,), (1393687641,), (1393687664,), (1393687672,), (1393687675,), (1393687858,), (1393687867,), (1393687869,), (1393687921,), (1393687924,), (1393687926,), (1393688097,), (1393688131,), (1393688171,), (1393688207,), (1393688262,), (1393688298,), (1393688325,), (1393688332,), (1393688338,), (1393688344,), (1393688346,), (1393688349,), (1393688354,), (1393688359,), (1393688522,), (1393688541,), (1393688546,), (1393688558,), (1393688564,), (1393688610,), (1393688611,), (1393688612,), (1393688614,), (1393688654,), (1393688661,), (1393688674,), (1393688678,), (1393688684,), (1393688688,), (1393688725,), (1393688727,), (1393688728,), (1393688753,), (1393688755,), (1393688757,), (1393688765,), (1393688768,), (1393688829,), (1393688831,), (1393688833,), (1393688835,), (1393688917,), (1393688931,), (1393688943,), (1393688945,), (1393688947,), (1393688950,), (1393688978,), (1393688979,), (1393688981,), (1393688983,), (1393688985,), (1393688989,), (1393689042,), (1393689053,), (1393689062,), (1393689064,), (1393689082,), (1393689085,), (1393689091,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28378590 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=28378557 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378590) result : ((1393688703,), (1393688704,), (1393688823,), (1393688824,), (1393688825,), (1393689070,), (1393689071,), (1393689096,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378557) result : ((1393687142,), (1393687166,), (1393687447,), (1393687465,), (1393687466,), (1393687467,), (1393687471,), (1393687641,), (1393687664,), (1393687672,), (1393687675,), (1393687858,), (1393687867,), (1393687869,), (1393687921,), (1393687924,), (1393687926,), (1393688097,), (1393688131,), (1393688171,), (1393688207,), (1393688262,), (1393688298,), (1393688325,), (1393688332,), (1393688338,), (1393688344,), (1393688346,), (1393688349,), (1393688354,), (1393688359,), (1393688522,), (1393688541,), (1393688546,), (1393688558,), (1393688564,), (1393688610,), (1393688611,), (1393688612,), (1393688614,), (1393688654,), (1393688661,), (1393688674,), (1393688678,), (1393688684,), (1393688688,), (1393688725,), (1393688727,), (1393688728,), (1393688753,), (1393688755,), (1393688757,), (1393688765,), (1393688768,), (1393688829,), (1393688831,), (1393688833,), (1393688835,), (1393688917,), (1393688931,), (1393688943,), (1393688945,), (1393688947,), (1393688950,), (1393688978,), (1393688979,), (1393688981,), (1393688983,), (1393688985,), (1393688989,), (1393689042,), (1393689053,), (1393689062,), (1393689064,), (1393689082,), (1393689085,), (1393689091,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28378591 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=28378557 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378591) result : ((1393688337,), (1393688597,), (1393688598,), (1393688705,), (1393688706,), (1393688717,), (1393688718,), (1393688719,), (1393688967,), (1393688968,), (1393688969,), (1393688970,), (1393688971,), (1393688972,), (1393689072,), (1393689073,), (1393689097,), (1393689098,), (1393689099,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378557) result : ((1393687142,), (1393687166,), (1393687447,), (1393687465,), (1393687466,), (1393687467,), (1393687471,), (1393687641,), (1393687664,), (1393687672,), (1393687675,), (1393687858,), (1393687867,), (1393687869,), (1393687921,), (1393687924,), (1393687926,), (1393688097,), (1393688131,), (1393688171,), (1393688207,), (1393688262,), (1393688298,), (1393688325,), (1393688332,), (1393688338,), (1393688344,), (1393688346,), (1393688349,), (1393688354,), (1393688359,), (1393688522,), (1393688541,), (1393688546,), (1393688558,), (1393688564,), (1393688610,), (1393688611,), (1393688612,), (1393688614,), (1393688654,), (1393688661,), (1393688674,), (1393688678,), (1393688684,), (1393688688,), (1393688725,), (1393688727,), (1393688728,), (1393688753,), (1393688755,), (1393688757,), (1393688765,), (1393688768,), (1393688829,), (1393688831,), (1393688833,), (1393688835,), (1393688917,), (1393688931,), (1393688943,), (1393688945,), (1393688947,), (1393688950,), (1393688978,), (1393688979,), (1393688981,), (1393688983,), (1393688985,), (1393688989,), (1393689042,), (1393689053,), (1393689062,), (1393689064,), (1393689082,), (1393689085,), (1393689091,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28378592 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=28378557 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378592) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378557) result : ((1393687142,), (1393687166,), (1393687447,), (1393687465,), (1393687466,), (1393687467,), (1393687471,), (1393687641,), (1393687664,), (1393687672,), (1393687675,), (1393687858,), (1393687867,), (1393687869,), (1393687921,), (1393687924,), (1393687926,), (1393688097,), (1393688131,), (1393688171,), (1393688207,), (1393688262,), (1393688298,), (1393688325,), (1393688332,), (1393688338,), (1393688344,), (1393688346,), (1393688349,), (1393688354,), (1393688359,), (1393688522,), (1393688541,), (1393688546,), (1393688558,), (1393688564,), (1393688610,), (1393688611,), (1393688612,), (1393688614,), (1393688654,), (1393688661,), (1393688674,), (1393688678,), (1393688684,), (1393688688,), (1393688725,), (1393688727,), (1393688728,), (1393688753,), (1393688755,), (1393688757,), (1393688765,), (1393688768,), (1393688829,), (1393688831,), (1393688833,), (1393688835,), (1393688917,), (1393688931,), (1393688943,), (1393688945,), (1393688947,), (1393688950,), (1393688978,), (1393688979,), (1393688981,), (1393688983,), (1393688985,), (1393688989,), (1393689042,), (1393689053,), (1393689062,), (1393689064,), (1393689082,), (1393689085,), (1393689091,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28378593 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=28378557 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378593) result : ((1393688692,), (1393688712,), (1393688817,), (1393688951,), (1393689088,), (1393689089,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378557) result : ((1393687142,), (1393687166,), (1393687447,), (1393687465,), (1393687466,), (1393687467,), (1393687471,), (1393687641,), (1393687664,), (1393687672,), (1393687675,), (1393687858,), (1393687867,), (1393687869,), (1393687921,), (1393687924,), (1393687926,), (1393688097,), (1393688131,), (1393688171,), (1393688207,), (1393688262,), (1393688298,), (1393688325,), (1393688332,), (1393688338,), (1393688344,), (1393688346,), (1393688349,), (1393688354,), (1393688359,), (1393688522,), (1393688541,), (1393688546,), (1393688558,), (1393688564,), (1393688610,), (1393688611,), (1393688612,), (1393688614,), (1393688654,), (1393688661,), (1393688674,), (1393688678,), (1393688684,), (1393688688,), (1393688725,), (1393688727,), (1393688728,), (1393688753,), (1393688755,), (1393688757,), (1393688765,), (1393688768,), (1393688829,), (1393688831,), (1393688833,), (1393688835,), (1393688917,), (1393688931,), (1393688943,), (1393688945,), (1393688947,), (1393688950,), (1393688978,), (1393688979,), (1393688981,), (1393688983,), (1393688985,), (1393688989,), (1393689042,), (1393689053,), (1393689062,), (1393689064,), (1393689082,), (1393689085,), (1393689091,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28378594 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=28378557 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378594) result : ((1393688601,), (1393688720,), (1393688826,), (1393688973,), (1393688974,), (1393688975,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378557) result : ((1393687142,), (1393687166,), (1393687447,), (1393687465,), (1393687466,), (1393687467,), (1393687471,), (1393687641,), (1393687664,), (1393687672,), (1393687675,), (1393687858,), (1393687867,), (1393687869,), (1393687921,), (1393687924,), (1393687926,), (1393688097,), (1393688131,), (1393688171,), (1393688207,), (1393688262,), (1393688298,), (1393688325,), (1393688332,), (1393688338,), (1393688344,), (1393688346,), (1393688349,), (1393688354,), (1393688359,), (1393688522,), (1393688541,), (1393688546,), (1393688558,), (1393688564,), (1393688610,), (1393688611,), (1393688612,), (1393688614,), (1393688654,), (1393688661,), (1393688674,), (1393688678,), (1393688684,), (1393688688,), (1393688725,), (1393688727,), (1393688728,), (1393688753,), (1393688755,), (1393688757,), (1393688765,), (1393688768,), (1393688829,), (1393688831,), (1393688833,), (1393688835,), (1393688917,), (1393688931,), (1393688943,), (1393688945,), (1393688947,), (1393688950,), (1393688978,), (1393688979,), (1393688981,), (1393688983,), (1393688985,), (1393688989,), (1393689042,), (1393689053,), (1393689062,), (1393689064,), (1393689082,), (1393689085,), (1393689091,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28378595 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=28378557 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378595) result : ((1393688335,), (1393688336,), (1393688696,), (1393688697,), (1393688698,), (1393688700,), (1393688701,), (1393688715,), (1393688820,), (1393688821,), (1393689067,), (1393689068,), (1393689069,), (1393689094,), (1393689095,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378557) result : ((1393687142,), (1393687166,), (1393687447,), (1393687465,), (1393687466,), (1393687467,), (1393687471,), (1393687641,), (1393687664,), (1393687672,), (1393687675,), (1393687858,), (1393687867,), (1393687869,), (1393687921,), (1393687924,), (1393687926,), (1393688097,), (1393688131,), (1393688171,), (1393688207,), (1393688262,), (1393688298,), (1393688325,), (1393688332,), (1393688338,), (1393688344,), (1393688346,), (1393688349,), (1393688354,), (1393688359,), (1393688522,), (1393688541,), (1393688546,), (1393688558,), (1393688564,), (1393688610,), (1393688611,), (1393688612,), (1393688614,), (1393688654,), (1393688661,), (1393688674,), (1393688678,), (1393688684,), (1393688688,), (1393688725,), (1393688727,), (1393688728,), (1393688753,), (1393688755,), (1393688757,), (1393688765,), (1393688768,), (1393688829,), (1393688831,), (1393688833,), (1393688835,), (1393688917,), (1393688931,), (1393688943,), (1393688945,), (1393688947,), (1393688950,), (1393688978,), (1393688979,), (1393688981,), (1393688983,), (1393688985,), (1393688989,), (1393689042,), (1393689053,), (1393689062,), (1393689064,), (1393689082,), (1393689085,), (1393689091,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28378596 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=28378557 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378596) result : ((1393688707,), (1393689076,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28378557) result : ((1393687142,), (1393687166,), (1393687447,), (1393687465,), (1393687466,), (1393687467,), (1393687471,), (1393687641,), (1393687664,), (1393687672,), (1393687675,), (1393687858,), (1393687867,), (1393687869,), (1393687921,), (1393687924,), (1393687926,), (1393688097,), (1393688131,), (1393688171,), (1393688207,), (1393688262,), (1393688298,), (1393688325,), (1393688332,), (1393688338,), (1393688344,), (1393688346,), (1393688349,), (1393688354,), (1393688359,), (1393688522,), (1393688541,), (1393688546,), (1393688558,), (1393688564,), (1393688610,), (1393688611,), (1393688612,), (1393688614,), (1393688654,), (1393688661,), (1393688674,), (1393688678,), (1393688684,), (1393688688,), (1393688725,), (1393688727,), (1393688728,), (1393688753,), (1393688755,), (1393688757,), (1393688765,), (1393688768,), (1393688829,), (1393688831,), (1393688833,), (1393688835,), (1393688917,), (1393688931,), (1393688943,), (1393688945,), (1393688947,), (1393688950,), (1393688978,), (1393688979,), (1393688981,), (1393688983,), (1393688985,), (1393688989,), (1393689042,), (1393689053,), (1393689062,), (1393689064,), (1393689082,), (1393689085,), (1393689091,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28378557 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Teint_Dans_La_Masse','cartonnette','mal_croppe','Carton_brun','plastique','autre_refus','papier','kraft','environnement','Carton_gris','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28378557 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Teint_Dans_La_Masse','cartonnette','mal_croppe','Carton_brun','plastique','autre_refus','papier','kraft','environnement','Carton_gris','flou')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 28378557, 'sub_port_id': 28378598, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216035, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 30)}, 'flou': {'main_port_id': 28378557, 'sub_port_id': 28378599, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216036, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 30)}, 'papier': {'main_port_id': 28378557, 'sub_port_id': 28378600, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216037, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 30)}, 'mal_croppe': {'main_port_id': 28378557, 'sub_port_id': 28378601, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216038, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 30)}, 'kraft': {'main_port_id': 28378557, 'sub_port_id': 28378602, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216039, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 30)}, 'cartonnette': {'main_port_id': 28378557, 'sub_port_id': 28378603, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216040, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 30)}, 'Carton_brun': {'main_port_id': 28378557, 'sub_port_id': 28378604, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216041, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 30)}, 'environnement': {'main_port_id': 28378557, 'sub_port_id': 28378605, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216042, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 28378557, 'sub_port_id': 28378606, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216043, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 30)}, 'plastique': {'main_port_id': 28378557, 'sub_port_id': 28378607, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216044, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 30)}, 'Carton_gris': {'main_port_id': 28378557, 'sub_port_id': 28378608, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216045, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 30)}, 'metal': {'main_port_id': 28378557, 'sub_port_id': 28378609, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19216046, 'last_updated_at': datetime.datetime(2025, 11, 10, 8, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 8, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 8, 18, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28378598,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28378585 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28378599,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28378586 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28378600,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28378587 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28378601,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28378588 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28378602,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28378589 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28378603,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28378590 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28378604,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28378591 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28378605,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28378592 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28378606,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28378593 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28378607,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28378594 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28378608,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28378595 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28378609,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28378596 lien utilise dans velours : https://marlene.fotonower.com/velours/28378598,28378599,28378600,28378601,28378602,28378603,28378604,28378605,28378606,28378607,28378608,28378609?tags=autre_refus,flou,papier,mal_croppe,kraft,cartonnette,Carton_brun,environnement,Teint_Dans_La_Masse,plastique,Carton_gris,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28378557]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1393689091, 1393689085, 1393689082, 1393689064, 1393689062, 1393689053, 1393689042, 1393688989, 1393688985, 1393688983, 1393688981, 1393688979, 1393688978] map_info['map_portfolio_photo'] : {28378557: [1393689091, 1393689085, 1393689082, 1393689064, 1393689062, 1393689053, 1393689042, 1393688989, 1393688985, 1393688983, 1393688981, 1393688979, 1393688978, 1393688950, 1393688947, 1393688945, 1393688943, 1393688931, 1393688917, 1393688835, 1393688833, 1393688831, 1393688829, 1393688768, 1393688765, 1393688757, 1393688755, 1393688753, 1393688728, 1393688727, 1393688725, 1393688688, 1393688684, 1393688678, 1393688674, 1393688661, 1393688654, 1393688614, 1393688612, 1393688611, 1393688610, 1393688564, 1393688558, 1393688546, 1393688541, 1393688522, 1393688359, 1393688354, 1393688349, 1393688346, 1393688344, 1393688338, 1393688332, 1393688325, 1393688298, 1393688262, 1393688207, 1393688171, 1393688131, 1393688097, 1393687926, 1393687924, 1393687921, 1393687869, 1393687867, 1393687858, 1393687675, 1393687672, 1393687664, 1393687641, 1393687471, 1393687467, 1393687466, 1393687465, 1393687447, 1393687166, 1393687142]} final : False mtd_id 4302 list_pids : [1393689091, 1393689085, 1393689082, 1393689064, 1393689062, 1393689053, 1393689042, 1393688989, 1393688985, 1393688983, 1393688981, 1393688979, 1393688978] Looping around the photos to save general results len do output : 1 /28378557. before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689091', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689085', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689082', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689064', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689062', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689053', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689042', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688989', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688985', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688983', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688981', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688979', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688978', None, None, None, None, None, '4025411') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28378557', "{'autre_refus': 28378585, 'flou': 28378586, 'papier': 28378587, 'mal_croppe': 28378588, 'kraft': 28378589, 'cartonnette': 28378590, 'Carton_brun': 28378591, 'environnement': 28378592, 'Teint_Dans_La_Masse': 28378593, 'plastique': 28378594, 'Carton_gris': 28378595, 'metal': 28378596}", None, None, None, None, '4025411'), ('4302', '28378557', '1393689091', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393689085', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393689082', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393689064', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393689062', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393689053', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393689042', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393688989', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393688985', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393688983', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393688981', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393688979', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393688978', None, None, None, None, None, '4025411')] time used for this insertion : 0.014382600784301758 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5577876567840576 time spend to save output : 0.014715909957885742 total time spend for step 1 : 1.5725035667419434 step2:final Mon Nov 10 08:33:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28378557) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} Beginning of datou step final ! query to retrieve results for portfolio 28378557 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1393687166,1393687142,1393687471,1393687467,1393687466,1393687465,1393687447,1393687675,1393687672,1393687664,1393687641,1393687869,1393687867,1393687858,1393687926,1393688338,1393687924,1393688332,1393687921,1393688325,1393688298,1393688262,1393688207,1393688171,1393688131,1393688097,1393688359,1393688354,1393688349,1393688346,1393688344,1393688564,1393688558,1393688546,1393688541,1393688522,1393688614,1393688612,1393688611,1393688610,1393688688,1393688684,1393688678,1393688674,1393688661,1393688654,1393688728,1393688727,1393688725,1393688768,1393688765,1393688757,1393688755,1393688753,1393688835,1393688833,1393688831,1393688829,1393688950,1393688947,1393688945,1393688943,1393688931,1393688917,1393689091,1393688989,1393688985,1393689085,1393688983,1393689082,1393688981,1393689064,1393688979,1393689062,1393689053,1393688978,1393689042); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28378557]) Inside saveOutput : final : False verbose : True original output for save of step final : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ('0.0632283335929362',), 1393688978: ('0.0632283335929362',)} new output for save of step final : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ('0.0632283335929362',), 1393688978: ('0.0632283335929362',)} [1393689091, 1393689085, 1393689082, 1393689064, 1393689062, 1393689053, 1393689042, 1393688989, 1393688985, 1393688983, 1393688981, 1393688979, 1393688978] map_info['map_portfolio_photo'] : {28378557: [1393689091, 1393689085, 1393689082, 1393689064, 1393689062, 1393689053, 1393689042, 1393688989, 1393688985, 1393688983, 1393688981, 1393688979, 1393688978, 1393688950, 1393688947, 1393688945, 1393688943, 1393688931, 1393688917, 1393688835, 1393688833, 1393688831, 1393688829, 1393688768, 1393688765, 1393688757, 1393688755, 1393688753, 1393688728, 1393688727, 1393688725, 1393688688, 1393688684, 1393688678, 1393688674, 1393688661, 1393688654, 1393688614, 1393688612, 1393688611, 1393688610, 1393688564, 1393688558, 1393688546, 1393688541, 1393688522, 1393688359, 1393688354, 1393688349, 1393688346, 1393688344, 1393688338, 1393688332, 1393688325, 1393688298, 1393688262, 1393688207, 1393688171, 1393688131, 1393688097, 1393687926, 1393687924, 1393687921, 1393687869, 1393687867, 1393687858, 1393687675, 1393687672, 1393687664, 1393687641, 1393687471, 1393687467, 1393687466, 1393687465, 1393687447, 1393687166, 1393687142]} final : False mtd_id 4302 list_pids : [1393689091, 1393689085, 1393689082, 1393689064, 1393689062, 1393689053, 1393689042, 1393688989, 1393688985, 1393688983, 1393688981, 1393688979, 1393688978] Looping around the photos to save general results len do output : 13 /1393689091.Didn't retrieve data . /1393689085.Didn't retrieve data . /1393689082.Didn't retrieve data . /1393689064.Didn't retrieve data . /1393689062.Didn't retrieve data . /1393689053.Didn't retrieve data . /1393689042.Didn't retrieve data . /1393688989.Didn't retrieve data . /1393688985.Didn't retrieve data . /1393688983.Didn't retrieve data . /1393688981.Didn't retrieve data . /1393688979.Didn't retrieve data . /1393688978.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689091', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689085', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689082', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689064', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689062', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689053', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689042', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688989', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688985', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688983', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688981', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688979', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688978', None, None, None, None, None, '4025411') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28378557', '1393689091', '0.0632283335929362', None, None, None, None, '4025411'), ('4302', '28378557', '1393689085', '0.0632283335929362', None, None, None, None, '4025411'), ('4302', '28378557', '1393689082', '0.0632283335929362', None, None, None, None, '4025411'), ('4302', '28378557', '1393689064', '0.0632283335929362', None, None, None, None, '4025411'), ('4302', '28378557', '1393689062', '0.0632283335929362', None, None, None, None, '4025411'), ('4302', '28378557', '1393689053', '0.0632283335929362', None, None, None, None, '4025411'), ('4302', '28378557', '1393689042', '0.0632283335929362', None, None, None, None, '4025411'), ('4302', '28378557', '1393688989', '0.0632283335929362', None, None, None, None, '4025411'), ('4302', '28378557', '1393688985', '0.0632283335929362', None, None, None, None, '4025411'), ('4302', '28378557', '1393688983', '0.0632283335929362', None, None, None, None, '4025411'), ('4302', '28378557', '1393688981', '0.0632283335929362', None, None, None, None, '4025411'), ('4302', '28378557', '1393688979', '0.0632283335929362', None, None, None, None, '4025411'), ('4302', '28378557', '1393688978', '0.0632283335929362', None, None, None, None, '4025411')] time used for this insertion : 0.014112234115600586 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06913375854492188 time spend to save output : 0.014753580093383789 total time spend for step 2 : 0.08388733863830566 step3:velours_tree Mon Nov 10 08:33:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28378557: [{'autre_refus': 28378585, 'flou': 28378586, 'papier': 28378587, 'mal_croppe': 28378588, 'kraft': 28378589, 'cartonnette': 28378590, 'Carton_brun': 28378591, 'environnement': 28378592, 'Teint_Dans_La_Masse': 28378593, 'plastique': 28378594, 'Carton_gris': 28378595, 'metal': 28378596}]} input_args_next_step : {28378557: ()} output_args : {28378557: [{'autre_refus': 28378585, 'flou': 28378586, 'papier': 28378587, 'mal_croppe': 28378588, 'kraft': 28378589, 'cartonnette': 28378590, 'Carton_brun': 28378591, 'environnement': 28378592, 'Teint_Dans_La_Masse': 28378593, 'plastique': 28378594, 'Carton_gris': 28378595, 'metal': 28378596}]} args : 28378557 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'autre_refus': 28378585, 'flou': 28378586, 'papier': 28378587, 'mal_croppe': 28378588, 'kraft': 28378589, 'cartonnette': 28378590, 'Carton_brun': 28378591, 'environnement': 28378592, 'Teint_Dans_La_Masse': 28378593, 'plastique': 28378594, 'Carton_gris': 28378595, 'metal': 28378596},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28378557) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} can't find the photo_desc_type After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28378557]) Inside saveOutput : final : False verbose : True ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.28588271141052246 time spend to save output : 4.100799560546875e-05 total time spend for step 3 : 0.28592371940612793 step4:send_mail_cod Mon Nov 10 08:33:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ('0.0632283335929362',), 1393688978: ('0.0632283335929362',)} input_args_next_step : {1393689091: ()} output_args : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ('0.0632283335929362',), 1393688978: ('0.0632283335929362',)} args : 1393689091 depend.output_id : 0 input_args_next_step : {1393689091: ('0.0632283335929362',), 1393689085: ()} output_args : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ('0.0632283335929362',), 1393688978: ('0.0632283335929362',)} args : 1393689085 depend.output_id : 0 input_args_next_step : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ()} output_args : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ('0.0632283335929362',), 1393688978: ('0.0632283335929362',)} args : 1393689082 depend.output_id : 0 input_args_next_step : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ()} output_args : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ('0.0632283335929362',), 1393688978: ('0.0632283335929362',)} args : 1393689064 depend.output_id : 0 input_args_next_step : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ()} output_args : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ('0.0632283335929362',), 1393688978: ('0.0632283335929362',)} args : 1393689062 depend.output_id : 0 input_args_next_step : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ()} output_args : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ('0.0632283335929362',), 1393688978: ('0.0632283335929362',)} args : 1393689053 depend.output_id : 0 input_args_next_step : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ()} output_args : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ('0.0632283335929362',), 1393688978: ('0.0632283335929362',)} args : 1393689042 depend.output_id : 0 input_args_next_step : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ()} output_args : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ('0.0632283335929362',), 1393688978: ('0.0632283335929362',)} args : 1393688989 depend.output_id : 0 input_args_next_step : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ()} output_args : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ('0.0632283335929362',), 1393688978: ('0.0632283335929362',)} args : 1393688985 depend.output_id : 0 input_args_next_step : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ()} output_args : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ('0.0632283335929362',), 1393688978: ('0.0632283335929362',)} args : 1393688983 depend.output_id : 0 input_args_next_step : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ()} output_args : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ('0.0632283335929362',), 1393688978: ('0.0632283335929362',)} args : 1393688981 depend.output_id : 0 input_args_next_step : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ()} output_args : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ('0.0632283335929362',), 1393688978: ('0.0632283335929362',)} args : 1393688979 depend.output_id : 0 input_args_next_step : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ('0.0632283335929362',), 1393688978: ()} output_args : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ('0.0632283335929362',), 1393688978: ('0.0632283335929362',)} args : 1393688978 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {28378557: [{'autre_refus': 28378585, 'flou': 28378586, 'papier': 28378587, 'mal_croppe': 28378588, 'kraft': 28378589, 'cartonnette': 28378590, 'Carton_brun': 28378591, 'environnement': 28378592, 'Teint_Dans_La_Masse': 28378593, 'plastique': 28378594, 'Carton_gris': 28378595, 'metal': 28378596}]} input_args_next_step : {1393689091: ('0.0632283335929362',), 1393689085: ('0.0632283335929362',), 1393689082: ('0.0632283335929362',), 1393689064: ('0.0632283335929362',), 1393689062: ('0.0632283335929362',), 1393689053: ('0.0632283335929362',), 1393689042: ('0.0632283335929362',), 1393688989: ('0.0632283335929362',), 1393688985: ('0.0632283335929362',), 1393688983: ('0.0632283335929362',), 1393688981: ('0.0632283335929362',), 1393688979: ('0.0632283335929362',), 1393688978: ('0.0632283335929362',), 28378557: ()} output_args : {28378557: [{'autre_refus': 28378585, 'flou': 28378586, 'papier': 28378587, 'mal_croppe': 28378588, 'kraft': 28378589, 'cartonnette': 28378590, 'Carton_brun': 28378591, 'environnement': 28378592, 'Teint_Dans_La_Masse': 28378593, 'plastique': 28378594, 'Carton_gris': 28378595, 'metal': 28378596}]} args : 28378557 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :14, first value : ('0.0632283335929362',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28378557) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1393689091,1393689085,1393689082,1393689064,1393689062,1393689053,1393689042,1393688989,1393688985,1393688983,1393688981,1393688979,1393688978) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1393688978 begin to download photo : 1393688983 begin to download photo : 1393689042 begin to download photo : 1393689064 begin to download photo : 1393689091 download finish for photo 1393688983 begin to download photo : 1393688985 download finish for photo 1393689064 begin to download photo : 1393689082 download finish for photo 1393689091 download finish for photo 1393688978 begin to download photo : 1393688979 download finish for photo 1393689042 begin to download photo : 1393689053 download finish for photo 1393689082 begin to download photo : 1393689085 download finish for photo 1393688985 begin to download photo : 1393688989 download finish for photo 1393689053 begin to download photo : 1393689062 download finish for photo 1393688979 begin to download photo : 1393688981 download finish for photo 1393689085 download finish for photo 1393689062 download finish for photo 1393688989 download finish for photo 1393688981 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P28378557_10-11-2025_08_33_02.pdf 28378585 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28378585 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393688333: '1762759285_1372797_1393687664_4ca461f21a6541e0d19a0fd1653eb888_rle_crop_4029117506_0.png', 1393688334: '1762759285_1372797_1393687641_fbabc6d27fd61e8a2e823c4d17604f17_rle_crop_4029117517_0.png', 1393688595: '1762759407_1378312_1393687921_271d9b44a4f7cf68cb8a1f156cafd80e_rle_crop_4029117932_0.png', 1393688596: '1762759407_1378312_1393687921_271d9b44a4f7cf68cb8a1f156cafd80e_rle_crop_4029117936_0.png', 1393688693: '1762759505_1383446_1393688262_fc47aef6b3d506bde6eff4d5304f403f_rle_crop_4029118147_0.png', 1393688694: '1762759505_1383446_1393688207_39b91db363fc2540fab9225e6a68391d_rle_crop_4029118166_0.png', 1393688713: '1762759526_1383896_1393687867_e45f7dd704a0dc881be177ecd0c43a31_rle_crop_4029118279_0.png', 1393688818: '1762759647_1390480_1393688558_a9d711168ca0900b3209a308b7420e40_rle_crop_4029119267_0.png', 1393688819: '1762759647_1390480_1393688522_eb159e5ee9b9b03413e442bb43829cd8_rle_crop_4029119304_0.png', 1393689090: '1762759885_1402359_1393688753_0f5ea8c5238322b864ef5393a87d95db_rle_crop_4029120474_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/a71e53760c222dd5cdf796b652c70adf_41946371.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/c8a30700829f40c2e6d33df177f88387_98559797.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/2a72e99872a74681e6cccbe7ff8c5246_19511952.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/8f4bb822e0f92e74f2e197afccbe3003_44123968.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/ba5a7da1c570fde5a53fe809a5d91d20_68174091.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/859c2ef320f61a964112630d4f248028_53881263.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/e403ac91b8be493be3442a52d63a43e4_35450575.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/243de9af9a5f055d8152480363e23cad_63559657.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/dce88b4c34ad53357c16e192bf365b1c_77463154.png change filename to text .imagette283785851762759982/ imagette283785851762759982/1762759407_1378312_1393687921_271d9b44a4f7cf68cb8a1f156cafd80e_rle_crop_4029117932_0.png.png imagette283785851762759982/1762759285_1372797_1393687664_4ca461f21a6541e0d19a0fd1653eb888_rle_crop_4029117506_0.png.png imagette283785851762759982/1762759505_1383446_1393688207_39b91db363fc2540fab9225e6a68391d_rle_crop_4029118166_0.png.png imagette283785851762759982/1762759285_1372797_1393687641_fbabc6d27fd61e8a2e823c4d17604f17_rle_crop_4029117517_0.png.png imagette283785851762759982/1762759526_1383896_1393687867_e45f7dd704a0dc881be177ecd0c43a31_rle_crop_4029118279_0.png.png imagette283785851762759982/1762759647_1390480_1393688558_a9d711168ca0900b3209a308b7420e40_rle_crop_4029119267_0.png.png imagette283785851762759982/1762759885_1402359_1393688753_0f5ea8c5238322b864ef5393a87d95db_rle_crop_4029120474_0.png.png imagette283785851762759982/1762759647_1390480_1393688522_eb159e5ee9b9b03413e442bb43829cd8_rle_crop_4029119304_0.png.png imagette283785851762759982/1762759407_1378312_1393687921_271d9b44a4f7cf68cb8a1f156cafd80e_rle_crop_4029117936_0.png.png imagette283785851762759982/1762759505_1383446_1393688262_fc47aef6b3d506bde6eff4d5304f403f_rle_crop_4029118147_0.png.png imagette283785861762759982/ imagette283785881762759982/ imagette283785891762759982/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/6ff20b0536875a2f9f78adf376a904b7_87792942.png imagette283785851762759982 28378586 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28378586 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283785861762759982 28378588 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28378588 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283785881762759982 28378589 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28378589 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283785891762759982 28378590 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28378590 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393688703: '1762759505_1383446_1393688262_fc47aef6b3d506bde6eff4d5304f403f_rle_crop_4029118143_0.png', 1393688704: '1762759505_1383446_1393688171_e71841fd1a560d50abd59f4e0da7513b_rle_crop_4029118179_0.png', 1393688823: '1762759647_1390480_1393688546_c2bd1c729f5551caa1ce944ee47288b8_rle_crop_4029119280_0.png', 1393688824: '1762759647_1390480_1393688541_b23859fd691d9d09c9079b2856c0cf57_rle_crop_4029119287_0.png', 1393688825: '1762759647_1390480_1393688522_eb159e5ee9b9b03413e442bb43829cd8_rle_crop_4029119303_0.png', 1393689070: '1762759866_1401659_1393688833_4ed4617d05696ab0a8c824ccbf220819_rle_crop_4029120316_0.png', 1393689071: '1762759866_1401659_1393688831_24369359f1f5ed30b582e55043c5c5bc_rle_crop_4029120330_0.png', 1393689096: '1762759885_1402359_1393688753_0f5ea8c5238322b864ef5393a87d95db_rle_crop_4029120469_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/cf063477135f01f527a74161cfd8af7a_34968531.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/20c99d60e57ab7b3e0bf48b8fabeda2f_92814793.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/c75fa4c28cf82acb519f908b5bc90d36_89718013.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/1c7c6e23de3c9b3a1328b0bf6e34b355_51593659.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/0c0325d4ea64d4a26d45035a2edd7989_31446331.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/0f6efa30a97f914647b039f32d971b1f_90735691.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/fb0488f6e26a172303a8f22b87d55c34_52987352.png change filename to text .imagette283785901762759982/ imagette283785901762759982/1762759647_1390480_1393688522_eb159e5ee9b9b03413e442bb43829cd8_rle_crop_4029119303_0.png.png imagette283785901762759982/1762759866_1401659_1393688833_4ed4617d05696ab0a8c824ccbf220819_rle_crop_4029120316_0.png.png imagette283785901762759982/1762759505_1383446_1393688171_e71841fd1a560d50abd59f4e0da7513b_rle_crop_4029118179_0.png.png imagette283785901762759982/1762759647_1390480_1393688546_c2bd1c729f5551caa1ce944ee47288b8_rle_crop_4029119280_0.png.png imagette283785901762759982/1762759866_1401659_1393688831_24369359f1f5ed30b582e55043c5c5bc_rle_crop_4029120330_0.png.png imagette283785901762759982/1762759647_1390480_1393688541_b23859fd691d9d09c9079b2856c0cf57_rle_crop_4029119287_0.png.png imagette283785901762759982/1762759885_1402359_1393688753_0f5ea8c5238322b864ef5393a87d95db_rle_crop_4029120469_0.png.png imagette283785901762759982/1762759505_1383446_1393688262_fc47aef6b3d506bde6eff4d5304f403f_rle_crop_4029118143_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/527ee680a470d9664f8d37fb7e8c1257_22267163.png imagette283785901762759982 28378594 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28378594 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393688601: '1762759407_1378312_1393687921_271d9b44a4f7cf68cb8a1f156cafd80e_rle_crop_4029117930_0.png', 1393688720: '1762759526_1383896_1393687867_e45f7dd704a0dc881be177ecd0c43a31_rle_crop_4029118283_0.png', 1393688826: '1762759647_1390480_1393688522_eb159e5ee9b9b03413e442bb43829cd8_rle_crop_4029119299_0.png', 1393688973: '1762759766_1396132_1393688688_c4e4b4f221a82b09756bab80ec5fb6f1_rle_crop_4029119629_0.png', 1393688974: '1762759766_1396132_1393688611_e9441197703d9eb7c54df44225ce9133_rle_crop_4029119645_0.png', 1393688975: '1762759766_1396132_1393688610_d837e1d3fc335c8ff90fb5f80172355c_rle_crop_4029119657_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/88d70018ec2eb079343b03f529ad3f5f_74343484.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/0a87d17c18f60539c1c9317cb2fb840d_56625232.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/cd877e4bf21b2899b9bd52f46edce415_94456256.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/dae4bb9e71a8fccc6cb5518dcae52ca0_3377344.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/0e8b0437b3bcdf00604cbdc339b62154_31531719.png change filename to text .imagette283785941762759983/ imagette283785941762759983/1762759766_1396132_1393688611_e9441197703d9eb7c54df44225ce9133_rle_crop_4029119645_0.png.png imagette283785941762759983/1762759407_1378312_1393687921_271d9b44a4f7cf68cb8a1f156cafd80e_rle_crop_4029117930_0.png.png imagette283785941762759983/1762759647_1390480_1393688522_eb159e5ee9b9b03413e442bb43829cd8_rle_crop_4029119299_0.png.png imagette283785941762759983/1762759766_1396132_1393688610_d837e1d3fc335c8ff90fb5f80172355c_rle_crop_4029119657_0.png.png imagette283785941762759983/1762759766_1396132_1393688688_c4e4b4f221a82b09756bab80ec5fb6f1_rle_crop_4029119629_0.png.png imagette283785941762759983/1762759526_1383896_1393687867_e45f7dd704a0dc881be177ecd0c43a31_rle_crop_4029118283_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/2c94062625c1f74f6a21f792429861f0_83516567.png imagette283785941762759983 28378596 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28378596 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393688707: '1762759505_1383446_1393688262_fc47aef6b3d506bde6eff4d5304f403f_rle_crop_4029118144_0.png', 1393689076: '1762759866_1401659_1393688829_9f0be1962377015563463633d3839483_rle_crop_4029120341_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/7cabe0a4362b9e10eb7bb1acba1b1986_53169148.png change filename to text .imagette283785961762759984/ imagette283785961762759984/1762759505_1383446_1393688262_fc47aef6b3d506bde6eff4d5304f403f_rle_crop_4029118144_0.png.png imagette283785961762759984/1762759866_1401659_1393688829_9f0be1962377015563463633d3839483_rle_crop_4029120341_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/3a608c97b1122c77e644e6e31c8237b2_68136538.png imagette283785961762759984 28378591 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28378591 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393688968: '1762759766_1396132_1393688688_c4e4b4f221a82b09756bab80ec5fb6f1_rle_crop_4029119628_0.png', 1393689099: '1762759885_1402359_1393688755_9a28fcdce5a77165ef32ec510f2438d7_rle_crop_4029120459_0.png', 1393689098: '1762759885_1402359_1393688765_72320ab3db934c3a2444aa079cfc85a6_rle_crop_4029120440_0.png', 1393689097: '1762759885_1402359_1393688765_72320ab3db934c3a2444aa079cfc85a6_rle_crop_4029120442_0.png', 1393689073: '1762759866_1401659_1393688829_9f0be1962377015563463633d3839483_rle_crop_4029120349_0.png', 1393689072: '1762759866_1401659_1393688833_4ed4617d05696ab0a8c824ccbf220819_rle_crop_4029120319_0.png', 1393688972: '1762759766_1396132_1393688610_d837e1d3fc335c8ff90fb5f80172355c_rle_crop_4029119654_0.png', 1393688971: '1762759766_1396132_1393688610_d837e1d3fc335c8ff90fb5f80172355c_rle_crop_4029119653_0.png', 1393688970: '1762759766_1396132_1393688611_e9441197703d9eb7c54df44225ce9133_rle_crop_4029119646_0.png', 1393688969: '1762759766_1396132_1393688688_c4e4b4f221a82b09756bab80ec5fb6f1_rle_crop_4029119631_0.png', 1393688337: '1762759285_1372797_1393687664_4ca461f21a6541e0d19a0fd1653eb888_rle_crop_4029117508_0.png', 1393688967: '1762759766_1396132_1393688688_c4e4b4f221a82b09756bab80ec5fb6f1_rle_crop_4029119630_0.png', 1393688719: '1762759526_1383896_1393687858_9816fb90aa695fa8a5ce8156625d2696_rle_crop_4029118295_0.png', 1393688718: '1762759526_1383896_1393687867_e45f7dd704a0dc881be177ecd0c43a31_rle_crop_4029118285_0.png', 1393688717: '1762759526_1383896_1393687867_e45f7dd704a0dc881be177ecd0c43a31_rle_crop_4029118282_0.png', 1393688706: '1762759505_1383446_1393688131_b91908531f35ea5baeca47c53b511784_rle_crop_4029118201_0.png', 1393688705: '1762759505_1383446_1393688171_e71841fd1a560d50abd59f4e0da7513b_rle_crop_4029118181_0.png', 1393688598: '1762759407_1378312_1393687921_271d9b44a4f7cf68cb8a1f156cafd80e_rle_crop_4029117938_0.png', 1393688597: '1762759407_1378312_1393687921_271d9b44a4f7cf68cb8a1f156cafd80e_rle_crop_4029117935_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/5c4402e04dae68dd1a949c782b660439_12277542.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/e46d89961cb153fff3d2a2a87d42d0bc_39103066.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/54e74064f42ec3724c25b3f01097003f_48121435.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/0a3fea1454623214f08f448e64abce1f_56128377.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/286dde779128740e6fa364f103e08006_24879588.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/0d263cdffdaf257648770d5b21a07429_43273957.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/f2c6d89a1bd4d559939e33b2f71aab9a_38094108.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/a28de6f5c1dbf7d087500c82e5a70099_39585069.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/ec65f4bfed619360da824fca93ce3819_67747604.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/3a3321bde251f79971eaf882db334668_34681363.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/87f06bc0e0521093427957ce8a952c7a_97425232.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/8011c0661425950e1ddff3c6d584cf1a_88725097.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/acb2dcc208f0f91459820db6c34725ff_42261813.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/1067e8feed7a2306e0868cbf66ad92bd_84555370.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/d7e70f700d1dceacef10a5cf5899f748_11328483.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/649bf13185cd06e75bbf68a4a25b04e7_57124263.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/56c03503b56768f473f1872e6ad12f8e_73920304.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/17229525fe4fc850b9ba35ae61e1b289_64243017.png change filename to text .imagette283785911762759984/ imagette283785911762759984/1762759285_1372797_1393687664_4ca461f21a6541e0d19a0fd1653eb888_rle_crop_4029117508_0.png.png imagette283785911762759984/1762759407_1378312_1393687921_271d9b44a4f7cf68cb8a1f156cafd80e_rle_crop_4029117935_0.png.png imagette283785911762759984/1762759526_1383896_1393687867_e45f7dd704a0dc881be177ecd0c43a31_rle_crop_4029118282_0.png.png imagette283785911762759984/1762759766_1396132_1393688688_c4e4b4f221a82b09756bab80ec5fb6f1_rle_crop_4029119631_0.png.png imagette283785911762759984/1762759866_1401659_1393688829_9f0be1962377015563463633d3839483_rle_crop_4029120349_0.png.png imagette283785911762759984/1762759885_1402359_1393688765_72320ab3db934c3a2444aa079cfc85a6_rle_crop_4029120440_0.png.png imagette283785911762759984/1762759885_1402359_1393688765_72320ab3db934c3a2444aa079cfc85a6_rle_crop_4029120442_0.png.png imagette283785911762759984/1762759526_1383896_1393687858_9816fb90aa695fa8a5ce8156625d2696_rle_crop_4029118295_0.png.png imagette283785911762759984/1762759766_1396132_1393688688_c4e4b4f221a82b09756bab80ec5fb6f1_rle_crop_4029119630_0.png.png imagette283785911762759984/1762759766_1396132_1393688611_e9441197703d9eb7c54df44225ce9133_rle_crop_4029119646_0.png.png imagette283785911762759984/1762759866_1401659_1393688833_4ed4617d05696ab0a8c824ccbf220819_rle_crop_4029120319_0.png.png imagette283785911762759984/1762759505_1383446_1393688131_b91908531f35ea5baeca47c53b511784_rle_crop_4029118201_0.png.png imagette283785911762759984/1762759885_1402359_1393688755_9a28fcdce5a77165ef32ec510f2438d7_rle_crop_4029120459_0.png.png imagette283785911762759984/1762759505_1383446_1393688171_e71841fd1a560d50abd59f4e0da7513b_rle_crop_4029118181_0.png.png imagette283785911762759984/1762759766_1396132_1393688688_c4e4b4f221a82b09756bab80ec5fb6f1_rle_crop_4029119628_0.png.png imagette283785911762759984/1762759766_1396132_1393688610_d837e1d3fc335c8ff90fb5f80172355c_rle_crop_4029119653_0.png.png imagette283785911762759984/1762759407_1378312_1393687921_271d9b44a4f7cf68cb8a1f156cafd80e_rle_crop_4029117938_0.png.png imagette283785911762759984/1762759526_1383896_1393687867_e45f7dd704a0dc881be177ecd0c43a31_rle_crop_4029118285_0.png.png imagette283785911762759984/1762759766_1396132_1393688610_d837e1d3fc335c8ff90fb5f80172355c_rle_crop_4029119654_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/8b537ba6de5feb2958f07b800b412a79_97991382.png imagette283785911762759984 28378593 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28378593 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393688692: '1762759505_1383446_1393688171_e71841fd1a560d50abd59f4e0da7513b_rle_crop_4029118184_0.png', 1393688712: '1762759526_1383896_1393687858_9816fb90aa695fa8a5ce8156625d2696_rle_crop_4029118294_0.png', 1393688817: '1762759647_1390480_1393688558_a9d711168ca0900b3209a308b7420e40_rle_crop_4029119266_0.png', 1393688951: '1762759746_1395712_1393688727_6486c2a0914f790ac68d5cf31931dd3c_rle_crop_4029119514_0.png', 1393689088: '1762759885_1402359_1393688755_9a28fcdce5a77165ef32ec510f2438d7_rle_crop_4029120460_0.png', 1393689089: '1762759885_1402359_1393688753_0f5ea8c5238322b864ef5393a87d95db_rle_crop_4029120473_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/1f5a6aa007308ae3f9bd9eb93cb80775_74734632.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/d9305f48636caffd04f7faa38e5036cb_65093255.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/388b8ea9d89d02d3726014fcb806977d_7960899.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/e0ebf040e15129efe4ee0d0511375cf6_59129396.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/4a45bc4d18e81ee0bf089479c19b52f3_87551688.png change filename to text .imagette283785931762759985/ imagette283785931762759985/1762759885_1402359_1393688755_9a28fcdce5a77165ef32ec510f2438d7_rle_crop_4029120460_0.png.png imagette283785931762759985/1762759885_1402359_1393688753_0f5ea8c5238322b864ef5393a87d95db_rle_crop_4029120473_0.png.png imagette283785931762759985/1762759505_1383446_1393688171_e71841fd1a560d50abd59f4e0da7513b_rle_crop_4029118184_0.png.png imagette283785931762759985/1762759526_1383896_1393687858_9816fb90aa695fa8a5ce8156625d2696_rle_crop_4029118294_0.png.png imagette283785931762759985/1762759647_1390480_1393688558_a9d711168ca0900b3209a308b7420e40_rle_crop_4029119266_0.png.png imagette283785931762759985/1762759746_1395712_1393688727_6486c2a0914f790ac68d5cf31931dd3c_rle_crop_4029119514_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/f1947eb8e83d58b3b2392a53414b1ebb_73222384.png imagette283785931762759985 28378595 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28378595 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393688335: '1762759285_1372797_1393687672_07daf4e57d73a89b6d31e6ecdcc42840_rle_crop_4029117496_0.png', 1393688336: '1762759285_1372797_1393687641_fbabc6d27fd61e8a2e823c4d17604f17_rle_crop_4029117519_0.png', 1393688696: '1762759505_1383446_1393688262_fc47aef6b3d506bde6eff4d5304f403f_rle_crop_4029118141_0.png', 1393688697: '1762759505_1383446_1393688262_fc47aef6b3d506bde6eff4d5304f403f_rle_crop_4029118142_0.png', 1393688698: '1762759505_1383446_1393688207_39b91db363fc2540fab9225e6a68391d_rle_crop_4029118162_0.png', 1393688700: '1762759505_1383446_1393688207_39b91db363fc2540fab9225e6a68391d_rle_crop_4029118164_0.png', 1393688701: '1762759505_1383446_1393688131_b91908531f35ea5baeca47c53b511784_rle_crop_4029118197_0.png', 1393688715: '1762759526_1383896_1393687858_9816fb90aa695fa8a5ce8156625d2696_rle_crop_4029118293_0.png', 1393688820: '1762759647_1390480_1393688541_b23859fd691d9d09c9079b2856c0cf57_rle_crop_4029119288_0.png', 1393688821: '1762759647_1390480_1393688522_eb159e5ee9b9b03413e442bb43829cd8_rle_crop_4029119298_0.png', 1393689067: '1762759866_1401659_1393688831_24369359f1f5ed30b582e55043c5c5bc_rle_crop_4029120327_0.png', 1393689068: '1762759866_1401659_1393688829_9f0be1962377015563463633d3839483_rle_crop_4029120340_0.png', 1393689069: '1762759866_1401659_1393688829_9f0be1962377015563463633d3839483_rle_crop_4029120345_0.png', 1393689094: '1762759885_1402359_1393688765_72320ab3db934c3a2444aa079cfc85a6_rle_crop_4029120447_0.png', 1393689095: '1762759885_1402359_1393688755_9a28fcdce5a77165ef32ec510f2438d7_rle_crop_4029120461_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/049a6552e136b50fe87577f0d06b8ac7_11125102.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/51f65cae21390cdb5ae77ec2a91a7d86_17094336.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/9ccd809048bd38fe1f95f5262ee6fcb7_76602638.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/fae067b39dc365eec588d65bd8d465c6_65096078.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/2e977e60073f2b1864fbbcfa4744c596_89926917.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/627280fecd06a0ae806cd3ed0b297df3_36865852.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/633ee3baf76f4ecb981231b7e72d3023_39394293.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/b06e15503456fad736461b3971028275_12885815.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/9ca237ce9a52548a7e29642fa637d754_13339104.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/8e595187e746c66b63931f4bc69d8c2d_86559962.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/62007683139aa4bdbc7ee3a2c5e43859_19190027.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/179910d90012eb815911a1bcc5f021ea_44446526.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/959c044837deed80de8c637fa7a75ee4_80040656.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/1fa99d08ae2f9238c29db232f287adbc_96867122.png change filename to text .imagette283785951762759985/ imagette283785951762759985/1762759285_1372797_1393687672_07daf4e57d73a89b6d31e6ecdcc42840_rle_crop_4029117496_0.png.png imagette283785951762759985/1762759885_1402359_1393688755_9a28fcdce5a77165ef32ec510f2438d7_rle_crop_4029120461_0.png.png imagette283785951762759985/1762759885_1402359_1393688765_72320ab3db934c3a2444aa079cfc85a6_rle_crop_4029120447_0.png.png imagette283785951762759985/1762759505_1383446_1393688207_39b91db363fc2540fab9225e6a68391d_rle_crop_4029118162_0.png.png imagette283785951762759985/1762759866_1401659_1393688829_9f0be1962377015563463633d3839483_rle_crop_4029120340_0.png.png imagette283785951762759985/1762759647_1390480_1393688541_b23859fd691d9d09c9079b2856c0cf57_rle_crop_4029119288_0.png.png imagette283785951762759985/1762759505_1383446_1393688262_fc47aef6b3d506bde6eff4d5304f403f_rle_crop_4029118141_0.png.png imagette283785951762759985/1762759505_1383446_1393688131_b91908531f35ea5baeca47c53b511784_rle_crop_4029118197_0.png.png imagette283785951762759985/1762759526_1383896_1393687858_9816fb90aa695fa8a5ce8156625d2696_rle_crop_4029118293_0.png.png imagette283785951762759985/1762759505_1383446_1393688262_fc47aef6b3d506bde6eff4d5304f403f_rle_crop_4029118142_0.png.png imagette283785951762759985/1762759866_1401659_1393688829_9f0be1962377015563463633d3839483_rle_crop_4029120345_0.png.png imagette283785951762759985/1762759647_1390480_1393688522_eb159e5ee9b9b03413e442bb43829cd8_rle_crop_4029119298_0.png.png imagette283785951762759985/1762759866_1401659_1393688831_24369359f1f5ed30b582e55043c5c5bc_rle_crop_4029120327_0.png.png imagette283785951762759985/1762759285_1372797_1393687641_fbabc6d27fd61e8a2e823c4d17604f17_rle_crop_4029117519_0.png.png imagette283785951762759985/1762759505_1383446_1393688207_39b91db363fc2540fab9225e6a68391d_rle_crop_4029118164_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/14fd592fad76f74694e8e4bda330f626_24567951.png imagette283785951762759985 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28378557 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28378598,28378599,28378600,28378601,28378602,28378603,28378604,28378605,28378606,28378607,28378608,28378609?tags=autre_refus,flou,papier,mal_croppe,kraft,cartonnette,Carton_brun,environnement,Teint_Dans_La_Masse,plastique,Carton_gris,metal your option no_mail is active, we will not send the real mail to your client args[1393689091] : ('0.0632283335929362',) no score found for photo 1393689091 We are sending mail with results at report@fotonower.com args[1393689085] : ('0.0632283335929362',) no score found for photo 1393689085 We are sending mail with results at report@fotonower.com args[1393689082] : ('0.0632283335929362',) no score found for photo 1393689082 We are sending mail with results at report@fotonower.com args[1393689064] : ('0.0632283335929362',) no score found for photo 1393689064 We are sending mail with results at report@fotonower.com args[1393689062] : ('0.0632283335929362',) no score found for photo 1393689062 We are sending mail with results at report@fotonower.com args[1393689053] : ('0.0632283335929362',) no score found for photo 1393689053 We are sending mail with results at report@fotonower.com args[1393689042] : ('0.0632283335929362',) no score found for photo 1393689042 We are sending mail with results at report@fotonower.com args[1393688989] : ('0.0632283335929362',) no score found for photo 1393688989 We are sending mail with results at report@fotonower.com args[1393688985] : ('0.0632283335929362',) no score found for photo 1393688985 We are sending mail with results at report@fotonower.com args[1393688983] : ('0.0632283335929362',) no score found for photo 1393688983 We are sending mail with results at report@fotonower.com args[1393688981] : ('0.0632283335929362',) no score found for photo 1393688981 We are sending mail with results at report@fotonower.com args[1393688979] : ('0.0632283335929362',) no score found for photo 1393688979 We are sending mail with results at report@fotonower.com args[1393688978] : ('0.0632283335929362',) no score found for photo 1393688978 We are sending mail with results at report@fotonower.com refus_total : 0.0632283335929362 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28378557 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28378557_10-11-2025_08_33_02.pdf results_Auto_P28378557_10-11-2025_08_33_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28378557_10-11-2025_08_33_02.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28378557','results_Auto_P28378557_10-11-2025_08_33_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28378557_10-11-2025_08_33_02.pdf','pdf','','0.27','0.0632283335929362') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28378557]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1393689091, 1393689085, 1393689082, 1393689064, 1393689062, 1393689053, 1393689042, 1393688989, 1393688985, 1393688983, 1393688981, 1393688979, 1393688978] map_info['map_portfolio_photo'] : {28378557: [1393689091, 1393689085, 1393689082, 1393689064, 1393689062, 1393689053, 1393689042, 1393688989, 1393688985, 1393688983, 1393688981, 1393688979, 1393688978, 1393688950, 1393688947, 1393688945, 1393688943, 1393688931, 1393688917, 1393688835, 1393688833, 1393688831, 1393688829, 1393688768, 1393688765, 1393688757, 1393688755, 1393688753, 1393688728, 1393688727, 1393688725, 1393688688, 1393688684, 1393688678, 1393688674, 1393688661, 1393688654, 1393688614, 1393688612, 1393688611, 1393688610, 1393688564, 1393688558, 1393688546, 1393688541, 1393688522, 1393688359, 1393688354, 1393688349, 1393688346, 1393688344, 1393688338, 1393688332, 1393688325, 1393688298, 1393688262, 1393688207, 1393688171, 1393688131, 1393688097, 1393687926, 1393687924, 1393687921, 1393687869, 1393687867, 1393687858, 1393687675, 1393687672, 1393687664, 1393687641, 1393687471, 1393687467, 1393687466, 1393687465, 1393687447, 1393687166, 1393687142]} final : False mtd_id 4302 list_pids : [1393689091, 1393689085, 1393689082, 1393689064, 1393689062, 1393689053, 1393689042, 1393688989, 1393688985, 1393688983, 1393688981, 1393688979, 1393688978] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689091', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689085', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689082', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689064', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689062', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689053', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689042', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688989', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688985', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688983', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688981', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688979', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688978', None, None, None, None, None, '4025411') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28378557', '1393689091', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393689085', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393689082', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393689064', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393689062', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393689053', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393689042', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393688989', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393688985', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393688983', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393688981', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393688979', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393688978', None, None, None, None, None, '4025411')] time used for this insertion : 0.01954817771911621 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.140322208404541 time spend to save output : 0.019757986068725586 total time spend for step 4 : 6.160080194473267 step5:split_time_score Mon Nov 10 08:33:08 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['28378557'] We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 : VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : [('28378557',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28378557) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1393689091: {'path': 'temp/1762759981_1847612_1393689091_286edf6509afb4c87ec785f6efe86f1d.jpg', 'extension': 'jpg'}, 1393689064: {'path': 'temp/1762759981_1847612_1393689064_d31b820c540401fae681a381af07798b.jpg', 'extension': 'jpg'}, 1393689082: {'path': 'temp/1762759981_1847612_1393689082_30b97d5e017fe0451b190d0b1ce947c3.jpg', 'extension': 'jpg'}, 1393689085: {'path': 'temp/1762759981_1847612_1393689085_95d40f4acd5d5e3c69aaf809c40b017f.jpg', 'extension': 'jpg'}, 1393689042: {'path': 'temp/1762759981_1847612_1393689042_c666ac2f7015cdb3fe4edb6cfaba67d7.jpg', 'extension': 'jpg'}, 1393689053: {'path': 'temp/1762759981_1847612_1393689053_17b01e8d2adb73444ecd35ffa7950be1.jpg', 'extension': 'jpg'}, 1393689062: {'path': 'temp/1762759981_1847612_1393689062_dd01e7ed735360e76fecee69f7a4240c.jpg', 'extension': 'jpg'}, 1393688983: {'path': 'temp/1762759981_1847612_1393688983_867bdcf79d04254fde5e4289334807fb.jpg', 'extension': 'jpg'}, 1393688985: {'path': 'temp/1762759981_1847612_1393688985_3e2525acbf877c59ba2d9ef818bd8f7b.jpg', 'extension': 'jpg'}, 1393688989: {'path': 'temp/1762759981_1847612_1393688989_6d55f322cda4e1731d8df283507650fb.jpg', 'extension': 'jpg'}, 1393688978: {'path': 'temp/1762759981_1847612_1393688978_3dbb12d7166b767bf73a5a408cb6889c.jpg', 'extension': 'jpg'}, 1393688979: {'path': 'temp/1762759981_1847612_1393688979_ebfc4b7e995661d74f33904018b546c1.jpg', 'extension': 'jpg'}, 1393688981: {'path': 'temp/1762759981_1847612_1393688981_65d4bf020e2ce88f7a01308c5bbd2aa9.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} begin split time score SELECT app_name, token FROM MTRUser.mtr_app_api_token WHERE mtr_user_id=979 AND app_name="token_split_time_score" AND expire_at > NOW() select distinct dp.name from MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp, MTRPhoto.dashboard_results dr where ded.dashboard_place_id = dp.id and ded.last_run_id = dr.dashboard_run_id and dp.id = ded.dashboard_place_id and dr.mtr_portfolio_id = 28378557; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28378557 group by h (('08', 77),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28378557 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (28378557) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (28378557) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10112025 28378557 Nombre de photos uploadées : 77 / 23040 (0%) 10112025 28378557 Nombre de photos taguées (types de déchets): 0 / 77 (0%) 10112025 28378557 Nombre de photos taguées (volume) : 0 / 77 (0%) [{'photo_id': 1393687166, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/7ce325bbd00d53bffcdeaf4e1158f2b5.jpg', 'username': None, 'uploaded_at': 1762758972, 'text': 'image_10112025_08_15_03_009136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393687142, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/61869c3693480656f91d1c2be65c5f57.jpg', 'username': None, 'uploaded_at': 1762758972, 'text': 'image_10112025_08_15_44_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393687471, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/aad83ad39be61ed9c56706e58b492bd4.jpg', 'username': None, 'uploaded_at': 1762759027, 'text': 'image_10112025_08_15_54_10138.jpg'}, {'photo_id': 1393687467, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/54a89e2bb430eb3a8161681c6a0b1474.jpg', 'username': None, 'uploaded_at': 1762759027, 'text': 'image_10112025_08_16_04_10154.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003557920455932617 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28378557, '2025-11-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-10' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2549819,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21261119842529297 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 2549819 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557948, 'mtr_portfolio_id': 28372304, 'dashboard_result_id': 17059894, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372304_10-11-2025_05_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372319, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557948, 'mtr_portfolio_id': 28372486, 'dashboard_result_id': 17059895, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372486_10-11-2025_05_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372498, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557948, 'mtr_portfolio_id': 28372713, 'dashboard_result_id': 17059896, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372713_10-11-2025_05_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372728, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557948, 'mtr_portfolio_id': 28373113, 'dashboard_result_id': 17059897, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373113_10-11-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373130, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557948, 'mtr_portfolio_id': 28373480, 'dashboard_result_id': 17059899, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373480_10-11-2025_06_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373552, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557948, 'mtr_portfolio_id': 28374053, 'dashboard_result_id': 17059900, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374053_10-11-2025_06_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28374067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374073, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557948, 'mtr_portfolio_id': 28374472, 'dashboard_result_id': 17059901, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374472_10-11-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28374512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374515, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557948, 'mtr_portfolio_id': 28374942, 'dashboard_result_id': 17059902, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374942_10-11-2025_07_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28374975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374979, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374986, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557948, 'mtr_portfolio_id': 28375472, 'dashboard_result_id': 17059903, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28375472_10-11-2025_07_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28375500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28375501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28375502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28375503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28375504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28375505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28375506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28375507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28375508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28375509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28375510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28375511, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557948, 'mtr_portfolio_id': 28376164, 'dashboard_result_id': 17059904, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28376164_10-11-2025_07_35_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28376194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28376195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28376196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28376197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28376198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28376199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28376200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28376201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28376202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28376203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28376204, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28376205, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557948, 'mtr_portfolio_id': 28376723, 'dashboard_result_id': 17059905, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28376723_10-11-2025_07_51_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28376751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28376752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28376753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28376754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28376755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28376756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28376757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28376758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28376759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28376760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28376761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28376763, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557948, 'mtr_portfolio_id': 28377316, 'dashboard_result_id': 17059906, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28377316_10-11-2025_08_06_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28377319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28377320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28377321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28377322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28377323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28377324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28377325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28377326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28377327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28377328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28377329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28377330, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557948, 'mtr_portfolio_id': 28377851, 'dashboard_result_id': 17059907, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28377851_10-11-2025_08_18_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28377864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28377865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28377866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28377867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28377868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28377869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28377870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28377871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28377872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28377873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28377874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28377875, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557948, 'mtr_portfolio_id': 28378557, 'dashboard_result_id': 17059908, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28378557_10-11-2025_08_30_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28378585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28378586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28378587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28378588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28378589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28378590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28378591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28378592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28378593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28378594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28378595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28378596, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28372304 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4024530, 'mtr_portfolio_id': 28372304, 'created_at': datetime.datetime(2025, 11, 10, 5, 16, 29), 'result': '0.040350622235919155', 'result_long': None, 'result_double': None}] Qualite : 0.040350622235919155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28372304 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372304_10-11-2025_05_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28372304 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372304_10-11-2025_05_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372319, 'pht': 3726}}" where mtr_portfolio_id = 28372304 and dashboard_run_id = 2557948 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28372304 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17059894, 0.040350622235919155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372304_10-11-2025_05_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372319, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28372486 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4024551, 'mtr_portfolio_id': 28372486, 'created_at': datetime.datetime(2025, 11, 10, 5, 32, 58), 'result': '0.03267969703415672', 'result_long': None, 'result_double': None}] Qualite : 0.03267969703415672 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28372486 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372486_10-11-2025_05_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28372486 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372486_10-11-2025_05_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372498, 'pht': 3726}}" where mtr_portfolio_id = 28372486 and dashboard_run_id = 2557948 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28372486 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17059895, 0.03267969703415672, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372486_10-11-2025_05_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372498, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28372713 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4024586, 'mtr_portfolio_id': 28372713, 'created_at': datetime.datetime(2025, 11, 10, 5, 48, 57), 'result': '0.05104206465845779', 'result_long': None, 'result_double': None}] Qualite : 0.05104206465845779 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28372713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372713_10-11-2025_05_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28372713 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372713_10-11-2025_05_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372728, 'pht': 3726}}" where mtr_portfolio_id = 28372713 and dashboard_run_id = 2557948 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28372713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17059896, 0.05104206465845779, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372713_10-11-2025_05_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372728, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28373113 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4024643, 'mtr_portfolio_id': 28373113, 'created_at': datetime.datetime(2025, 11, 10, 6, 3), 'result': '0.038593374114432984', 'result_long': None, 'result_double': None}] Qualite : 0.038593374114432984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28373113 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373113_10-11-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28373113 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373113_10-11-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373130, 'pht': 3726}}" where mtr_portfolio_id = 28373113 and dashboard_run_id = 2557948 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28373113 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17059897, 0.038593374114432984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373113_10-11-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373130, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28373480 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4024718, 'mtr_portfolio_id': 28373480, 'created_at': datetime.datetime(2025, 11, 10, 6, 18, 59), 'result': '0.07257098431664193', 'result_long': None, 'result_double': None}] Qualite : 0.07257098431664193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28373480 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373480_10-11-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28373480 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373480_10-11-2025_06_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373552, 'pht': 3726}}" where mtr_portfolio_id = 28373480 and dashboard_run_id = 2557948 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28373480 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17059899, 0.07257098431664193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373480_10-11-2025_06_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373552, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28374053 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4024775, 'mtr_portfolio_id': 28374053, 'created_at': datetime.datetime(2025, 11, 10, 6, 32, 58), 'result': '0.05042567139499325', 'result_long': None, 'result_double': None}] Qualite : 0.05042567139499325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28374053 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374053_10-11-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28374053 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374053_10-11-2025_06_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28374067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374073, 'pht': 3726}}" where mtr_portfolio_id = 28374053 and dashboard_run_id = 2557948 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28374053 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17059900, 0.05042567139499325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374053_10-11-2025_06_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28374067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374073, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28374472 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4024844, 'mtr_portfolio_id': 28374472, 'created_at': datetime.datetime(2025, 11, 10, 6, 48, 58), 'result': '0.06494757563686468', 'result_long': None, 'result_double': None}] Qualite : 0.06494757563686468 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28374472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374472_10-11-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28374472 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374472_10-11-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28374512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374515, 'pht': 3726}}" where mtr_portfolio_id = 28374472 and dashboard_run_id = 2557948 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28374472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17059901, 0.06494757563686468, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374472_10-11-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28374512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374515, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28374942 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4024918, 'mtr_portfolio_id': 28374942, 'created_at': datetime.datetime(2025, 11, 10, 7, 2, 59), 'result': '0.04917242315581193', 'result_long': None, 'result_double': None}] Qualite : 0.04917242315581193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28374942 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374942_10-11-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28374942 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374942_10-11-2025_07_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28374975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374979, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374986, 'pht': 3726}}" where mtr_portfolio_id = 28374942 and dashboard_run_id = 2557948 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28374942 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17059902, 0.04917242315581193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374942_10-11-2025_07_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28374975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374979, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374986, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28375472 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4024993, 'mtr_portfolio_id': 28375472, 'created_at': datetime.datetime(2025, 11, 10, 7, 18, 57), 'result': '0.0495152725659975', 'result_long': None, 'result_double': None}] Qualite : 0.0495152725659975 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28375472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28375472_10-11-2025_07_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28375472 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28375472_10-11-2025_07_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28375500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28375501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28375502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28375503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28375504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28375505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28375506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28375507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28375508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28375509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28375510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28375511, 'pht': 3726}}" where mtr_portfolio_id = 28375472 and dashboard_run_id = 2557948 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28375472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17059903, 0.0495152725659975, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28375472_10-11-2025_07_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28375500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28375501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28375502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28375503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28375504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28375505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28375506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28375507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28375508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28375509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28375510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28375511, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28376164 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4025075, 'mtr_portfolio_id': 28376164, 'created_at': datetime.datetime(2025, 11, 10, 7, 35, 29), 'result': '0.055443173805302226', 'result_long': None, 'result_double': None}] Qualite : 0.055443173805302226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28376164 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28376164_10-11-2025_07_35_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28376164 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28376164_10-11-2025_07_35_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28376194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28376195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28376196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28376197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28376198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28376199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28376200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28376201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28376202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28376203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28376204, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28376205, 'pht': 3726}}" where mtr_portfolio_id = 28376164 and dashboard_run_id = 2557948 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28376164 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17059904, 0.055443173805302226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28376164_10-11-2025_07_35_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28376194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28376195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28376196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28376197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28376198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28376199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28376200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28376201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28376202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28376203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28376204, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28376205, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28376723 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4025160, 'mtr_portfolio_id': 28376723, 'created_at': datetime.datetime(2025, 11, 10, 7, 51, 29), 'result': '0.05091454989943948', 'result_long': None, 'result_double': None}] Qualite : 0.05091454989943948 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28376723 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28376723_10-11-2025_07_51_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28376723 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28376723_10-11-2025_07_51_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28376751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28376752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28376753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28376754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28376755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28376756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28376757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28376758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28376759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28376760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28376761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28376763, 'pht': 3726}}" where mtr_portfolio_id = 28376723 and dashboard_run_id = 2557948 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28376723 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17059905, 0.05091454989943948, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28376723_10-11-2025_07_51_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28376751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28376752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28376753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28376754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28376755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28376756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28376757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28376758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28376759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28376760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28376761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28376763, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28377316 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4025262, 'mtr_portfolio_id': 28377316, 'created_at': datetime.datetime(2025, 11, 10, 8, 6, 57), 'result': '0.0715972955766616', 'result_long': None, 'result_double': None}] Qualite : 0.0715972955766616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28377316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28377316_10-11-2025_08_06_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28377316 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28377316_10-11-2025_08_06_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28377319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28377320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28377321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28377322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28377323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28377324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28377325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28377326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28377327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28377328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28377329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28377330, 'pht': 3726}}" where mtr_portfolio_id = 28377316 and dashboard_run_id = 2557950 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28377316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17059906, 0.0715972955766616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28377316_10-11-2025_08_06_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28377319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28377320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28377321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28377322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28377323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28377324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28377325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28377326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28377327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28377328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28377329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28377330, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28377851 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4025344, 'mtr_portfolio_id': 28377851, 'created_at': datetime.datetime(2025, 11, 10, 8, 17, 59), 'result': '0.04665532066178158', 'result_long': None, 'result_double': None}] Qualite : 0.04665532066178158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28377851 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28377851_10-11-2025_08_18_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28377851 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28377851_10-11-2025_08_18_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28377864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28377865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28377866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28377867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28377868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28377869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28377870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28377871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28377872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28377873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28377874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28377875, 'pht': 3726}}" where mtr_portfolio_id = 28377851 and dashboard_run_id = 2557950 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28377851 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17059907, 0.04665532066178158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28377851_10-11-2025_08_18_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28377864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28377865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28377866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28377867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28377868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28377869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28377870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28377871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28377872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28377873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28377874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28377875, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28378557 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4025411, 'mtr_portfolio_id': 28378557, 'created_at': datetime.datetime(2025, 11, 10, 8, 33, 1), 'result': '0.0632283335929362', 'result_long': None, 'result_double': None}] Qualite : 0.0632283335929362 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28378557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28378557_10-11-2025_08_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28378557 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28378557_10-11-2025_08_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28378585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28378586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28378587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28378588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28378589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28378590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28378591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28378592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28378593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28378594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28378595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28378596, 'pht': 3726}}" where mtr_portfolio_id = 28378557 and dashboard_run_id = 2557950 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28378557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17059908, 0.0632283335929362, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28378557_10-11-2025_08_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28378585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28378586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28378587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28378588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28378589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28378590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28378591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28378592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28378593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28378594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28378595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28378596, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28372304,28372486,28372713,28373113,28373480,28374053,28374472,28374942,28375472,28376164,28376723,28377316,28377851,28378557) result : ((1393667459,), (1393670449,), (1393670478,), (1393670523,), (1393670524,), (1393670525,), (1393670527,), (1393670543,), (1393670546,), (1393670568,), (1393670571,), (1393670573,), (1393670575,), (1393670592,), (1393670594,), (1393670596,), (1393670599,), (1393670604,), (1393670607,), (1393670673,), (1393670676,), (1393670678,), (1393670680,), (1393670707,), (1393670708,), (1393670709,), (1393670732,), (1393670757,), (1393670787,), (1393670822,), (1393670904,), (1393670906,), (1393670908,), (1393670910,), (1393670914,), (1393670917,), (1393670939,), (1393670943,), (1393670947,), (1393670951,), (1393671003,), (1393671008,), (1393671010,), (1393671012,), (1393671014,), (1393671016,), (1393671032,), (1393671033,), (1393671034,), (1393671035,), (1393671037,), (1393671064,), (1393671069,), (1393671071,), (1393671073,), (1393671076,), (1393671078,), (1393671102,), (1393671110,), (1393671113,), (1393671115,), (1393671117,), (1393671142,), (1393671145,), (1393671148,), (1393671150,), (1393671151,), (1393671153,), (1393671168,), (1393671169,), (1393671170,), (1393671171,), (1393671173,), (1393671176,), (1393671195,), (1393671199,), (1393671202,), (1393671206,), (1393671209,), (1393671264,), (1393671272,), (1393671274,), (1393671276,), (1393671278,), (1393671286,), (1393671253,), (1393671255,), (1393671257,), (1393671259,), (1393671262,), (1393671314,), (1393671315,), (1393671317,), (1393671318,), (1393671342,), (1393671343,), (1393671347,), (1393671348,), (1393671363,), (1393671366,), (1393671371,), (1393671372,), (1393671374,), (1393671375,), (1393671404,), (1393671407,), (1393671409,), (1393671412,), (1393671432,), (1393671434,), (1393671436,), (1393671438,), (1393671442,), (1393671471,), (1393671473,), (1393671475,), (1393671478,), (1393671500,), (1393671501,), (1393671504,), (1393671506,), (1393671511,), (1393671519,), (1393671561,), (1393671563,), (1393671565,), (1393671569,), (1393671587,), (1393671589,), (1393671591,), (1393671593,), (1393671596,), (1393671600,), (1393671623,), (1393671626,), (1393671628,), (1393671631,), (1393671644,), (1393671648,), (1393671652,), (1393671657,), (1393671678,), (1393671681,), (1393671685,), (1393671696,), (1393671711,), (1393671713,), (1393671732,), (1393671734,), (1393671735,), (1393671775,), (1393671776,), (1393671777,), (1393671780,), (1393671784,), (1393671787,), (1393671799,), (1393671802,), (1393671806,), (1393671809,), (1393671812,), (1393671815,), (1393671845,), (1393671836,), (1393671839,), (1393671841,), (1393671842,), (1393671843,), (1393671862,), (1393671865,), (1393671872,), (1393671888,), (1393671935,), (1393671937,), (1393671939,), (1393671942,), (1393671945,), (1393671961,), (1393671964,), (1393671966,), (1393671968,), (1393671971,), (1393671974,), (1393671995,), (1393671996,), (1393671997,), (1393671999,), (1393672020,), (1393672025,), (1393672031,), (1393672035,), (1393672038,), (1393672067,), (1393672069,), (1393672070,), (1393672074,), (1393672084,), (1393672112,), (1393672113,), (1393672115,), (1393672118,), (1393672121,), (1393672124,), (1393672134,), (1393672135,), (1393672136,), (1393672153,), (1393672156,), (1393672158,), (1393672161,), (1393672164,), (1393672165,), (1393672176,), (1393672179,), (1393672180,), (1393672181,), (1393672225,), (1393672227,), (1393672229,), (1393672232,), (1393672235,), (1393672238,), (1393672271,), (1393672273,), (1393672276,), (1393672280,), (1393672282,), (1393672284,), (1393672289,), (1393672291,), (1393672299,), (1393672309,), (1393672330,), (1393672333,), (1393672337,), (1393672339,), (1393672341,), (1393672343,), (1393672880,), (1393672904,), (1393672934,), (1393672969,), (1393673032,), (1393673028,), (1393673031,), (1393673103,), (1393673134,), (1393673163,), (1393673195,), (1393673227,), (1393673262,), (1393673601,), (1393673638,), (1393673675,), (1393673712,), (1393673931,), (1393673935,), (1393673937,), (1393673939,), (1393673943,), (1393673946,), (1393674113,), (1393674146,), (1393674181,), (1393674218,), (1393674256,), (1393674425,), (1393674428,), (1393674437,), (1393674449,), (1393674476,), (1393674479,), (1393674481,), (1393674483,), (1393674485,), (1393674489,), (1393674523,), (1393674525,), (1393674527,), (1393674530,), (1393674549,), (1393674552,), (1393674556,), (1393674559,), (1393674561,), (1393674565,), (1393674605,), (1393674607,), (1393674608,), (1393674610,), (1393674631,), (1393674633,), (1393674635,), (1393674637,), (1393674671,), (1393674674,), (1393674676,), (1393674678,), (1393674682,), (1393674685,), (1393674716,), (1393674719,), (1393674722,), (1393674725,), (1393674730,), (1393674764,), (1393674769,), (1393674771,), (1393674773,), (1393674776,), (1393674779,), (1393674797,), (1393674799,), (1393674802,), (1393674805,), (1393674861,), (1393674845,), (1393674847,), (1393674849,), (1393674852,), (1393674856,), (1393674885,), (1393674888,), (1393674890,), (1393674893,), (1393674935,), (1393674937,), (1393674939,), (1393674944,), (1393674948,), (1393674952,), (1393674961,), (1393674962,), (1393674965,), (1393674968,), (1393674971,), (1393674999,), (1393675001,), (1393675002,), (1393675004,), (1393675008,), (1393675009,), (1393675034,), (1393675037,), (1393675042,), (1393675047,), (1393675081,), (1393675083,), (1393675085,), (1393675087,), (1393675111,), (1393675113,), (1393675115,), (1393675117,), (1393675120,), (1393675122,), (1393675154,), (1393675155,), (1393675156,), (1393675158,), (1393675192,), (1393675194,), (1393675196,), (1393675200,), (1393675204,), (1393675209,), (1393675238,), (1393675240,), (1393675242,), (1393675245,), (1393675249,), (1393675279,), (1393675282,), (1393675284,), (1393675287,), (1393675291,), (1393675293,), (1393675320,), (1393675321,), (1393675323,), (1393675327,), (1393675331,), (1393675335,), (1393675345,), (1393675346,), (1393675347,), (1393675348,), (1393675349,), (1393675370,), (1393675374,), (1393675378,), (1393675381,), (1393675408,), (1393675411,), (1393675413,), (1393675417,), (1393675420,), (1393675455,), (1393675457,), (1393675469,), (1393675471,), (1393675473,), (1393675476,), (1393675445,), (1393675447,), (1393675449,), (1393675452,), (1393675486,), (1393675488,), (1393675489,), (1393675497,), (1393675506,), (1393675521,), (1393675573,), (1393675575,), (1393675577,), (1393675614,), (1393675617,), (1393675620,), (1393675622,), (1393675625,), (1393675653,), (1393675658,), (1393675663,), (1393675667,), (1393675671,), (1393675673,), (1393675690,), (1393675693,), (1393675696,), (1393675698,), (1393675705,), (1393675722,), (1393675726,), (1393675727,), (1393675750,), (1393675751,), (1393675755,), (1393675765,), (1393675774,), (1393675811,), (1393675821,), (1393675828,), (1393675831,), (1393675835,), (1393675837,), (1393675854,), (1393675857,), (1393675860,), (1393675863,), (1393675887,), (1393675889,), (1393675891,), (1393675894,), (1393675898,), (1393675902,), (1393675929,), (1393675931,), (1393675933,), (1393675936,), (1393675984,), (1393675986,), (1393675988,), (1393675991,), (1393675996,), (1393675999,), (1393676019,), (1393676021,), (1393676022,), (1393676023,), (1393676052,), (1393676055,), (1393676058,), (1393676062,), (1393676067,), (1393676088,), (1393676089,), (1393676091,), (1393676094,), (1393676099,), (1393676151,), (1393676137,), (1393676140,), (1393676142,), (1393676145,), (1393676149,), (1393676168,), (1393676173,), (1393676180,), (1393676187,), (1393676200,), (1393676228,), (1393676231,), (1393676234,), (1393676238,), (1393676242,), (1393676245,), (1393676275,), (1393676276,), (1393676277,), (1393676279,), (1393676282,), (1393676317,), (1393676319,), (1393676321,), (1393676323,), (1393676328,), (1393676332,), (1393676350,), (1393676351,), (1393676353,), (1393676356,), (1393676395,), (1393676397,), (1393676403,), (1393676410,), (1393676429,), (1393676434,), (1393676459,), (1393676462,), (1393676465,), (1393676505,), (1393676506,), (1393676507,), (1393676509,), (1393676512,), (1393676516,), (1393676534,), (1393676537,), (1393676539,), (1393676542,), (1393676579,), (1393676580,), (1393676581,), (1393676583,), (1393676588,), (1393676591,), (1393676607,), (1393676609,), (1393676611,), (1393676613,), (1393676633,), (1393676887,), (1393676888,), (1393676890,), (1393676893,), (1393676920,), (1393677218,), (1393677224,), (1393677228,), (1393677232,), (1393677236,), (1393677238,), (1393677247,), (1393677248,), (1393677250,), (1393677252,), (1393677277,), (1393677263,), (1393677267,), (1393677270,), (1393677273,), (1393677312,), (1393677313,), (1393677314,), (1393677315,), (1393677319,), (1393677501,), (1393677532,), (1393677564,), (1393677598,), (1393677631,), (1393677665,), (1393678005,), (1393678038,), (1393678069,), (1393678112,), (1393678505,), (1393678507,), (1393678509,), (1393678518,), (1393678522,), (1393678525,), (1393678580,), (1393678582,), (1393678583,), (1393678584,), (1393678912,), (1393678944,), (1393678975,), (1393679009,), (1393679046,), (1393679119,), (1393679327,), (1393679329,), (1393679330,), (1393679332,), (1393679366,), (1393679368,), (1393679370,), (1393679373,), (1393679376,), (1393679380,), (1393679405,), (1393679412,), (1393679416,), (1393679418,), (1393679425,), (1393679429,), (1393679432,), (1393679436,), (1393679572,), (1393679580,), (1393679581,), (1393679582,), (1393679615,), (1393679649,), (1393679749,), (1393679759,), (1393679763,), (1393679772,), (1393679776,), (1393679806,), (1393679834,), (1393679837,), (1393679839,), (1393679843,), (1393679847,), (1393679850,), (1393679873,), (1393679881,), (1393679883,), (1393679884,), (1393679904,), (1393679907,), (1393679909,), (1393679912,), (1393679915,), (1393679919,), (1393680114,), (1393680099,), (1393680103,), (1393680105,), (1393680109,), (1393680134,), (1393680137,), (1393680145,), (1393680149,), (1393680162,), (1393680214,), (1393680215,), (1393680216,), (1393680218,), (1393680222,), (1393680225,), (1393680244,), (1393680245,), (1393680248,), (1393680260,), (1393680265,), (1393680296,), (1393680299,), (1393680301,), (1393680304,), (1393680356,), (1393680373,), (1393680382,), (1393680391,), (1393680400,), (1393680490,), (1393680492,), (1393680494,), (1393680498,), (1393680520,), (1393680522,), (1393680524,), (1393680527,), (1393680529,), (1393680534,), (1393680552,), (1393680555,), (1393680558,), (1393680562,), (1393680566,), (1393680592,), (1393680595,), (1393680597,), (1393680601,), (1393680604,), (1393680607,), (1393680636,), (1393680647,), (1393680651,), (1393680656,), (1393680660,), (1393680677,), (1393680678,), (1393680679,), (1393680681,), (1393680685,), (1393680688,), (1393680727,), (1393680730,), (1393680732,), (1393680735,), (1393680768,), (1393680769,), (1393680770,), (1393680772,), (1393680774,), (1393680807,), (1393680811,), (1393680814,), (1393680817,), (1393680873,), (1393680893,), (1393680903,), (1393680909,), (1393680911,), (1393680848,), (1393680853,), (1393680859,), (1393680867,), (1393680870,), (1393680918,), (1393680920,), (1393680923,), (1393680926,), (1393680981,), (1393680986,), (1393680995,), (1393681003,), (1393681007,), (1393681011,), (1393681029,), (1393681032,), (1393681035,), (1393681039,), (1393681043,), (1393681065,), (1393681077,), (1393681085,), (1393681091,), (1393681092,), (1393681096,), (1393681115,), (1393681117,), (1393681119,), (1393681123,), (1393681128,), (1393681152,), (1393681159,), (1393681161,), (1393681168,), (1393681175,), (1393681219,), (1393681221,), (1393681222,), (1393681225,), (1393681256,), (1393681258,), (1393681259,), (1393681261,), (1393681266,), (1393681270,), (1393681315,), (1393681319,), (1393681323,), (1393681328,), (1393681332,), (1393681335,), (1393681343,), (1393681347,), (1393681349,), (1393681351,), (1393681362,), (1393681363,), (1393681365,), (1393681370,), (1393681374,), (1393681377,), (1393681397,), (1393681400,), (1393681402,), (1393681405,), (1393681465,), (1393681470,), (1393681473,), (1393681476,), (1393681480,), (1393681511,), (1393681513,), (1393681516,), (1393681519,), (1393681522,), (1393681526,), (1393681563,), (1393681570,), (1393681571,), (1393681572,), (1393681635,), (1393681611,), (1393681618,), (1393681621,), (1393681626,), (1393681631,), (1393681654,), (1393681656,), (1393681658,), (1393681660,), (1393681695,), (1393681704,), (1393681708,), (1393681711,), (1393681716,), (1393681718,), (1393681744,), (1393681751,), (1393681752,), (1393681753,), (1393681790,), (1393681792,), (1393681795,), (1393681799,), (1393681803,), (1393681806,), (1393681814,), (1393681815,), (1393681817,), (1393681819,), (1393681824,), (1393681826,), (1393681829,), (1393681834,), (1393681857,), (1393681860,), (1393681863,), (1393681867,), (1393681872,), (1393681904,), (1393681907,), (1393681909,), (1393681912,), (1393681948,), (1393681950,), (1393681952,), (1393681955,), (1393682032,), (1393682035,), (1393682045,), (1393682054,), (1393682079,), (1393682082,), (1393682086,), (1393682091,), (1393682097,), (1393682102,), (1393682157,), (1393682164,), (1393682178,), (1393682192,), (1393682204,), (1393682214,), (1393682286,), (1393682292,), (1393682293,), (1393682295,), (1393682299,), (1393682300,), (1393682446,), (1393682450,), (1393682454,), (1393682458,), (1393682462,), (1393682465,), (1393682510,), (1393682511,), (1393682513,), (1393682527,), (1393682531,), (1393682532,), (1393682535,), (1393682538,), (1393682539,), (1393682610,), (1393682485,), (1393682488,), (1393682494,), (1393682547,), (1393682549,), (1393682553,), (1393682557,), (1393682569,), (1393682695,), (1393682703,), (1393682707,), (1393682710,), (1393682714,), (1393682718,), (1393682746,), (1393682749,), (1393682751,), (1393682752,), (1393682776,), (1393682801,), (1393682831,), (1393682862,), (1393682904,), (1393682944,), (1393683435,), (1393683504,), (1393683568,), (1393683633,), (1393684197,), (1393684230,), (1393684265,), (1393684328,), (1393684394,), (1393684456,), (1393684753,), (1393684817,), (1393684876,), (1393684910,), (1393685799,), (1393685869,), (1393685928,), (1393685989,), (1393686326,), (1393686337,), (1393686343,), (1393686377,), (1393686423,), (1393686459,), (1393686633,), (1393686667,), (1393686703,), (1393686737,), (1393686880,), (1393686912,), (1393686917,), (1393686934,), (1393686971,), (1393686989,), (1393687018,), (1393687030,), (1393687031,), (1393687033,), (1393687067,), (1393687069,), (1393687071,), (1393687074,), (1393687079,), (1393687082,), (1393687101,), (1393687105,), (1393687109,), (1393687115,), (1393687122,), (1393687126,), (1393687183,), (1393687142,), (1393687166,), (1393687447,), (1393687465,), (1393687466,), (1393687467,), (1393687471,), (1393687641,), (1393687664,), (1393687672,), (1393687675,), (1393687858,), (1393687867,), (1393687869,), (1393687921,), (1393687924,), (1393687926,), (1393688097,), (1393688131,), (1393688171,), (1393688207,), (1393688262,), (1393688298,), (1393688325,), (1393688332,), (1393688338,), (1393688344,), (1393688346,), (1393688349,), (1393688354,), (1393688359,), (1393688522,), (1393688541,), (1393688546,), (1393688558,), (1393688564,), (1393688610,), (1393688611,), (1393688612,), (1393688614,), (1393688654,), (1393688661,), (1393688674,), (1393688678,), (1393688684,), (1393688688,), (1393688725,), (1393688727,), (1393688728,), (1393688753,), (1393688755,), (1393688757,), (1393688765,), (1393688768,), (1393688829,), (1393688831,), (1393688833,), (1393688835,), (1393688917,), (1393688931,), (1393688943,), (1393688945,), (1393688947,), (1393688950,), (1393688978,), (1393688979,), (1393688981,), (1393688983,), (1393688985,), (1393688989,), (1393689042,), (1393689053,), (1393689062,), (1393689064,), (1393689082,), (1393689085,), (1393689091,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10112025': {'nb_upload': 77, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28378557]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1393689091, 1393689085, 1393689082, 1393689064, 1393689062, 1393689053, 1393689042, 1393688989, 1393688985, 1393688983, 1393688981, 1393688979, 1393688978] map_info['map_portfolio_photo'] : {28378557: [1393689091, 1393689085, 1393689082, 1393689064, 1393689062, 1393689053, 1393689042, 1393688989, 1393688985, 1393688983, 1393688981, 1393688979, 1393688978, 1393688950, 1393688947, 1393688945, 1393688943, 1393688931, 1393688917, 1393688835, 1393688833, 1393688831, 1393688829, 1393688768, 1393688765, 1393688757, 1393688755, 1393688753, 1393688728, 1393688727, 1393688725, 1393688688, 1393688684, 1393688678, 1393688674, 1393688661, 1393688654, 1393688614, 1393688612, 1393688611, 1393688610, 1393688564, 1393688558, 1393688546, 1393688541, 1393688522, 1393688359, 1393688354, 1393688349, 1393688346, 1393688344, 1393688338, 1393688332, 1393688325, 1393688298, 1393688262, 1393688207, 1393688171, 1393688131, 1393688097, 1393687926, 1393687924, 1393687921, 1393687869, 1393687867, 1393687858, 1393687675, 1393687672, 1393687664, 1393687641, 1393687471, 1393687467, 1393687466, 1393687465, 1393687447, 1393687166, 1393687142]} final : True mtd_id 4302 list_pids : [1393689091, 1393689085, 1393689082, 1393689064, 1393689062, 1393689053, 1393689042, 1393688989, 1393688985, 1393688983, 1393688981, 1393688979, 1393688978] Looping around the photos to save general results len do output : 1 /28378557Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689091', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689085', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689082', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689064', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689062', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689053', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393689042', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688989', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688985', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688983', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688981', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688979', None, None, None, None, None, '4025411') ('4302', None, None, None, None, None, None, None, '4025411') ('4302', '28378557', '1393688978', None, None, None, None, None, '4025411') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28378557', 'None', None, None, None, None, '4025411'), ('4302', '28378557', '1393689091', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393689085', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393689082', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393689064', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393689062', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393689053', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393689042', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393688989', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393688985', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393688983', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393688981', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393688979', None, None, None, None, None, '4025411'), ('4302', '28378557', '1393688978', None, None, None, None, None, '4025411')] time used for this insertion : 0.016598939895629883 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.0925424098968506 time spend to save output : 0.016834497451782227 total time spend for step 5 : 1.1093769073486328 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment DELETE from MTRPhoto.mtr_datou_current where id in (4025411) 2.15user 2.48system 0:13.36elapsed 34%CPU (0avgtext+0avgdata 162000maxresident)k 728inputs+15840outputs (1major+72722minor)pagefaults 0swaps