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 : 1614725 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 (3249475) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3249475) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24714691 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3249475'] with mtr_portfolio_ids : ['24714691'] and first list_photo_ids : [] new path : /proc/1614725/ Name: python3 Umask: 0002 State: R (running) Tgid: 1614725 Ngid: 0 Pid: 1614725 PPid: 1614724 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1614725 NSpid: 1614725 NSpgid: 1613773 NSsid: 1613773 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100020 kB VmRSS: 100020 kB RssAnon: 59816 kB RssFile: 40204 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/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: 45 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1614725', 'Ngid': '0', 'Pid': '1614725', 'PPid': '1614724', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1614725', 'NSpid': '1614725', 'NSpgid': '1613773', 'NSsid': '1613773', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100020 kB', 'VmRSS': '100020 kB', 'RssAnon': '59816 kB', 'RssFile': '40204 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/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': '45', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '1614725', '1106868', '0', '1106868', '865620', '100020', b'', 'marlene', '3249475') 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 ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (24714691) 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 (3249475 ) ) 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 (24714691) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371136499, 'portfolio_id': 24714691}, {'photo_id': 1371136496, 'portfolio_id': 24714691}, {'photo_id': 1371136493, 'portfolio_id': 24714691}, {'photo_id': 1371136489, 'portfolio_id': 24714691}, {'photo_id': 1371136484, 'portfolio_id': 24714691}, {'photo_id': 1371136479, 'portfolio_id': 24714691}, {'photo_id': 1371136462, 'portfolio_id': 24714691}, {'photo_id': 1371136460, 'portfolio_id': 24714691}, {'photo_id': 1371136458, 'portfolio_id': 24714691}, {'photo_id': 1371136456, 'portfolio_id': 24714691}, {'photo_id': 1371136453, 'portfolio_id': 24714691}, {'photo_id': 1371136448, 'portfolio_id': 24714691}, {'photo_id': 1371136436, 'portfolio_id': 24714691}, {'photo_id': 1371136434, 'portfolio_id': 24714691}, {'photo_id': 1371136429, 'portfolio_id': 24714691}, {'photo_id': 1371136426, 'portfolio_id': 24714691}, {'photo_id': 1371136423, 'portfolio_id': 24714691}, {'photo_id': 1371136420, 'portfolio_id': 24714691}, {'photo_id': 1371136398, 'portfolio_id': 24714691}, {'photo_id': 1371136397, 'portfolio_id': 24714691}, {'photo_id': 1371136395, 'portfolio_id': 24714691}, {'photo_id': 1371136393, 'portfolio_id': 24714691}, {'photo_id': 1371136391, 'portfolio_id': 24714691}, {'photo_id': 1371136385, 'portfolio_id': 24714691}, {'photo_id': 1371136363, 'portfolio_id': 24714691}, {'photo_id': 1371136361, 'portfolio_id': 24714691}, {'photo_id': 1371136358, 'portfolio_id': 24714691}, {'photo_id': 1371136357, 'portfolio_id': 24714691}, {'photo_id': 1371136350, 'portfolio_id': 24714691}, {'photo_id': 1371136344, 'portfolio_id': 24714691}, {'photo_id': 1371136323, 'portfolio_id': 24714691}, {'photo_id': 1371136322, 'portfolio_id': 24714691}, {'photo_id': 1371136319, 'portfolio_id': 24714691}, {'photo_id': 1371136317, 'portfolio_id': 24714691}, {'photo_id': 1371136309, 'portfolio_id': 24714691}, {'photo_id': 1371136303, 'portfolio_id': 24714691}, {'photo_id': 1371136288, 'portfolio_id': 24714691}, {'photo_id': 1371136285, 'portfolio_id': 24714691}, {'photo_id': 1371136281, 'portfolio_id': 24714691}, {'photo_id': 1371136279, 'portfolio_id': 24714691}, {'photo_id': 1371136276, 'portfolio_id': 24714691}, {'photo_id': 1371136271, 'portfolio_id': 24714691}, {'photo_id': 1371136236, 'portfolio_id': 24714691}, {'photo_id': 1371136232, 'portfolio_id': 24714691}, {'photo_id': 1371136229, 'portfolio_id': 24714691}, {'photo_id': 1371136226, 'portfolio_id': 24714691}, {'photo_id': 1371136217, 'portfolio_id': 24714691}, {'photo_id': 1371136206, 'portfolio_id': 24714691}, {'photo_id': 1371136188, 'portfolio_id': 24714691}, {'photo_id': 1371136186, 'portfolio_id': 24714691}, {'photo_id': 1371136181, 'portfolio_id': 24714691}, {'photo_id': 1371136178, 'portfolio_id': 24714691}, {'photo_id': 1371136173, 'portfolio_id': 24714691}, {'photo_id': 1371136165, 'portfolio_id': 24714691}, {'photo_id': 1371136153, 'portfolio_id': 24714691}, {'photo_id': 1371136152, 'portfolio_id': 24714691}, {'photo_id': 1371136150, 'portfolio_id': 24714691}, {'photo_id': 1371136148, 'portfolio_id': 24714691}, {'photo_id': 1371136144, 'portfolio_id': 24714691}, {'photo_id': 1371136141, 'portfolio_id': 24714691}, {'photo_id': 1371136118, 'portfolio_id': 24714691}, {'photo_id': 1371136115, 'portfolio_id': 24714691}, {'photo_id': 1371136111, 'portfolio_id': 24714691}, {'photo_id': 1371136109, 'portfolio_id': 24714691}, {'photo_id': 1371136108, 'portfolio_id': 24714691}, {'photo_id': 1371136106, 'portfolio_id': 24714691}, {'photo_id': 1371136090, 'portfolio_id': 24714691}, {'photo_id': 1371136088, 'portfolio_id': 24714691}, {'photo_id': 1371136084, 'portfolio_id': 24714691}, {'photo_id': 1371136077, 'portfolio_id': 24714691}, {'photo_id': 1371136065, 'portfolio_id': 24714691}, {'photo_id': 1371136059, 'portfolio_id': 24714691}] map_portfolio_id_photo_id: {24714691: [1371136499, 1371136496, 1371136493, 1371136489, 1371136484, 1371136479, 1371136462, 1371136460, 1371136458, 1371136456, 1371136453, 1371136448, 1371136436, 1371136434, 1371136429, 1371136426, 1371136423, 1371136420, 1371136398, 1371136397, 1371136395, 1371136393, 1371136391, 1371136385, 1371136363, 1371136361, 1371136358, 1371136357, 1371136350, 1371136344, 1371136323, 1371136322, 1371136319, 1371136317, 1371136309, 1371136303, 1371136288, 1371136285, 1371136281, 1371136279, 1371136276, 1371136271, 1371136236, 1371136232, 1371136229, 1371136226, 1371136217, 1371136206, 1371136188, 1371136186, 1371136181, 1371136178, 1371136173, 1371136165, 1371136153, 1371136152, 1371136150, 1371136148, 1371136144, 1371136141, 1371136118, 1371136115, 1371136111, 1371136109, 1371136108, 1371136106, 1371136090, 1371136088, 1371136084, 1371136077, 1371136065, 1371136059]} ##### 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.014088869094848633 #### 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 Tue Jul 8 06:58:58 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 (24714691) 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 : 24714691 get user id for portfolio 24714691 get sub ptf for main ptf 24714691, type 3726 and hashtags ['mal_croppe', 'plastique', 'kraft', 'Carton_gris', 'papier', 'Teint_Dans_La_Masse', 'environnement', 'Carton_brun', 'metal', 'flou', 'cartonnette', 'autre_refus'] 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`=24714691 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','kraft','Carton_gris','papier','Teint_Dans_La_Masse','environnement','Carton_brun','metal','flou','cartonnette','autre_refus')) 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`=24714691 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','kraft','Carton_gris','papier','Teint_Dans_La_Masse','environnement','Carton_brun','metal','flou','cartonnette','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 24714691, 'sub_port_id': 24714709, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620327, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 48, 59)}, 'plastique': {'main_port_id': 24714691, 'sub_port_id': 24714710, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620328, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 48, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 24714691, 'sub_port_id': 24714711, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620329, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 48, 59)}, 'autre_refus': {'main_port_id': 24714691, 'sub_port_id': 24714712, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620330, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 48, 59)}, 'cartonnette': {'main_port_id': 24714691, 'sub_port_id': 24714713, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620331, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 48, 59)}, 'mal_croppe': {'main_port_id': 24714691, 'sub_port_id': 24714714, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620332, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 48, 59)}, 'metal': {'main_port_id': 24714691, 'sub_port_id': 24714715, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620333, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 48, 59)}, 'kraft': {'main_port_id': 24714691, 'sub_port_id': 24714716, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620334, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 48, 59)}, 'papier': {'main_port_id': 24714691, 'sub_port_id': 24714717, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620335, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 48, 59)}, 'flou': {'main_port_id': 24714691, 'sub_port_id': 24714718, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620336, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 48, 59)}, 'environnement': {'main_port_id': 24714691, 'sub_port_id': 24714719, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620337, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 48, 59)}, 'Carton_brun': {'main_port_id': 24714691, 'sub_port_id': 24714720, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620338, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 48, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24714709 , 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=24714691 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 (24714709) result : ((1371136310,), (1371136311,), (1371136351,), (1371136352,), (1371136353,), (1371136386,), (1371136407,), (1371136408,), (1371136467,), (1371136573,), (1371136577,), (1371136579,), (1371136899,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24714691) result : ((1371136059,), (1371136065,), (1371136077,), (1371136084,), (1371136088,), (1371136090,), (1371136106,), (1371136108,), (1371136109,), (1371136111,), (1371136115,), (1371136118,), (1371136141,), (1371136144,), (1371136148,), (1371136150,), (1371136152,), (1371136153,), (1371136165,), (1371136173,), (1371136178,), (1371136181,), (1371136186,), (1371136188,), (1371136206,), (1371136217,), (1371136226,), (1371136229,), (1371136232,), (1371136236,), (1371136271,), (1371136276,), (1371136279,), (1371136281,), (1371136285,), (1371136288,), (1371136303,), (1371136309,), (1371136317,), (1371136319,), (1371136322,), (1371136323,), (1371136344,), (1371136350,), (1371136357,), (1371136358,), (1371136361,), (1371136363,), (1371136385,), (1371136391,), (1371136393,), (1371136395,), (1371136397,), (1371136398,), (1371136420,), (1371136423,), (1371136426,), (1371136429,), (1371136434,), (1371136436,), (1371136448,), (1371136453,), (1371136456,), (1371136458,), (1371136460,), (1371136462,), (1371136479,), (1371136484,), (1371136489,), (1371136493,), (1371136496,), (1371136499,)) 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 24714710 , 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=24714691 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 (24714710) result : ((1371136340,), (1371136341,), (1371136390,), (1371136595,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24714691) result : ((1371136059,), (1371136065,), (1371136077,), (1371136084,), (1371136088,), (1371136090,), (1371136106,), (1371136108,), (1371136109,), (1371136111,), (1371136115,), (1371136118,), (1371136141,), (1371136144,), (1371136148,), (1371136150,), (1371136152,), (1371136153,), (1371136165,), (1371136173,), (1371136178,), (1371136181,), (1371136186,), (1371136188,), (1371136206,), (1371136217,), (1371136226,), (1371136229,), (1371136232,), (1371136236,), (1371136271,), (1371136276,), (1371136279,), (1371136281,), (1371136285,), (1371136288,), (1371136303,), (1371136309,), (1371136317,), (1371136319,), (1371136322,), (1371136323,), (1371136344,), (1371136350,), (1371136357,), (1371136358,), (1371136361,), (1371136363,), (1371136385,), (1371136391,), (1371136393,), (1371136395,), (1371136397,), (1371136398,), (1371136420,), (1371136423,), (1371136426,), (1371136429,), (1371136434,), (1371136436,), (1371136448,), (1371136453,), (1371136456,), (1371136458,), (1371136460,), (1371136462,), (1371136479,), (1371136484,), (1371136489,), (1371136493,), (1371136496,), (1371136499,)) 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 24714711 , 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=24714691 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 (24714711) result : ((1371136241,), (1371136307,), (1371136333,), (1371136334,), (1371136346,), (1371136347,), (1371136383,), (1371136400,), (1371136401,), (1371136402,), (1371136403,), (1371136404,), (1371136559,), (1371136562,), (1371136850,), (1371136854,), (1371136857,), (1371136860,), (1371136863,), (1371136866,), (1371136869,), (1371136872,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24714691) result : ((1371136059,), (1371136065,), (1371136077,), (1371136084,), (1371136088,), (1371136090,), (1371136106,), (1371136108,), (1371136109,), (1371136111,), (1371136115,), (1371136118,), (1371136141,), (1371136144,), (1371136148,), (1371136150,), (1371136152,), (1371136153,), (1371136165,), (1371136173,), (1371136178,), (1371136181,), (1371136186,), (1371136188,), (1371136206,), (1371136217,), (1371136226,), (1371136229,), (1371136232,), (1371136236,), (1371136271,), (1371136276,), (1371136279,), (1371136281,), (1371136285,), (1371136288,), (1371136303,), (1371136309,), (1371136317,), (1371136319,), (1371136322,), (1371136323,), (1371136344,), (1371136350,), (1371136357,), (1371136358,), (1371136361,), (1371136363,), (1371136385,), (1371136391,), (1371136393,), (1371136395,), (1371136397,), (1371136398,), (1371136420,), (1371136423,), (1371136426,), (1371136429,), (1371136434,), (1371136436,), (1371136448,), (1371136453,), (1371136456,), (1371136458,), (1371136460,), (1371136462,), (1371136479,), (1371136484,), (1371136489,), (1371136493,), (1371136496,), (1371136499,)) 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 24714712 , 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=24714691 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 (24714712) result : ((1371136336,), (1371136349,), (1371136384,), (1371136406,), (1371136885,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24714691) result : ((1371136059,), (1371136065,), (1371136077,), (1371136084,), (1371136088,), (1371136090,), (1371136106,), (1371136108,), (1371136109,), (1371136111,), (1371136115,), (1371136118,), (1371136141,), (1371136144,), (1371136148,), (1371136150,), (1371136152,), (1371136153,), (1371136165,), (1371136173,), (1371136178,), (1371136181,), (1371136186,), (1371136188,), (1371136206,), (1371136217,), (1371136226,), (1371136229,), (1371136232,), (1371136236,), (1371136271,), (1371136276,), (1371136279,), (1371136281,), (1371136285,), (1371136288,), (1371136303,), (1371136309,), (1371136317,), (1371136319,), (1371136322,), (1371136323,), (1371136344,), (1371136350,), (1371136357,), (1371136358,), (1371136361,), (1371136363,), (1371136385,), (1371136391,), (1371136393,), (1371136395,), (1371136397,), (1371136398,), (1371136420,), (1371136423,), (1371136426,), (1371136429,), (1371136434,), (1371136436,), (1371136448,), (1371136453,), (1371136456,), (1371136458,), (1371136460,), (1371136462,), (1371136479,), (1371136484,), (1371136489,), (1371136493,), (1371136496,), (1371136499,)) 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 24714713 , 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=24714691 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 (24714713) result : ((1371136355,), (1371136911,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24714691) result : ((1371136059,), (1371136065,), (1371136077,), (1371136084,), (1371136088,), (1371136090,), (1371136106,), (1371136108,), (1371136109,), (1371136111,), (1371136115,), (1371136118,), (1371136141,), (1371136144,), (1371136148,), (1371136150,), (1371136152,), (1371136153,), (1371136165,), (1371136173,), (1371136178,), (1371136181,), (1371136186,), (1371136188,), (1371136206,), (1371136217,), (1371136226,), (1371136229,), (1371136232,), (1371136236,), (1371136271,), (1371136276,), (1371136279,), (1371136281,), (1371136285,), (1371136288,), (1371136303,), (1371136309,), (1371136317,), (1371136319,), (1371136322,), (1371136323,), (1371136344,), (1371136350,), (1371136357,), (1371136358,), (1371136361,), (1371136363,), (1371136385,), (1371136391,), (1371136393,), (1371136395,), (1371136397,), (1371136398,), (1371136420,), (1371136423,), (1371136426,), (1371136429,), (1371136434,), (1371136436,), (1371136448,), (1371136453,), (1371136456,), (1371136458,), (1371136460,), (1371136462,), (1371136479,), (1371136484,), (1371136489,), (1371136493,), (1371136496,), (1371136499,)) 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 24714714 , 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=24714691 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 (24714714) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24714691) result : ((1371136059,), (1371136065,), (1371136077,), (1371136084,), (1371136088,), (1371136090,), (1371136106,), (1371136108,), (1371136109,), (1371136111,), (1371136115,), (1371136118,), (1371136141,), (1371136144,), (1371136148,), (1371136150,), (1371136152,), (1371136153,), (1371136165,), (1371136173,), (1371136178,), (1371136181,), (1371136186,), (1371136188,), (1371136206,), (1371136217,), (1371136226,), (1371136229,), (1371136232,), (1371136236,), (1371136271,), (1371136276,), (1371136279,), (1371136281,), (1371136285,), (1371136288,), (1371136303,), (1371136309,), (1371136317,), (1371136319,), (1371136322,), (1371136323,), (1371136344,), (1371136350,), (1371136357,), (1371136358,), (1371136361,), (1371136363,), (1371136385,), (1371136391,), (1371136393,), (1371136395,), (1371136397,), (1371136398,), (1371136420,), (1371136423,), (1371136426,), (1371136429,), (1371136434,), (1371136436,), (1371136448,), (1371136453,), (1371136456,), (1371136458,), (1371136460,), (1371136462,), (1371136479,), (1371136484,), (1371136489,), (1371136493,), (1371136496,), (1371136499,)) 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 24714715 , 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=24714691 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 (24714715) result : ((1371136315,), (1371136356,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24714691) result : ((1371136059,), (1371136065,), (1371136077,), (1371136084,), (1371136088,), (1371136090,), (1371136106,), (1371136108,), (1371136109,), (1371136111,), (1371136115,), (1371136118,), (1371136141,), (1371136144,), (1371136148,), (1371136150,), (1371136152,), (1371136153,), (1371136165,), (1371136173,), (1371136178,), (1371136181,), (1371136186,), (1371136188,), (1371136206,), (1371136217,), (1371136226,), (1371136229,), (1371136232,), (1371136236,), (1371136271,), (1371136276,), (1371136279,), (1371136281,), (1371136285,), (1371136288,), (1371136303,), (1371136309,), (1371136317,), (1371136319,), (1371136322,), (1371136323,), (1371136344,), (1371136350,), (1371136357,), (1371136358,), (1371136361,), (1371136363,), (1371136385,), (1371136391,), (1371136393,), (1371136395,), (1371136397,), (1371136398,), (1371136420,), (1371136423,), (1371136426,), (1371136429,), (1371136434,), (1371136436,), (1371136448,), (1371136453,), (1371136456,), (1371136458,), (1371136460,), (1371136462,), (1371136479,), (1371136484,), (1371136489,), (1371136493,), (1371136496,), (1371136499,)) 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 24714716 , 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=24714691 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 (24714716) result : ((1371136314,), (1371136342,), (1371136603,), (1371136935,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24714691) result : ((1371136059,), (1371136065,), (1371136077,), (1371136084,), (1371136088,), (1371136090,), (1371136106,), (1371136108,), (1371136109,), (1371136111,), (1371136115,), (1371136118,), (1371136141,), (1371136144,), (1371136148,), (1371136150,), (1371136152,), (1371136153,), (1371136165,), (1371136173,), (1371136178,), (1371136181,), (1371136186,), (1371136188,), (1371136206,), (1371136217,), (1371136226,), (1371136229,), (1371136232,), (1371136236,), (1371136271,), (1371136276,), (1371136279,), (1371136281,), (1371136285,), (1371136288,), (1371136303,), (1371136309,), (1371136317,), (1371136319,), (1371136322,), (1371136323,), (1371136344,), (1371136350,), (1371136357,), (1371136358,), (1371136361,), (1371136363,), (1371136385,), (1371136391,), (1371136393,), (1371136395,), (1371136397,), (1371136398,), (1371136420,), (1371136423,), (1371136426,), (1371136429,), (1371136434,), (1371136436,), (1371136448,), (1371136453,), (1371136456,), (1371136458,), (1371136460,), (1371136462,), (1371136479,), (1371136484,), (1371136489,), (1371136493,), (1371136496,), (1371136499,)) 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 24714717 , 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=24714691 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 (24714717) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24714691) result : ((1371136059,), (1371136065,), (1371136077,), (1371136084,), (1371136088,), (1371136090,), (1371136106,), (1371136108,), (1371136109,), (1371136111,), (1371136115,), (1371136118,), (1371136141,), (1371136144,), (1371136148,), (1371136150,), (1371136152,), (1371136153,), (1371136165,), (1371136173,), (1371136178,), (1371136181,), (1371136186,), (1371136188,), (1371136206,), (1371136217,), (1371136226,), (1371136229,), (1371136232,), (1371136236,), (1371136271,), (1371136276,), (1371136279,), (1371136281,), (1371136285,), (1371136288,), (1371136303,), (1371136309,), (1371136317,), (1371136319,), (1371136322,), (1371136323,), (1371136344,), (1371136350,), (1371136357,), (1371136358,), (1371136361,), (1371136363,), (1371136385,), (1371136391,), (1371136393,), (1371136395,), (1371136397,), (1371136398,), (1371136420,), (1371136423,), (1371136426,), (1371136429,), (1371136434,), (1371136436,), (1371136448,), (1371136453,), (1371136456,), (1371136458,), (1371136460,), (1371136462,), (1371136479,), (1371136484,), (1371136489,), (1371136493,), (1371136496,), (1371136499,)) 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 24714718 , 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=24714691 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 (24714718) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24714691) result : ((1371136059,), (1371136065,), (1371136077,), (1371136084,), (1371136088,), (1371136090,), (1371136106,), (1371136108,), (1371136109,), (1371136111,), (1371136115,), (1371136118,), (1371136141,), (1371136144,), (1371136148,), (1371136150,), (1371136152,), (1371136153,), (1371136165,), (1371136173,), (1371136178,), (1371136181,), (1371136186,), (1371136188,), (1371136206,), (1371136217,), (1371136226,), (1371136229,), (1371136232,), (1371136236,), (1371136271,), (1371136276,), (1371136279,), (1371136281,), (1371136285,), (1371136288,), (1371136303,), (1371136309,), (1371136317,), (1371136319,), (1371136322,), (1371136323,), (1371136344,), (1371136350,), (1371136357,), (1371136358,), (1371136361,), (1371136363,), (1371136385,), (1371136391,), (1371136393,), (1371136395,), (1371136397,), (1371136398,), (1371136420,), (1371136423,), (1371136426,), (1371136429,), (1371136434,), (1371136436,), (1371136448,), (1371136453,), (1371136456,), (1371136458,), (1371136460,), (1371136462,), (1371136479,), (1371136484,), (1371136489,), (1371136493,), (1371136496,), (1371136499,)) 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 24714719 , 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=24714691 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 (24714719) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24714691) result : ((1371136059,), (1371136065,), (1371136077,), (1371136084,), (1371136088,), (1371136090,), (1371136106,), (1371136108,), (1371136109,), (1371136111,), (1371136115,), (1371136118,), (1371136141,), (1371136144,), (1371136148,), (1371136150,), (1371136152,), (1371136153,), (1371136165,), (1371136173,), (1371136178,), (1371136181,), (1371136186,), (1371136188,), (1371136206,), (1371136217,), (1371136226,), (1371136229,), (1371136232,), (1371136236,), (1371136271,), (1371136276,), (1371136279,), (1371136281,), (1371136285,), (1371136288,), (1371136303,), (1371136309,), (1371136317,), (1371136319,), (1371136322,), (1371136323,), (1371136344,), (1371136350,), (1371136357,), (1371136358,), (1371136361,), (1371136363,), (1371136385,), (1371136391,), (1371136393,), (1371136395,), (1371136397,), (1371136398,), (1371136420,), (1371136423,), (1371136426,), (1371136429,), (1371136434,), (1371136436,), (1371136448,), (1371136453,), (1371136456,), (1371136458,), (1371136460,), (1371136462,), (1371136479,), (1371136484,), (1371136489,), (1371136493,), (1371136496,), (1371136499,)) 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 24714720 , 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=24714691 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 (24714720) result : ((1371136337,), (1371136388,), (1371136389,), (1371136409,), (1371136587,), (1371136923,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24714691) result : ((1371136059,), (1371136065,), (1371136077,), (1371136084,), (1371136088,), (1371136090,), (1371136106,), (1371136108,), (1371136109,), (1371136111,), (1371136115,), (1371136118,), (1371136141,), (1371136144,), (1371136148,), (1371136150,), (1371136152,), (1371136153,), (1371136165,), (1371136173,), (1371136178,), (1371136181,), (1371136186,), (1371136188,), (1371136206,), (1371136217,), (1371136226,), (1371136229,), (1371136232,), (1371136236,), (1371136271,), (1371136276,), (1371136279,), (1371136281,), (1371136285,), (1371136288,), (1371136303,), (1371136309,), (1371136317,), (1371136319,), (1371136322,), (1371136323,), (1371136344,), (1371136350,), (1371136357,), (1371136358,), (1371136361,), (1371136363,), (1371136385,), (1371136391,), (1371136393,), (1371136395,), (1371136397,), (1371136398,), (1371136420,), (1371136423,), (1371136426,), (1371136429,), (1371136434,), (1371136436,), (1371136448,), (1371136453,), (1371136456,), (1371136458,), (1371136460,), (1371136462,), (1371136479,), (1371136484,), (1371136489,), (1371136493,), (1371136496,), (1371136499,)) 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`=24714691 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','kraft','Carton_gris','papier','Teint_Dans_La_Masse','environnement','Carton_brun','metal','flou','cartonnette','autre_refus')) 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`=24714691 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','kraft','Carton_gris','papier','Teint_Dans_La_Masse','environnement','Carton_brun','metal','flou','cartonnette','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 24714691, 'sub_port_id': 24714721, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620339, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 49, 1)}, 'plastique': {'main_port_id': 24714691, 'sub_port_id': 24714722, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620340, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 49, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 24714691, 'sub_port_id': 24714723, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620341, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 49, 1)}, 'autre_refus': {'main_port_id': 24714691, 'sub_port_id': 24714724, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620342, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 49, 1)}, 'cartonnette': {'main_port_id': 24714691, 'sub_port_id': 24714725, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620343, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 49, 1)}, 'mal_croppe': {'main_port_id': 24714691, 'sub_port_id': 24714726, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620344, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 49, 1)}, 'metal': {'main_port_id': 24714691, 'sub_port_id': 24714727, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620345, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 49, 1)}, 'kraft': {'main_port_id': 24714691, 'sub_port_id': 24714728, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620346, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 49, 1)}, 'papier': {'main_port_id': 24714691, 'sub_port_id': 24714729, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620347, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 49, 1)}, 'flou': {'main_port_id': 24714691, 'sub_port_id': 24714730, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620348, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 49, 1)}, 'environnement': {'main_port_id': 24714691, 'sub_port_id': 24714731, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620349, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 49, 1)}, 'Carton_brun': {'main_port_id': 24714691, 'sub_port_id': 24714732, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16620350, 'last_updated_at': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 6, 56, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 6, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24714721,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24714709 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24714722,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24714710 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24714723,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24714711 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24714724,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24714712 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24714725,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24714713 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24714726,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24714714 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24714727,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24714715 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24714728,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24714716 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24714729,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24714717 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24714730,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24714718 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24714731,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24714719 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24714732,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24714720 lien utilise dans velours : https://www.fotonower.com/velours/24714721,24714722,24714723,24714724,24714725,24714726,24714727,24714728,24714729,24714730,24714731,24714732?tags=Carton_gris,plastique,Teint_Dans_La_Masse,autre_refus,cartonnette,mal_croppe,metal,kraft,papier,flou,environnement,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24714691]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371136499, 1371136496, 1371136493, 1371136489, 1371136484, 1371136479, 1371136462, 1371136460, 1371136458, 1371136456, 1371136453, 1371136448] map_info['map_portfolio_photo'] : {24714691: [1371136499, 1371136496, 1371136493, 1371136489, 1371136484, 1371136479, 1371136462, 1371136460, 1371136458, 1371136456, 1371136453, 1371136448, 1371136436, 1371136434, 1371136429, 1371136426, 1371136423, 1371136420, 1371136398, 1371136397, 1371136395, 1371136393, 1371136391, 1371136385, 1371136363, 1371136361, 1371136358, 1371136357, 1371136350, 1371136344, 1371136323, 1371136322, 1371136319, 1371136317, 1371136309, 1371136303, 1371136288, 1371136285, 1371136281, 1371136279, 1371136276, 1371136271, 1371136236, 1371136232, 1371136229, 1371136226, 1371136217, 1371136206, 1371136188, 1371136186, 1371136181, 1371136178, 1371136173, 1371136165, 1371136153, 1371136152, 1371136150, 1371136148, 1371136144, 1371136141, 1371136118, 1371136115, 1371136111, 1371136109, 1371136108, 1371136106, 1371136090, 1371136088, 1371136084, 1371136077, 1371136065, 1371136059]} final : False mtd_id 4302 list_pids : [1371136499, 1371136496, 1371136493, 1371136489, 1371136484, 1371136479, 1371136462, 1371136460, 1371136458, 1371136456, 1371136453, 1371136448] Looping around the photos to save general results len do output : 1 /24714691. 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, '3249475') ('4302', '24714691', '1371136499', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136496', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136493', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136489', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136484', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136479', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136462', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136460', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136458', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136456', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136453', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136448', None, None, None, None, None, '3249475') 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', None, '24714691', "{'Carton_gris': 24714709, 'plastique': 24714710, 'Teint_Dans_La_Masse': 24714711, 'autre_refus': 24714712, 'cartonnette': 24714713, 'mal_croppe': 24714714, 'metal': 24714715, 'kraft': 24714716, 'papier': 24714717, 'flou': 24714718, 'environnement': 24714719, 'Carton_brun': 24714720}", None, None, None, None, '3249475'), ('4302', '24714691', '1371136499', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136496', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136493', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136489', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136484', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136479', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136462', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136460', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136458', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136456', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136453', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136448', None, None, None, None, None, '3249475')] time used for this insertion : 0.021387100219726562 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.563737392425537 time spend to save output : 0.021700382232666016 total time spend for step 1 : 1.5854377746582031 step2:final Tue Jul 8 06:59:00 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 (24714691) 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 24714691 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371136090,1371136088,1371136084,1371136077,1371136065,1371136059,1371136118,1371136115,1371136111,1371136109,1371136108,1371136106,1371136153,1371136152,1371136150,1371136148,1371136144,1371136141,1371136188,1371136186,1371136181,1371136178,1371136173,1371136165,1371136236,1371136232,1371136229,1371136226,1371136217,1371136206,1371136288,1371136285,1371136281,1371136279,1371136276,1371136271,1371136323,1371136322,1371136319,1371136317,1371136309,1371136303,1371136363,1371136361,1371136358,1371136357,1371136350,1371136344,1371136398,1371136397,1371136395,1371136393,1371136391,1371136385,1371136436,1371136434,1371136429,1371136426,1371136423,1371136420,1371136462,1371136460,1371136458,1371136456,1371136453,1371136448,1371136499,1371136496,1371136493,1371136489,1371136484,1371136479); 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([24714691]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ('0.03628047150535357',), 1371136453: ('0.03628047150535357',), 1371136448: ('0.03628047150535357',)} new output for save of step final : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ('0.03628047150535357',), 1371136453: ('0.03628047150535357',), 1371136448: ('0.03628047150535357',)} [1371136499, 1371136496, 1371136493, 1371136489, 1371136484, 1371136479, 1371136462, 1371136460, 1371136458, 1371136456, 1371136453, 1371136448] map_info['map_portfolio_photo'] : {24714691: [1371136499, 1371136496, 1371136493, 1371136489, 1371136484, 1371136479, 1371136462, 1371136460, 1371136458, 1371136456, 1371136453, 1371136448, 1371136436, 1371136434, 1371136429, 1371136426, 1371136423, 1371136420, 1371136398, 1371136397, 1371136395, 1371136393, 1371136391, 1371136385, 1371136363, 1371136361, 1371136358, 1371136357, 1371136350, 1371136344, 1371136323, 1371136322, 1371136319, 1371136317, 1371136309, 1371136303, 1371136288, 1371136285, 1371136281, 1371136279, 1371136276, 1371136271, 1371136236, 1371136232, 1371136229, 1371136226, 1371136217, 1371136206, 1371136188, 1371136186, 1371136181, 1371136178, 1371136173, 1371136165, 1371136153, 1371136152, 1371136150, 1371136148, 1371136144, 1371136141, 1371136118, 1371136115, 1371136111, 1371136109, 1371136108, 1371136106, 1371136090, 1371136088, 1371136084, 1371136077, 1371136065, 1371136059]} final : False mtd_id 4302 list_pids : [1371136499, 1371136496, 1371136493, 1371136489, 1371136484, 1371136479, 1371136462, 1371136460, 1371136458, 1371136456, 1371136453, 1371136448] Looping around the photos to save general results len do output : 12 /1371136499.Didn't retrieve data . /1371136496.Didn't retrieve data . /1371136493.Didn't retrieve data . /1371136489.Didn't retrieve data . /1371136484.Didn't retrieve data . /1371136479.Didn't retrieve data . /1371136462.Didn't retrieve data . /1371136460.Didn't retrieve data . /1371136458.Didn't retrieve data . /1371136456.Didn't retrieve data . /1371136453.Didn't retrieve data . /1371136448.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, '3249475') ('4302', '24714691', '1371136499', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136496', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136493', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136489', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136484', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136479', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136462', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136460', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136458', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136456', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136453', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136448', None, None, None, None, None, '3249475') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '24714691', '1371136499', '0.03628047150535357', None, None, None, None, '3249475'), ('4302', '24714691', '1371136496', '0.03628047150535357', None, None, None, None, '3249475'), ('4302', '24714691', '1371136493', '0.03628047150535357', None, None, None, None, '3249475'), ('4302', '24714691', '1371136489', '0.03628047150535357', None, None, None, None, '3249475'), ('4302', '24714691', '1371136484', '0.03628047150535357', None, None, None, None, '3249475'), ('4302', '24714691', '1371136479', '0.03628047150535357', None, None, None, None, '3249475'), ('4302', '24714691', '1371136462', '0.03628047150535357', None, None, None, None, '3249475'), ('4302', '24714691', '1371136460', '0.03628047150535357', None, None, None, None, '3249475'), ('4302', '24714691', '1371136458', '0.03628047150535357', None, None, None, None, '3249475'), ('4302', '24714691', '1371136456', '0.03628047150535357', None, None, None, None, '3249475'), ('4302', '24714691', '1371136453', '0.03628047150535357', None, None, None, None, '3249475'), ('4302', '24714691', '1371136448', '0.03628047150535357', None, None, None, None, '3249475')] time used for this insertion : 0.06409406661987305 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.18593287467956543 time spend to save output : 0.06474924087524414 total time spend for step 2 : 0.25068211555480957 step3:velours_tree Tue Jul 8 06:59:00 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 : {24714691: [{'Carton_gris': 24714709, 'plastique': 24714710, 'Teint_Dans_La_Masse': 24714711, 'autre_refus': 24714712, 'cartonnette': 24714713, 'mal_croppe': 24714714, 'metal': 24714715, 'kraft': 24714716, 'papier': 24714717, 'flou': 24714718, 'environnement': 24714719, 'Carton_brun': 24714720}]} input_args_next_step : {24714691: ()} output_args : {24714691: [{'Carton_gris': 24714709, 'plastique': 24714710, 'Teint_Dans_La_Masse': 24714711, 'autre_refus': 24714712, 'cartonnette': 24714713, 'mal_croppe': 24714714, 'metal': 24714715, 'kraft': 24714716, 'papier': 24714717, 'flou': 24714718, 'environnement': 24714719, 'Carton_brun': 24714720}]} args : 24714691 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 : ({'Carton_gris': 24714709, 'plastique': 24714710, 'Teint_Dans_La_Masse': 24714711, 'autre_refus': 24714712, 'cartonnette': 24714713, 'mal_croppe': 24714714, 'metal': 24714715, 'kraft': 24714716, 'papier': 24714717, 'flou': 24714718, 'environnement': 24714719, 'Carton_brun': 24714720},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24714691) 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([24714691]) 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.26601219177246094 time spend to save output : 4.9114227294921875e-05 total time spend for step 3 : 0.26606130599975586 step4:send_mail_cod Tue Jul 8 06:59:00 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 : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ('0.03628047150535357',), 1371136453: ('0.03628047150535357',), 1371136448: ('0.03628047150535357',)} input_args_next_step : {1371136499: ()} output_args : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ('0.03628047150535357',), 1371136453: ('0.03628047150535357',), 1371136448: ('0.03628047150535357',)} args : 1371136499 depend.output_id : 0 input_args_next_step : {1371136499: ('0.03628047150535357',), 1371136496: ()} output_args : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ('0.03628047150535357',), 1371136453: ('0.03628047150535357',), 1371136448: ('0.03628047150535357',)} args : 1371136496 depend.output_id : 0 input_args_next_step : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ()} output_args : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ('0.03628047150535357',), 1371136453: ('0.03628047150535357',), 1371136448: ('0.03628047150535357',)} args : 1371136493 depend.output_id : 0 input_args_next_step : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ()} output_args : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ('0.03628047150535357',), 1371136453: ('0.03628047150535357',), 1371136448: ('0.03628047150535357',)} args : 1371136489 depend.output_id : 0 input_args_next_step : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ()} output_args : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ('0.03628047150535357',), 1371136453: ('0.03628047150535357',), 1371136448: ('0.03628047150535357',)} args : 1371136484 depend.output_id : 0 input_args_next_step : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ()} output_args : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ('0.03628047150535357',), 1371136453: ('0.03628047150535357',), 1371136448: ('0.03628047150535357',)} args : 1371136479 depend.output_id : 0 input_args_next_step : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ()} output_args : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ('0.03628047150535357',), 1371136453: ('0.03628047150535357',), 1371136448: ('0.03628047150535357',)} args : 1371136462 depend.output_id : 0 input_args_next_step : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ()} output_args : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ('0.03628047150535357',), 1371136453: ('0.03628047150535357',), 1371136448: ('0.03628047150535357',)} args : 1371136460 depend.output_id : 0 input_args_next_step : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ()} output_args : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ('0.03628047150535357',), 1371136453: ('0.03628047150535357',), 1371136448: ('0.03628047150535357',)} args : 1371136458 depend.output_id : 0 input_args_next_step : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ()} output_args : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ('0.03628047150535357',), 1371136453: ('0.03628047150535357',), 1371136448: ('0.03628047150535357',)} args : 1371136456 depend.output_id : 0 input_args_next_step : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ('0.03628047150535357',), 1371136453: ()} output_args : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ('0.03628047150535357',), 1371136453: ('0.03628047150535357',), 1371136448: ('0.03628047150535357',)} args : 1371136453 depend.output_id : 0 input_args_next_step : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ('0.03628047150535357',), 1371136453: ('0.03628047150535357',), 1371136448: ()} output_args : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ('0.03628047150535357',), 1371136453: ('0.03628047150535357',), 1371136448: ('0.03628047150535357',)} args : 1371136448 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 : {24714691: [{'Carton_gris': 24714709, 'plastique': 24714710, 'Teint_Dans_La_Masse': 24714711, 'autre_refus': 24714712, 'cartonnette': 24714713, 'mal_croppe': 24714714, 'metal': 24714715, 'kraft': 24714716, 'papier': 24714717, 'flou': 24714718, 'environnement': 24714719, 'Carton_brun': 24714720}]} input_args_next_step : {1371136499: ('0.03628047150535357',), 1371136496: ('0.03628047150535357',), 1371136493: ('0.03628047150535357',), 1371136489: ('0.03628047150535357',), 1371136484: ('0.03628047150535357',), 1371136479: ('0.03628047150535357',), 1371136462: ('0.03628047150535357',), 1371136460: ('0.03628047150535357',), 1371136458: ('0.03628047150535357',), 1371136456: ('0.03628047150535357',), 1371136453: ('0.03628047150535357',), 1371136448: ('0.03628047150535357',), 24714691: ()} output_args : {24714691: [{'Carton_gris': 24714709, 'plastique': 24714710, 'Teint_Dans_La_Masse': 24714711, 'autre_refus': 24714712, 'cartonnette': 24714713, 'mal_croppe': 24714714, 'metal': 24714715, 'kraft': 24714716, 'papier': 24714717, 'flou': 24714718, 'environnement': 24714719, 'Carton_brun': 24714720}]} args : 24714691 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 :13, first value : ('0.03628047150535357',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24714691) 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 ph WHERE photo_id IN (1371136499,1371136496,1371136493,1371136489,1371136484,1371136479,1371136462,1371136460,1371136458,1371136456,1371136453,1371136448) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371136448 begin to download photo : 1371136458 begin to download photo : 1371136479 begin to download photo : 1371136493 download finish for photo 1371136493 begin to download photo : 1371136496 download finish for photo 1371136448 begin to download photo : 1371136453 download finish for photo 1371136479 begin to download photo : 1371136484 download finish for photo 1371136458 begin to download photo : 1371136460 download finish for photo 1371136453 begin to download photo : 1371136456 download finish for photo 1371136496 begin to download photo : 1371136499 download finish for photo 1371136484 begin to download photo : 1371136489 download finish for photo 1371136460 begin to download photo : 1371136462 download finish for photo 1371136456 download finish for photo 1371136462 download finish for photo 1371136489 download finish for photo 1371136499 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 : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24714691_08-07-2025_06_59_00.pdf 24714710 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24714710 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371136340: '1751950326_2785686_1371136188_d0a6d4297feaee5fb379aa2053e2eb91_rle_crop_3875577436_0.png', 1371136341: '1751950326_2785686_1371136186_d2d198d9d4ff5c7093a25a749f305d07_rle_crop_3875577546_0.png', 1371136390: '1751950405_3626344_1371136229_d09123ce8ea2699a1cfff09458338ddc_rle_crop_3875577805_0.png', 1371136595: '1751950645_3632095_1371136397_a2a129fbdab9e3c3e8ff3155008bda20_rle_crop_3875594532_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/bb7b001b9e0671a91a39801a4f3193f8_25469503.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/41339e904f09e608e36edc765a9fe0e4_12895558.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/d39be1d68b96cd78cee3dfe50d0a3a55_67264315.png change filename to text .imagette247147101751950740/ imagette247147101751950740/1751950326_2785686_1371136186_d2d198d9d4ff5c7093a25a749f305d07_rle_crop_3875577546_0.png.png imagette247147101751950740/1751950645_3632095_1371136397_a2a129fbdab9e3c3e8ff3155008bda20_rle_crop_3875594532_0.png.png imagette247147101751950740/1751950326_2785686_1371136188_d0a6d4297feaee5fb379aa2053e2eb91_rle_crop_3875577436_0.png.png imagette247147101751950740/1751950405_3626344_1371136229_d09123ce8ea2699a1cfff09458338ddc_rle_crop_3875577805_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/1124fd330054b9091e2f5702e7c7d0fe_72064653.png imagette247147101751950740 24714712 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24714712 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371136336: '1751950326_2785686_1371136165_89e70f5fd2113dfce4409ecfff13bc60_rle_crop_3875577596_0.png', 1371136349: '1751950348_3623782_1371136150_29ad3099b3aa3d3ff8c18d7f7bb7f94b_rle_crop_3875577618_0.png', 1371136384: '1751950405_3626344_1371136236_bf26a4a7a23eb355fc421ab47feae65c_rle_crop_3875577777_0.png', 1371136406: '1751950444_2788583_1371136276_636ef1614026961e01e15c5e1806ba9b_rle_crop_3875578001_0.png', 1371136885: '1751950686_2794931_1371136423_ccfd3bcbda85583c96ff020940c7e813_rle_crop_3875594830_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/d765c9027167ce9f22261aded3ffbca4_38563357.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/7ff2880d9cfac1ac4accd40c100228fc_13506112.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/b9c00bb7d6a35943f0b1ba7cc0d678d3_41817485.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/ee206c7dad2a55e21cd125e0a647af54_57709937.png change filename to text .imagette247147121751950741/ imagette247147121751950741/1751950686_2794931_1371136423_ccfd3bcbda85583c96ff020940c7e813_rle_crop_3875594830_0.png.png imagette247147121751950741/1751950405_3626344_1371136236_bf26a4a7a23eb355fc421ab47feae65c_rle_crop_3875577777_0.png.png imagette247147121751950741/1751950326_2785686_1371136165_89e70f5fd2113dfce4409ecfff13bc60_rle_crop_3875577596_0.png.png imagette247147121751950741/1751950348_3623782_1371136150_29ad3099b3aa3d3ff8c18d7f7bb7f94b_rle_crop_3875577618_0.png.png imagette247147121751950741/1751950444_2788583_1371136276_636ef1614026961e01e15c5e1806ba9b_rle_crop_3875578001_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/78995dabeaba655a21c73d89a3d9d203_4697935.png imagette247147121751950741 24714713 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24714713 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371136355: '1751950348_3623782_1371136144_4e4d7b93d21e7c6005d654ef80618696_rle_crop_3875577640_0.png', 1371136911: '1751950686_2794931_1371136434_4814d1d07a83fd18396d9ec819aa5077_rle_crop_3875594785_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/08bf621d83dfb2a1e037e225151d5148_546437.png change filename to text .imagette247147131751950741/ imagette247147131751950741/1751950686_2794931_1371136434_4814d1d07a83fd18396d9ec819aa5077_rle_crop_3875594785_0.png.png imagette247147131751950741/1751950348_3623782_1371136144_4e4d7b93d21e7c6005d654ef80618696_rle_crop_3875577640_0.png.png imagette247147141751950741/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/7d77fc4a4fff965b403af46f6fd1313f_1359087.png imagette247147131751950741 24714714 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24714714 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247147141751950741 24714715 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24714715 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371136315: '1751950287_3623116_1371136077_f0c0a26b9c2eb8d6f184632eacbc453e_rle_crop_3875577210_0.png', 1371136356: '1751950348_3623782_1371136141_3ac1cc34d7f423704b9f8d4cee2d2155_rle_crop_3875577655_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/6717af82fa1c97f05a677877d4bd1c6b_9622047.png change filename to text .imagette247147151751950741/ imagette247147151751950741/1751950287_3623116_1371136077_f0c0a26b9c2eb8d6f184632eacbc453e_rle_crop_3875577210_0.png.png imagette247147151751950741/1751950348_3623782_1371136141_3ac1cc34d7f423704b9f8d4cee2d2155_rle_crop_3875577655_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/48cdb70351f14649b514214a26c134bc_76583675.png imagette247147151751950741 24714716 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24714716 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371136314: '1751950287_3623116_1371136065_6ab0e37482fcb1ee9969f4fdc0dad53d_rle_crop_3875577229_0.png', 1371136342: '1751950326_2785686_1371136178_de981934becf639044814318cccdca07_rle_crop_3875577572_0.png', 1371136603: '1751950645_3632095_1371136385_3e434ea1e27138107af9212eb8f858ce_rle_crop_3875594579_0.png', 1371136935: '1751950686_2794931_1371136436_6872d3185ad15240adad88383dab6928_rle_crop_3875594770_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/40c5c79d2461b7b3ba2bd3f4d8d072a6_32041119.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/342a9fb7b14e99f9375b9ef4b8ac2f22_55442940.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/616bd75b219e8f1daec1a6ada28d5259_87257553.png change filename to text .imagette247147161751950741/ imagette247147161751950741/1751950686_2794931_1371136436_6872d3185ad15240adad88383dab6928_rle_crop_3875594770_0.png.png imagette247147161751950741/1751950287_3623116_1371136065_6ab0e37482fcb1ee9969f4fdc0dad53d_rle_crop_3875577229_0.png.png imagette247147161751950741/1751950645_3632095_1371136385_3e434ea1e27138107af9212eb8f858ce_rle_crop_3875594579_0.png.png imagette247147161751950741/1751950326_2785686_1371136178_de981934becf639044814318cccdca07_rle_crop_3875577572_0.png.png imagette247147181751950741/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/9268551dc37617361308d2e392203efb_26288422.png imagette247147161751950741 24714718 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24714718 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247147181751950741 24714709 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24714709 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371136310: '1751950287_3623116_1371136084_22c2219ee1ae603e2648a9251964fc4e_rle_crop_3875577196_0.png', 1371136311: '1751950287_3623116_1371136065_6ab0e37482fcb1ee9969f4fdc0dad53d_rle_crop_3875577227_0.png', 1371136351: '1751950348_3623782_1371136148_2de92c6037605c9294345bb8e0be508f_rle_crop_3875577628_0.png', 1371136352: '1751950348_3623782_1371136144_4e4d7b93d21e7c6005d654ef80618696_rle_crop_3875577639_0.png', 1371136353: '1751950348_3623782_1371136141_3ac1cc34d7f423704b9f8d4cee2d2155_rle_crop_3875577650_0.png', 1371136386: '1751950405_3626344_1371136232_d21066f7dc9011ccc99e9ebc68e55552_rle_crop_3875577792_0.png', 1371136407: '1751950444_2788583_1371136271_c19b751721aabf66f2f88d5dbee44bfa_rle_crop_3875578012_0.png', 1371136408: '1751950444_2788583_1371136271_c19b751721aabf66f2f88d5dbee44bfa_rle_crop_3875578010_0.png', 1371136467: '1751950566_2792008_1371136350_2287835700141cb4cb1c6ba7f86675e8_rle_crop_3875587526_0.png', 1371136573: '1751950645_3632095_1371136398_6f861aeba8b6976d5fc09a558b965760_rle_crop_3875594513_0.png', 1371136577: '1751950645_3632095_1371136397_a2a129fbdab9e3c3e8ff3155008bda20_rle_crop_3875594528_0.png', 1371136579: '1751950645_3632095_1371136393_186bc62f0dbea1b4efef334789dc68e0_rle_crop_3875594553_0.png', 1371136899: '1751950686_2794931_1371136423_ccfd3bcbda85583c96ff020940c7e813_rle_crop_3875594831_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/d36747a81a1c292cc7203766476f42d8_689807.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/b2ccf1acd4f0247035cb30e0fcbcd866_10784419.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/a769ad1849d9e27d60d0ba6bc5ff2e1e_46601059.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/4b287cc25d7887e1eb6b10d92f0ce638_3284092.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/dd7b27b1fee846b02a2bd91a30d59722_87559032.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/43074df0877a3e7dcd65c34df82bc79d_32881998.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/a8d5e01279bae05c9de480019e595463_11047901.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/6860a55db7f558471a5f58f0a7c3e6ff_56289129.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/ef69f35cec28d39eaa85e6ca060fdcdf_3275303.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/64dd138719af8bcb4c9d4bc5e81b2ab6_69254206.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/3def17adac5b3d39af2a2b7ef5c6fed5_60102343.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/fbb089b98ca952643d58f314b3c93574_72710180.png change filename to text .imagette247147091751950741/ imagette247147091751950741/1751950645_3632095_1371136398_6f861aeba8b6976d5fc09a558b965760_rle_crop_3875594513_0.png.png imagette247147091751950741/1751950566_2792008_1371136350_2287835700141cb4cb1c6ba7f86675e8_rle_crop_3875587526_0.png.png imagette247147091751950741/1751950287_3623116_1371136065_6ab0e37482fcb1ee9969f4fdc0dad53d_rle_crop_3875577227_0.png.png imagette247147091751950741/1751950686_2794931_1371136423_ccfd3bcbda85583c96ff020940c7e813_rle_crop_3875594831_0.png.png imagette247147091751950741/1751950348_3623782_1371136148_2de92c6037605c9294345bb8e0be508f_rle_crop_3875577628_0.png.png imagette247147091751950741/1751950405_3626344_1371136232_d21066f7dc9011ccc99e9ebc68e55552_rle_crop_3875577792_0.png.png imagette247147091751950741/1751950444_2788583_1371136271_c19b751721aabf66f2f88d5dbee44bfa_rle_crop_3875578012_0.png.png imagette247147091751950741/1751950287_3623116_1371136084_22c2219ee1ae603e2648a9251964fc4e_rle_crop_3875577196_0.png.png imagette247147091751950741/1751950645_3632095_1371136397_a2a129fbdab9e3c3e8ff3155008bda20_rle_crop_3875594528_0.png.png imagette247147091751950741/1751950348_3623782_1371136141_3ac1cc34d7f423704b9f8d4cee2d2155_rle_crop_3875577650_0.png.png imagette247147091751950741/1751950348_3623782_1371136144_4e4d7b93d21e7c6005d654ef80618696_rle_crop_3875577639_0.png.png imagette247147091751950741/1751950444_2788583_1371136271_c19b751721aabf66f2f88d5dbee44bfa_rle_crop_3875578010_0.png.png imagette247147091751950741/1751950645_3632095_1371136393_186bc62f0dbea1b4efef334789dc68e0_rle_crop_3875594553_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/155461cef34904b67331e7a0ff8c3960_96530976.png imagette247147091751950741 24714711 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24714711 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371136404: '1751950444_2788583_1371136281_227110245d44c554606a01c33195d2fa_rle_crop_3875577985_0.png', 1371136872: '1751950686_2794931_1371136420_40f32bc35e81c7e0d54cd899dbe325cf_rle_crop_3875594849_0.png', 1371136869: '1751950686_2794931_1371136423_ccfd3bcbda85583c96ff020940c7e813_rle_crop_3875594841_0.png', 1371136866: '1751950686_2794931_1371136426_f0e1d1988937f8c618a06ff10c0af3f2_rle_crop_3875594821_0.png', 1371136863: '1751950686_2794931_1371136426_f0e1d1988937f8c618a06ff10c0af3f2_rle_crop_3875594822_0.png', 1371136860: '1751950686_2794931_1371136429_92b617a337e11ce54310230c6bdad5ec_rle_crop_3875594811_0.png', 1371136857: '1751950686_2794931_1371136429_92b617a337e11ce54310230c6bdad5ec_rle_crop_3875594812_0.png', 1371136854: '1751950686_2794931_1371136436_6872d3185ad15240adad88383dab6928_rle_crop_3875594777_0.png', 1371136850: '1751950686_2794931_1371136436_6872d3185ad15240adad88383dab6928_rle_crop_3875594781_0.png', 1371136562: '1751950645_3632095_1371136385_3e434ea1e27138107af9212eb8f858ce_rle_crop_3875594586_0.png', 1371136559: '1751950645_3632095_1371136391_6158b048477e968eb9178990fe337911_rle_crop_3875594575_0.png', 1371136241: '1751950204_2780498_1371136115_26314e0d7f61c5df27081f918c4832db_rle_crop_3875576968_0.png', 1371136403: '1751950444_2788583_1371136281_227110245d44c554606a01c33195d2fa_rle_crop_3875577980_0.png', 1371136402: '1751950444_2788583_1371136281_227110245d44c554606a01c33195d2fa_rle_crop_3875577981_0.png', 1371136401: '1751950444_2788583_1371136285_c0cdcf0fd3928aa8cbbea4e52c6614f0_rle_crop_3875577967_0.png', 1371136400: '1751950444_2788583_1371136285_c0cdcf0fd3928aa8cbbea4e52c6614f0_rle_crop_3875577974_0.png', 1371136383: '1751950405_3626344_1371136229_d09123ce8ea2699a1cfff09458338ddc_rle_crop_3875577806_0.png', 1371136347: '1751950348_3623782_1371136148_2de92c6037605c9294345bb8e0be508f_rle_crop_3875577631_0.png', 1371136346: '1751950348_3623782_1371136148_2de92c6037605c9294345bb8e0be508f_rle_crop_3875577627_0.png', 1371136334: '1751950326_2785686_1371136186_d2d198d9d4ff5c7093a25a749f305d07_rle_crop_3875577545_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/fe41f7393d980d0f557b4adfb7ffcaa7_21641375.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/0e73598f21a9b5953369aa872f6a4bd2_51695268.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/52807e8b74055f8a37ca6d7c96658de0_83389512.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/79e9b320ed29e9f3958d9a211285f7bd_23566073.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/c3ef726f11900e16cbc436058077c171_1639101.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/81f2772b02bda8eb0bd19b2a9f554dae_3132077.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/c1d73a451b85b89afe4fafd3201fd10d_15023565.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/aa39a1dd248576986808bf0b2c355f9c_20416167.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/9dfb799531d7800198ee83f5c7ae1b62_92985152.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/0fa065874971f381a5344a97c8dbc160_11539836.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/b42a94ce162ce166c9b7fac8c90d1274_94756943.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/db39ea0183def624365cca536bd1caf2_92286228.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/82e4571464387a708fe00c06bbae3a28_33800727.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/955b00fba88f5b406472779de93dc996_54369155.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/bc250f3a4376a6844620d82e054a7f9c_50570598.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/e5069b79c8369f7ecb4da41d5fca39b1_71557345.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/2f3958ab7580003f4177598e2ca4746d_6715129.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/f5de918d4a2afbbb8ab973d2ab852798_62829738.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/18f1147879bbf07a0b4b38246e283b8f_10097782.png change filename to text .imagette247147111751950743/ imagette247147111751950743/1751950645_3632095_1371136385_3e434ea1e27138107af9212eb8f858ce_rle_crop_3875594586_0.png.png imagette247147111751950743/1751950444_2788583_1371136281_227110245d44c554606a01c33195d2fa_rle_crop_3875577981_0.png.png imagette247147111751950743/1751950204_2780498_1371136115_26314e0d7f61c5df27081f918c4832db_rle_crop_3875576968_0.png.png imagette247147111751950743/1751950686_2794931_1371136423_ccfd3bcbda85583c96ff020940c7e813_rle_crop_3875594841_0.png.png imagette247147111751950743/1751950686_2794931_1371136429_92b617a337e11ce54310230c6bdad5ec_rle_crop_3875594812_0.png.png imagette247147111751950743/1751950348_3623782_1371136148_2de92c6037605c9294345bb8e0be508f_rle_crop_3875577627_0.png.png imagette247147111751950743/1751950686_2794931_1371136420_40f32bc35e81c7e0d54cd899dbe325cf_rle_crop_3875594849_0.png.png imagette247147111751950743/1751950686_2794931_1371136426_f0e1d1988937f8c618a06ff10c0af3f2_rle_crop_3875594822_0.png.png imagette247147111751950743/1751950686_2794931_1371136436_6872d3185ad15240adad88383dab6928_rle_crop_3875594781_0.png.png imagette247147111751950743/1751950348_3623782_1371136148_2de92c6037605c9294345bb8e0be508f_rle_crop_3875577631_0.png.png imagette247147111751950743/1751950405_3626344_1371136229_d09123ce8ea2699a1cfff09458338ddc_rle_crop_3875577806_0.png.png imagette247147111751950743/1751950326_2785686_1371136186_d2d198d9d4ff5c7093a25a749f305d07_rle_crop_3875577545_0.png.png imagette247147111751950743/1751950645_3632095_1371136391_6158b048477e968eb9178990fe337911_rle_crop_3875594575_0.png.png imagette247147111751950743/1751950444_2788583_1371136285_c0cdcf0fd3928aa8cbbea4e52c6614f0_rle_crop_3875577967_0.png.png imagette247147111751950743/1751950444_2788583_1371136281_227110245d44c554606a01c33195d2fa_rle_crop_3875577985_0.png.png imagette247147111751950743/1751950686_2794931_1371136426_f0e1d1988937f8c618a06ff10c0af3f2_rle_crop_3875594821_0.png.png imagette247147111751950743/1751950686_2794931_1371136429_92b617a337e11ce54310230c6bdad5ec_rle_crop_3875594811_0.png.png imagette247147111751950743/1751950444_2788583_1371136285_c0cdcf0fd3928aa8cbbea4e52c6614f0_rle_crop_3875577974_0.png.png imagette247147111751950743/1751950686_2794931_1371136436_6872d3185ad15240adad88383dab6928_rle_crop_3875594777_0.png.png imagette247147111751950743/1751950444_2788583_1371136281_227110245d44c554606a01c33195d2fa_rle_crop_3875577980_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/999455fb2c27c364d19a451941c9c38b_48421650.png imagette247147111751950743 24714720 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24714720 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371136337: '1751950326_2785686_1371136165_89e70f5fd2113dfce4409ecfff13bc60_rle_crop_3875577601_0.png', 1371136388: '1751950405_3626344_1371136232_d21066f7dc9011ccc99e9ebc68e55552_rle_crop_3875577793_0.png', 1371136389: '1751950405_3626344_1371136229_d09123ce8ea2699a1cfff09458338ddc_rle_crop_3875577804_0.png', 1371136409: '1751950444_2788583_1371136276_636ef1614026961e01e15c5e1806ba9b_rle_crop_3875578000_0.png', 1371136587: '1751950645_3632095_1371136391_6158b048477e968eb9178990fe337911_rle_crop_3875594570_0.png', 1371136923: '1751950686_2794931_1371136426_f0e1d1988937f8c618a06ff10c0af3f2_rle_crop_3875594819_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/45a857b1151f421941a34decac031da8_38531775.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/f4ae6cdae8841f37121481a9aee07bad_25312774.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/9a2d5c68bcf5d9152950b101eeb94862_85117469.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/9ab11ae5302aa18d3d21e1f2e94b643c_38535630.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/a8ccee4df1b0cdfd4cbdea3b4e939b28_37847292.png change filename to text .imagette247147201751950744/ imagette247147201751950744/1751950444_2788583_1371136276_636ef1614026961e01e15c5e1806ba9b_rle_crop_3875578000_0.png.png imagette247147201751950744/1751950405_3626344_1371136232_d21066f7dc9011ccc99e9ebc68e55552_rle_crop_3875577793_0.png.png imagette247147201751950744/1751950645_3632095_1371136391_6158b048477e968eb9178990fe337911_rle_crop_3875594570_0.png.png imagette247147201751950744/1751950405_3626344_1371136229_d09123ce8ea2699a1cfff09458338ddc_rle_crop_3875577804_0.png.png imagette247147201751950744/1751950686_2794931_1371136426_f0e1d1988937f8c618a06ff10c0af3f2_rle_crop_3875594819_0.png.png imagette247147201751950744/1751950326_2785686_1371136165_89e70f5fd2113dfce4409ecfff13bc60_rle_crop_3875577601_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/7b529f23b02deda80c589b4a68ac2450_46769241.png imagette247147201751950744 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24714691 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24714721,24714722,24714723,24714724,24714725,24714726,24714727,24714728,24714729,24714730,24714731,24714732?tags=Carton_gris,plastique,Teint_Dans_La_Masse,autre_refus,cartonnette,mal_croppe,metal,kraft,papier,flou,environnement,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1371136499] : ('0.03628047150535357',) no score found for photo 1371136499 We are sending mail with results at report@fotonower.com args[1371136496] : ('0.03628047150535357',) no score found for photo 1371136496 We are sending mail with results at report@fotonower.com args[1371136493] : ('0.03628047150535357',) no score found for photo 1371136493 We are sending mail with results at report@fotonower.com args[1371136489] : ('0.03628047150535357',) no score found for photo 1371136489 We are sending mail with results at report@fotonower.com args[1371136484] : ('0.03628047150535357',) no score found for photo 1371136484 We are sending mail with results at report@fotonower.com args[1371136479] : ('0.03628047150535357',) no score found for photo 1371136479 We are sending mail with results at report@fotonower.com args[1371136462] : ('0.03628047150535357',) no score found for photo 1371136462 We are sending mail with results at report@fotonower.com args[1371136460] : ('0.03628047150535357',) no score found for photo 1371136460 We are sending mail with results at report@fotonower.com args[1371136458] : ('0.03628047150535357',) no score found for photo 1371136458 We are sending mail with results at report@fotonower.com args[1371136456] : ('0.03628047150535357',) no score found for photo 1371136456 We are sending mail with results at report@fotonower.com args[1371136453] : ('0.03628047150535357',) no score found for photo 1371136453 We are sending mail with results at report@fotonower.com args[1371136448] : ('0.03628047150535357',) no score found for photo 1371136448 We are sending mail with results at report@fotonower.com refus_total : 0.03628047150535357 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24714691 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_P24714691_08-07-2025_06_59_00.pdf results_Auto_P24714691_08-07-2025_06_59_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24714691_08-07-2025_06_59_00.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','24714691','results_Auto_P24714691_08-07-2025_06_59_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24714691_08-07-2025_06_59_00.pdf','pdf','','0.26','0.03628047150535357') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24714691]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371136499, 1371136496, 1371136493, 1371136489, 1371136484, 1371136479, 1371136462, 1371136460, 1371136458, 1371136456, 1371136453, 1371136448] map_info['map_portfolio_photo'] : {24714691: [1371136499, 1371136496, 1371136493, 1371136489, 1371136484, 1371136479, 1371136462, 1371136460, 1371136458, 1371136456, 1371136453, 1371136448, 1371136436, 1371136434, 1371136429, 1371136426, 1371136423, 1371136420, 1371136398, 1371136397, 1371136395, 1371136393, 1371136391, 1371136385, 1371136363, 1371136361, 1371136358, 1371136357, 1371136350, 1371136344, 1371136323, 1371136322, 1371136319, 1371136317, 1371136309, 1371136303, 1371136288, 1371136285, 1371136281, 1371136279, 1371136276, 1371136271, 1371136236, 1371136232, 1371136229, 1371136226, 1371136217, 1371136206, 1371136188, 1371136186, 1371136181, 1371136178, 1371136173, 1371136165, 1371136153, 1371136152, 1371136150, 1371136148, 1371136144, 1371136141, 1371136118, 1371136115, 1371136111, 1371136109, 1371136108, 1371136106, 1371136090, 1371136088, 1371136084, 1371136077, 1371136065, 1371136059]} final : False mtd_id 4302 list_pids : [1371136499, 1371136496, 1371136493, 1371136489, 1371136484, 1371136479, 1371136462, 1371136460, 1371136458, 1371136456, 1371136453, 1371136448] 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, '3249475') ('4302', '24714691', '1371136499', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136496', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136493', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136489', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136484', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136479', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136462', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136460', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136458', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136456', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136453', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136448', None, None, None, None, None, '3249475') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '24714691', '1371136499', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136496', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136493', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136489', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136484', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136479', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136462', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136460', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136458', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136456', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136453', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136448', None, None, None, None, None, '3249475')] time used for this insertion : 0.3247654438018799 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.555813550949097 time spend to save output : 0.324993371963501 total time spend for step 4 : 5.880806922912598 step5:split_time_score Tue Jul 8 06:59:06 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 : ['24714691'] 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 : [('24714691',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24714691) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371136448: {'path': 'temp/1751950740_1614725_1371136448_1a70bd4e5d844cc4be799ea5ad92d899.jpg', 'extension': 'jpg'}, 1371136453: {'path': 'temp/1751950740_1614725_1371136453_ccc88d37597d7f358a080391dd073995.jpg', 'extension': 'jpg'}, 1371136456: {'path': 'temp/1751950740_1614725_1371136456_03812972577737a260a6e14331908d34.jpg', 'extension': 'jpg'}, 1371136458: {'path': 'temp/1751950740_1614725_1371136458_3694f062c5f3c8281834a03ae5147780.jpg', 'extension': 'jpg'}, 1371136460: {'path': 'temp/1751950740_1614725_1371136460_421e0e8726602c055696374b78bf7564.jpg', 'extension': 'jpg'}, 1371136462: {'path': 'temp/1751950740_1614725_1371136462_87871ae3b77bed4113c0801d3a6b4e8f.jpg', 'extension': 'jpg'}, 1371136479: {'path': 'temp/1751950740_1614725_1371136479_36ac04521620aee886750f6b61211dc1.jpg', 'extension': 'jpg'}, 1371136484: {'path': 'temp/1751950740_1614725_1371136484_04574fb2cdee1dd452bda25dbecbb171.jpg', 'extension': 'jpg'}, 1371136489: {'path': 'temp/1751950740_1614725_1371136489_d19c1dd265fba65c675c802b12027f1d.jpg', 'extension': 'jpg'}, 1371136493: {'path': 'temp/1751950740_1614725_1371136493_93471e1658ca45ccf0a3720e5ea438db.jpg', 'extension': 'jpg'}, 1371136496: {'path': 'temp/1751950740_1614725_1371136496_01d4bdd14d70c01910eb12da0cfebf51.jpg', 'extension': 'jpg'}, 1371136499: {'path': 'temp/1751950740_1614725_1371136499_146a67cf574b25ae8c1420d11624eafc.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 = 24714691; (('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 ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 24714691 group by h (('06', 72),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24714691 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 (24714691) 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 (24714691) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08072025 24714691 Nombre de photos uploadées : 72 / 23040 (0%) 08072025 24714691 Nombre de photos taguées (types de déchets): 0 / 72 (0%) 08072025 24714691 Nombre de photos taguées (volume) : 0 / 72 (0%) [{'photo_id': 1371136090, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/a1188c7c2cac19f2cfa28d069c5755f8.jpg', 'username': None, 'uploaded_at': 1751949963, 'text': 'image_08072025_06_45_04_009127m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371136088, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/eede22e16d6d2ef2000598444f0a291e.jpg', 'username': None, 'uploaded_at': 1751949963, 'text': 'image_08072025_06_45_14_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371136084, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/22c2219ee1ae603e2648a9251964fc4e.jpg', 'username': None, 'uploaded_at': 1751949963, 'text': 'image_08072025_06_45_24_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1371136077, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/f0c0a26b9c2eb8d6f184632eacbc453e.jpg', 'username': None, 'uploaded_at': 1751949963, 'text': 'image_08072025_06_45_34_010134m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ???????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.00315093994140625 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24714691, '2025-07-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1960471,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03048110008239746 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= 1960471 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24702229, 'dashboard_result_id': 12270816, '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_P24702229_08-07-2025_06_20_43.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24702755, 'dashboard_result_id': 12270817, '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_P24702755_08-07-2025_06_21_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24703205, 'dashboard_result_id': 12270818, '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_P24703205_08-07-2025_06_21_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24703713, 'dashboard_result_id': 12270819, '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_P24703713_08-07-2025_06_21_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24704184, 'dashboard_result_id': 12270820, '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_P24704184_08-07-2025_06_22_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24704667, 'dashboard_result_id': 12270821, '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_P24704667_08-07-2025_06_23_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24704690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704699, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24705055, 'dashboard_result_id': 12270822, '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_P24705055_08-07-2025_06_24_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24705082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705093, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24705431, 'dashboard_result_id': 12270823, '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_P24705431_08-07-2025_06_25_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24705445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705458, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24706018, 'dashboard_result_id': 12270824, '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_P24706018_08-07-2025_06_25_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706057, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24706657, 'dashboard_result_id': 12270825, '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_P24706657_08-07-2025_06_25_41.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706695, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24707037, 'dashboard_result_id': 12270826, '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_P24707037_08-07-2025_06_26_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707075, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24707471, 'dashboard_result_id': 12270827, '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_P24707471_08-07-2025_06_26_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24707485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707496, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24707886, 'dashboard_result_id': 12270828, '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_P24707886_08-07-2025_06_27_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707926, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24708456, 'dashboard_result_id': 12270829, '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_P24708456_08-07-2025_06_28_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708495, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24708864, 'dashboard_result_id': 12270830, '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_P24708864_08-07-2025_06_28_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708879, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708880, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24709305, 'dashboard_result_id': 12270831, '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_P24709305_08-07-2025_06_29_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24709328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709330, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24709706, 'dashboard_result_id': 12270832, '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_P24709706_08-07-2025_06_30_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24709771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709782, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24710277, 'dashboard_result_id': 12270833, '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_P24710277_08-07-2025_06_30_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24710295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710303, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24710641, 'dashboard_result_id': 12270834, '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_P24710641_08-07-2025_06_30_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24710668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710679, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24711106, 'dashboard_result_id': 12270835, '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_P24711106_08-07-2025_06_31_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24711130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24711132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24711133, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24711134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24711136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24711137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24711138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24711139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24711140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24711141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24711142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24711143, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24711540, 'dashboard_result_id': 12270836, '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_P24711540_08-07-2025_05_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24711568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24711569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24711570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24711571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24711572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24711573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24711574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24711575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24711576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24711577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24711578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24711579, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24712059, 'dashboard_result_id': 12270837, '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_P24712059_08-07-2025_05_40_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24712087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712098, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24712470, 'dashboard_result_id': 12270838, '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_P24712470_08-07-2025_05_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24712504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712505, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712508, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24712908, 'dashboard_result_id': 12270839, '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_P24712908_08-07-2025_06_03_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24712935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712944, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712946, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24713368, 'dashboard_result_id': 12270840, '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_P24713368_08-07-2025_06_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24713371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24713372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24713373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24713374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24713375, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24713376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24713377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24713378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24713379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24713380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24713381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24713382, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24713857, 'dashboard_result_id': 12270841, '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_P24713857_08-07-2025_06_33_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24713864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24713865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24713866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24713867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24713869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24713870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24713871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24713873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24713874, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24713875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24713876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24713878, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24714245, 'dashboard_result_id': 12270842, '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_P24714245_08-07-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24714249, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24714250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24714251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24714252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24714253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24714254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24714255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24714256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24714257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24714258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24714259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24714260, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968807, 'mtr_portfolio_id': 24714691, 'dashboard_result_id': 12270843, '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_P24714691_08-07-2025_06_54_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24714709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24714710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24714711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24714712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24714713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24714714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24714715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24714716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24714717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24714718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24714719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24714720, '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 = 24702229 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': 3249205, 'mtr_portfolio_id': 24702229, 'created_at': datetime.datetime(2025, 7, 8, 6, 20, 39), 'result': '0.03439958030371631', 'result_long': None, 'result_double': None}] Qualite : 0.03439958030371631 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24702229 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702229_08-07-2025_06_20_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24702229 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_P24702229_08-07-2025_06_20_43.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, 'pht': 3726}}" where mtr_portfolio_id = 24702229 and dashboard_run_id = 1968807 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`=24702229 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270816, 0.03439958030371631, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702229_08-07-2025_06_20_43.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, '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 = 24702755 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': 3249206, 'mtr_portfolio_id': 24702755, 'created_at': datetime.datetime(2025, 7, 8, 6, 20, 59), 'result': '0.029852122284747536', 'result_long': None, 'result_double': None}] Qualite : 0.029852122284747536 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24702755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702755_08-07-2025_06_21_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24702755 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_P24702755_08-07-2025_06_21_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, 'pht': 3726}}" where mtr_portfolio_id = 24702755 and dashboard_run_id = 1968807 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`=24702755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270817, 0.029852122284747536, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702755_08-07-2025_06_21_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, '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 = 24703205 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': 3249207, 'mtr_portfolio_id': 24703205, 'created_at': datetime.datetime(2025, 7, 8, 6, 21, 27), 'result': '0.036019155894893067', 'result_long': None, 'result_double': None}] Qualite : 0.036019155894893067 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24703205 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703205_08-07-2025_06_21_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24703205 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_P24703205_08-07-2025_06_21_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, 'pht': 3726}}" where mtr_portfolio_id = 24703205 and dashboard_run_id = 1968807 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`=24703205 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270818, 0.036019155894893067, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703205_08-07-2025_06_21_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, '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 = 24703713 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': 3249208, 'mtr_portfolio_id': 24703713, 'created_at': datetime.datetime(2025, 7, 8, 6, 21, 56), 'result': '0.03227754957319547', 'result_long': None, 'result_double': None}] Qualite : 0.03227754957319547 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24703713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703713_08-07-2025_06_21_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24703713 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_P24703713_08-07-2025_06_21_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, 'pht': 3726}}" where mtr_portfolio_id = 24703713 and dashboard_run_id = 1968807 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`=24703713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270819, 0.03227754957319547, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703713_08-07-2025_06_21_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, '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 = 24704184 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': 3249209, 'mtr_portfolio_id': 24704184, 'created_at': datetime.datetime(2025, 7, 8, 6, 22, 31), 'result': '0.054244446119892195', 'result_long': None, 'result_double': None}] Qualite : 0.054244446119892195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24704184 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704184_08-07-2025_06_22_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24704184 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_P24704184_08-07-2025_06_22_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, 'pht': 3726}}" where mtr_portfolio_id = 24704184 and dashboard_run_id = 1968807 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`=24704184 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270820, 0.054244446119892195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704184_08-07-2025_06_22_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, '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 = 24704667 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': 3249210, 'mtr_portfolio_id': 24704667, 'created_at': datetime.datetime(2025, 7, 8, 6, 23, 31), 'result': '0.0511404306075878', 'result_long': None, 'result_double': None}] Qualite : 0.0511404306075878 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24704667 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704667_08-07-2025_06_23_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24704667 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_P24704667_08-07-2025_06_23_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24704690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704699, 'pht': 3726}}" where mtr_portfolio_id = 24704667 and dashboard_run_id = 1968807 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`=24704667 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270821, 0.0511404306075878, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704667_08-07-2025_06_23_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24704690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704699, '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 = 24705055 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': 3249211, 'mtr_portfolio_id': 24705055, 'created_at': datetime.datetime(2025, 7, 8, 6, 23, 58), 'result': '0.05021798049816016', 'result_long': None, 'result_double': None}] Qualite : 0.05021798049816016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24705055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705055_08-07-2025_06_24_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24705055 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_P24705055_08-07-2025_06_24_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24705082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705093, 'pht': 3726}}" where mtr_portfolio_id = 24705055 and dashboard_run_id = 1968807 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`=24705055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270822, 0.05021798049816016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705055_08-07-2025_06_24_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24705082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705093, '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 = 24705431 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': 3249212, 'mtr_portfolio_id': 24705431, 'created_at': datetime.datetime(2025, 7, 8, 6, 24, 57), 'result': '0.035253266256025644', 'result_long': None, 'result_double': None}] Qualite : 0.035253266256025644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24705431 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705431_08-07-2025_06_25_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24705431 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_P24705431_08-07-2025_06_25_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24705445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705458, 'pht': 3726}}" where mtr_portfolio_id = 24705431 and dashboard_run_id = 1968807 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`=24705431 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270823, 0.035253266256025644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705431_08-07-2025_06_25_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24705445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705458, '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 = 24706018 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': 3249213, 'mtr_portfolio_id': 24706018, 'created_at': datetime.datetime(2025, 7, 8, 6, 25, 27), 'result': '0.04718973249228311', 'result_long': None, 'result_double': None}] Qualite : 0.04718973249228311 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24706018 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706018_08-07-2025_06_25_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24706018 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_P24706018_08-07-2025_06_25_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706057, 'pht': 3726}}" where mtr_portfolio_id = 24706018 and dashboard_run_id = 1968807 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`=24706018 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270824, 0.04718973249228311, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706018_08-07-2025_06_25_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706057, '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 = 24706657 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': 3249214, 'mtr_portfolio_id': 24706657, 'created_at': datetime.datetime(2025, 7, 8, 6, 25, 38), 'result': '0.05936192136152819', 'result_long': None, 'result_double': None}] Qualite : 0.05936192136152819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24706657 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706657_08-07-2025_06_25_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24706657 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_P24706657_08-07-2025_06_25_41.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706695, 'pht': 3726}}" where mtr_portfolio_id = 24706657 and dashboard_run_id = 1968807 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`=24706657 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270825, 0.05936192136152819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706657_08-07-2025_06_25_41.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706695, '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 = 24707037 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': 3249215, 'mtr_portfolio_id': 24707037, 'created_at': datetime.datetime(2025, 7, 8, 6, 25, 57), 'result': '0.047344868686948', 'result_long': None, 'result_double': None}] Qualite : 0.047344868686948 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24707037 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707037_08-07-2025_06_26_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24707037 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_P24707037_08-07-2025_06_26_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707075, 'pht': 3726}}" where mtr_portfolio_id = 24707037 and dashboard_run_id = 1968807 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`=24707037 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270826, 0.047344868686948, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707037_08-07-2025_06_26_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707075, '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 = 24707471 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': 3249216, 'mtr_portfolio_id': 24707471, 'created_at': datetime.datetime(2025, 7, 8, 6, 26, 27), 'result': '0.04386404503174259', 'result_long': None, 'result_double': None}] Qualite : 0.04386404503174259 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24707471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707471_08-07-2025_06_26_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24707471 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_P24707471_08-07-2025_06_26_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24707485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707496, 'pht': 3726}}" where mtr_portfolio_id = 24707471 and dashboard_run_id = 1968807 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`=24707471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270827, 0.04386404503174259, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707471_08-07-2025_06_26_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24707485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707496, '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 = 24707886 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': 3249217, 'mtr_portfolio_id': 24707886, 'created_at': datetime.datetime(2025, 7, 8, 6, 27, 28), 'result': '0.03575609201014095', 'result_long': None, 'result_double': None}] Qualite : 0.03575609201014095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24707886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707886_08-07-2025_06_27_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24707886 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_P24707886_08-07-2025_06_27_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707926, 'pht': 3726}}" where mtr_portfolio_id = 24707886 and dashboard_run_id = 1968807 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`=24707886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270828, 0.03575609201014095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707886_08-07-2025_06_27_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707926, '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 = 24708456 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': 3249218, 'mtr_portfolio_id': 24708456, 'created_at': datetime.datetime(2025, 7, 8, 6, 28), 'result': '0.040077296222902986', 'result_long': None, 'result_double': None}] Qualite : 0.040077296222902986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24708456 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708456_08-07-2025_06_28_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24708456 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_P24708456_08-07-2025_06_28_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708495, 'pht': 3726}}" where mtr_portfolio_id = 24708456 and dashboard_run_id = 1968807 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`=24708456 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270829, 0.040077296222902986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708456_08-07-2025_06_28_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708495, '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 = 24708864 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': 3249219, 'mtr_portfolio_id': 24708864, 'created_at': datetime.datetime(2025, 7, 8, 6, 28, 28), 'result': '0.05241112392920958', 'result_long': None, 'result_double': None}] Qualite : 0.05241112392920958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24708864 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708864_08-07-2025_06_28_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24708864 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_P24708864_08-07-2025_06_28_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708879, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708880, 'pht': 3726}}" where mtr_portfolio_id = 24708864 and dashboard_run_id = 1968807 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`=24708864 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270830, 0.05241112392920958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708864_08-07-2025_06_28_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708879, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708880, '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 = 24709305 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': 3249220, 'mtr_portfolio_id': 24709305, 'created_at': datetime.datetime(2025, 7, 8, 6, 29, 30), 'result': '0.027266168628190587', 'result_long': None, 'result_double': None}] Qualite : 0.027266168628190587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24709305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24709305_08-07-2025_06_29_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24709305 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_P24709305_08-07-2025_06_29_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24709328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709330, 'pht': 3726}}" where mtr_portfolio_id = 24709305 and dashboard_run_id = 1968807 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`=24709305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270831, 0.027266168628190587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24709305_08-07-2025_06_29_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24709328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709330, '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 = 24709706 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': 3249221, 'mtr_portfolio_id': 24709706, 'created_at': datetime.datetime(2025, 7, 8, 6, 29, 59), 'result': '0.039416608539746385', 'result_long': None, 'result_double': None}] Qualite : 0.039416608539746385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24709706 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24709706_08-07-2025_06_30_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24709706 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_P24709706_08-07-2025_06_30_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24709771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709782, 'pht': 3726}}" where mtr_portfolio_id = 24709706 and dashboard_run_id = 1968807 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`=24709706 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270832, 0.039416608539746385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24709706_08-07-2025_06_30_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24709771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709782, '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 = 24710277 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': 3249222, 'mtr_portfolio_id': 24710277, 'created_at': datetime.datetime(2025, 7, 8, 6, 30, 30), 'result': '0.029166659610018672', 'result_long': None, 'result_double': None}] Qualite : 0.029166659610018672 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24710277 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24710277_08-07-2025_06_30_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24710277 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_P24710277_08-07-2025_06_30_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24710295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710303, 'pht': 3726}}" where mtr_portfolio_id = 24710277 and dashboard_run_id = 1968807 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`=24710277 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270833, 0.029166659610018672, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24710277_08-07-2025_06_30_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24710295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710303, '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 = 24710641 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': 3249223, 'mtr_portfolio_id': 24710641, 'created_at': datetime.datetime(2025, 7, 8, 6, 30, 38), 'result': '0.022723499448938', 'result_long': None, 'result_double': None}] Qualite : 0.022723499448938 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24710641 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24710641_08-07-2025_06_30_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24710641 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_P24710641_08-07-2025_06_30_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24710668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710679, 'pht': 3726}}" where mtr_portfolio_id = 24710641 and dashboard_run_id = 1968807 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`=24710641 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270834, 0.022723499448938, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24710641_08-07-2025_06_30_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24710668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710679, '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 = 24711106 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': 3249224, 'mtr_portfolio_id': 24711106, 'created_at': datetime.datetime(2025, 7, 8, 6, 31, 29), 'result': '0.022118563344150313', 'result_long': None, 'result_double': None}] Qualite : 0.022118563344150313 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24711106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24711106_08-07-2025_06_31_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24711106 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_P24711106_08-07-2025_06_31_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24711130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24711132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24711133, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24711134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24711136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24711137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24711138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24711139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24711140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24711141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24711142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24711143, 'pht': 3726}}" where mtr_portfolio_id = 24711106 and dashboard_run_id = 1968807 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`=24711106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270835, 0.022118563344150313, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24711106_08-07-2025_06_31_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24711130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24711132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24711133, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24711134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24711136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24711137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24711138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24711139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24711140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24711141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24711142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24711143, '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 = 24711540 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': 3249034, 'mtr_portfolio_id': 24711540, 'created_at': datetime.datetime(2025, 7, 8, 5, 16, 57), 'result': '0.018584028979821202', 'result_long': None, 'result_double': None}] Qualite : 0.018584028979821202 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24711540 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24711540_08-07-2025_05_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24711540 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_P24711540_08-07-2025_05_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24711568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24711569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24711570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24711571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24711572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24711573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24711574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24711575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24711576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24711577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24711578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24711579, 'pht': 3726}}" where mtr_portfolio_id = 24711540 and dashboard_run_id = 1968807 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`=24711540 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270836, 0.018584028979821202, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24711540_08-07-2025_05_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24711568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24711569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24711570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24711571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24711572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24711573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24711574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24711575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24711576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24711577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24711578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24711579, '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 = 24712059 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': 3249226, 'mtr_portfolio_id': 24712059, 'created_at': datetime.datetime(2025, 7, 8, 5, 40, 38), 'result': '0.025199203532719025', 'result_long': None, 'result_double': None}] Qualite : 0.025199203532719025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24712059 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24712059_08-07-2025_05_40_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24712059 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_P24712059_08-07-2025_05_40_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24712087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712098, 'pht': 3726}}" where mtr_portfolio_id = 24712059 and dashboard_run_id = 1968807 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`=24712059 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270837, 0.025199203532719025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24712059_08-07-2025_05_40_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24712087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712098, '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 = 24712470 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': 3249123, 'mtr_portfolio_id': 24712470, 'created_at': datetime.datetime(2025, 7, 8, 5, 46, 59), 'result': '0.0402626252856137', 'result_long': None, 'result_double': None}] Qualite : 0.0402626252856137 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24712470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24712470_08-07-2025_05_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24712470 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_P24712470_08-07-2025_05_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24712504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712505, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712508, 'pht': 3726}}" where mtr_portfolio_id = 24712470 and dashboard_run_id = 1968807 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`=24712470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270838, 0.0402626252856137, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24712470_08-07-2025_05_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24712504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712505, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712508, '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 = 24712908 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': 3249291, 'mtr_portfolio_id': 24712908, 'created_at': datetime.datetime(2025, 7, 8, 6, 3, 29), 'result': '0.044108307242809924', 'result_long': None, 'result_double': None}] Qualite : 0.044108307242809924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24712908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24712908_08-07-2025_06_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24712908 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_P24712908_08-07-2025_06_03_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24712935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712944, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712946, 'pht': 3726}}" where mtr_portfolio_id = 24712908 and dashboard_run_id = 1968807 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`=24712908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270839, 0.044108307242809924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24712908_08-07-2025_06_03_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24712935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712944, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712946, '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 = 24713368 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': 3249342, 'mtr_portfolio_id': 24713368, 'created_at': datetime.datetime(2025, 7, 8, 6, 16, 59), 'result': '0.03768009568978376', 'result_long': None, 'result_double': None}] Qualite : 0.03768009568978376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24713368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24713368_08-07-2025_06_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24713368 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_P24713368_08-07-2025_06_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24713371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24713372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24713373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24713374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24713375, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24713376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24713377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24713378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24713379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24713380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24713381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24713382, 'pht': 3726}}" where mtr_portfolio_id = 24713368 and dashboard_run_id = 1968809 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`=24713368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270840, 0.03768009568978376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24713368_08-07-2025_06_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24713371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24713372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24713373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24713374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24713375, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24713376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24713377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24713378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24713379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24713380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24713381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24713382, '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 = 24713857 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': 3249389, 'mtr_portfolio_id': 24713857, 'created_at': datetime.datetime(2025, 7, 8, 6, 33, 29), 'result': '0.03252529549769295', 'result_long': None, 'result_double': None}] Qualite : 0.03252529549769295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24713857 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24713857_08-07-2025_06_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24713857 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_P24713857_08-07-2025_06_33_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24713864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24713865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24713866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24713867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24713869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24713870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24713871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24713873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24713874, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24713875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24713876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24713878, 'pht': 3726}}" where mtr_portfolio_id = 24713857 and dashboard_run_id = 1968809 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`=24713857 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270841, 0.03252529549769295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24713857_08-07-2025_06_33_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24713864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24713865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24713866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24713867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24713869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24713870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24713871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24713873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24713874, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24713875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24713876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24713878, '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 = 24714245 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': 3249426, 'mtr_portfolio_id': 24714245, 'created_at': datetime.datetime(2025, 7, 8, 6, 46, 59), 'result': '0.030573826947748812', 'result_long': None, 'result_double': None}] Qualite : 0.030573826947748812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24714245 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24714245_08-07-2025_06_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24714245 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_P24714245_08-07-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24714249, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24714250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24714251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24714252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24714253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24714254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24714255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24714256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24714257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24714258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24714259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24714260, 'pht': 3726}}" where mtr_portfolio_id = 24714245 and dashboard_run_id = 1968809 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`=24714245 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270842, 0.030573826947748812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24714245_08-07-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24714249, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24714250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24714251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24714252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24714253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24714254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24714255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24714256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24714257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24714258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24714259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24714260, '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 = 24714691 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': 3249475, 'mtr_portfolio_id': 24714691, 'created_at': datetime.datetime(2025, 7, 8, 6, 59), 'result': '0.03628047150535357', 'result_long': None, 'result_double': None}] Qualite : 0.03628047150535357 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24714691 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24714691_08-07-2025_06_59_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24714691 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_P24714691_08-07-2025_06_59_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24714709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24714710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24714711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24714712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24714713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24714714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24714715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24714716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24714717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24714718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24714719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24714720, 'pht': 3726}}" where mtr_portfolio_id = 24714691 and dashboard_run_id = 1968809 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`=24714691 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12270843, 0.03628047150535357, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24714691_08-07-2025_06_59_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24714709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24714710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24714711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24714712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24714713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24714714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24714715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24714716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24714717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24714718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24714719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24714720, '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 (24702229,24702755,24703205,24703713,24704184,24704667,24705055,24705431,24706018,24706657,24707037,24707471,24707886,24708456,24708864,24709305,24709706,24710277,24710641,24711106,24711540,24712059,24712470,24712908,24713368,24713857,24714245,24714691) result : ((1371103946,), (1371103951,), (1371103984,), (1371103989,), (1371103998,), (1371104125,), (1371104160,), (1371104195,), (1371104223,), (1371104232,), (1371104236,), (1371104398,), (1371104404,), (1371104407,), (1371104408,), (1371104411,), (1371104414,), (1371104420,), (1371104422,), (1371104424,), (1371104427,), (1371104430,), (1371104432,), (1371104435,), (1371104437,), (1371104440,), (1371104443,), (1371104445,), (1371104449,), (1371104484,), (1371104486,), (1371104489,), (1371104496,), (1371104533,), (1371104536,), (1371104541,), (1371104546,), (1371104549,), (1371104578,), (1371104613,), (1371104634,), (1371104648,), (1371104658,), (1371104662,), (1371104667,), (1371104671,), (1371104674,), (1371104686,), (1371104690,), (1371104695,), (1371104701,), (1371104711,), (1371104713,), (1371104734,), (1371104740,), (1371104745,), (1371104750,), (1371104753,), (1371104754,), (1371104789,), (1371104792,), (1371104795,), (1371104798,), (1371104800,), (1371104803,), (1371104825,), (1371104831,), (1371104833,), (1371104835,), (1371104837,), (1371104845,), (1371104874,), (1371104891,), (1371104896,), (1371104899,), (1371104902,), (1371104920,), (1371104959,), (1371104970,), (1371104973,), (1371104977,), (1371104980,), (1371104982,), (1371104990,), (1371104994,), (1371104999,), (1371105001,), (1371105004,), (1371105006,), (1371105016,), (1371105025,), (1371105029,), (1371105034,), (1371105039,), (1371105041,), (1371105058,), (1371105063,), (1371105066,), (1371105069,), (1371105076,), (1371105082,), (1371105095,), (1371105103,), (1371105106,), (1371105108,), (1371105110,), (1371105111,), (1371105131,), (1371105135,), (1371105141,), (1371105146,), (1371105150,), (1371105153,), (1371105163,), (1371105177,), (1371105189,), (1371105191,), (1371105194,), (1371105195,), (1371105216,), (1371105220,), (1371105224,), (1371105227,), (1371105231,), (1371105234,), (1371105244,), (1371105258,), (1371105268,), (1371105271,), (1371105274,), (1371105276,), (1371105308,), (1371105311,), (1371105316,), (1371105319,), (1371105323,), (1371105326,), (1371105336,), (1371105350,), (1371105352,), (1371105354,), (1371105357,), (1371105360,), (1371105382,), (1371105386,), (1371105390,), (1371105394,), (1371105398,), (1371105400,), (1371105425,), (1371105437,), (1371105444,), (1371105448,), (1371105451,), (1371105453,), (1371105473,), (1371105478,), (1371105482,), (1371105486,), (1371105489,), (1371105492,), (1371105506,), (1371105513,), (1371105520,), (1371105530,), (1371105534,), (1371105535,), (1371105575,), (1371105584,), (1371105597,), (1371105599,), (1371105601,), (1371105602,), (1371105655,), (1371105665,), (1371105715,), (1371105727,), (1371105731,), (1371105732,), (1371105757,), (1371105826,), (1371105830,), (1371105833,), (1371105845,), (1371105857,), (1371105896,), (1371105921,), (1371105925,), (1371105940,), (1371105948,), (1371105950,), (1371106000,), (1371106003,), (1371106007,), (1371106010,), (1371106013,), (1371106017,), (1371106186,), (1371106226,), (1371106262,), (1371106296,), (1371106330,), (1371106362,), (1371106568,), (1371106605,), (1371106636,), (1371106641,), (1371106645,), (1371106647,), (1371106683,), (1371106718,), (1371106760,), (1371106796,), (1371106827,), (1371106839,), (1371106906,), (1371106910,), (1371106914,), (1371106919,), (1371106924,), (1371106927,), (1371106941,), (1371106952,), (1371106957,), (1371106966,), (1371106969,), (1371106971,), (1371106984,), (1371106989,), (1371106992,), (1371106998,), (1371107002,), (1371107004,), (1371107018,), (1371107032,), (1371107037,), (1371107041,), (1371107045,), (1371107048,), (1371107069,), (1371107074,), (1371107077,), (1371107081,), (1371107082,), (1371107090,), (1371107118,), (1371107122,), (1371107127,), (1371107129,), (1371107131,), (1371107132,), (1371107145,), (1371107156,), (1371107160,), (1371107163,), (1371107165,), (1371107166,), (1371107186,), (1371107189,), (1371107193,), (1371107196,), (1371107199,), (1371107202,), (1371107212,), (1371107217,), (1371107222,), (1371107227,), (1371107238,), (1371107240,), (1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,), (1371107910,), (1371107954,), (1371107989,), (1371108019,), (1371108050,), (1371108095,), (1371108907,), (1371108975,), (1371109030,), (1371109069,), (1371109105,), (1371109137,), (1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,), (1371109850,), (1371109861,), (1371109865,), (1371109869,), (1371109872,), (1371109874,), (1371109890,), (1371109896,), (1371109901,), (1371109904,), (1371109906,), (1371109907,), (1371109923,), (1371109934,), (1371109938,), (1371109947,), (1371109949,), (1371109950,), (1371109965,), (1371109970,), (1371109972,), (1371109973,), (1371109974,), (1371109975,), (1371109989,), (1371110002,), (1371110006,), (1371110008,), (1371110010,), (1371110012,), (1371110035,), (1371110038,), (1371110040,), (1371110042,), (1371110044,), (1371110045,), (1371110060,), (1371110073,), (1371110078,), (1371110080,), (1371110082,), (1371110083,), (1371110093,), (1371110097,), (1371110101,), (1371110105,), (1371110109,), (1371110110,), (1371110117,), (1371110124,), (1371110139,), (1371110143,), (1371110146,), (1371110147,), (1371110167,), (1371110170,), (1371110173,), (1371110177,), (1371110180,), (1371110182,), (1371110189,), (1371110192,), (1371110205,), (1371110208,), (1371110210,), (1371110212,), (1371110234,), (1371110238,), (1371110242,), (1371110246,), (1371110251,), (1371110254,), (1371110264,), (1371110267,), (1371110281,), (1371110284,), (1371110287,), (1371110289,), (1371110311,), (1371110314,), (1371110317,), (1371110320,), (1371110323,), (1371110325,), (1371110336,), (1371110353,), (1371110355,), (1371110359,), (1371110362,), (1371110364,), (1371110383,), (1371110388,), (1371110392,), (1371110396,), (1371110399,), (1371110401,), (1371110410,), (1371110418,), (1371110434,), (1371110442,), (1371110446,), (1371110448,), (1371110469,), (1371110471,), (1371110475,), (1371110481,), (1371110492,), (1371110494,), (1371110504,), (1371110509,), (1371110524,), (1371110527,), (1371110529,), (1371110530,), (1371110550,), (1371110554,), (1371110560,), (1371110563,), (1371110566,), (1371110568,), (1371110575,), (1371110588,), (1371110591,), (1371110596,), (1371110599,), (1371110601,), (1371110626,), (1371110631,), (1371110637,), (1371110642,), (1371110645,), (1371110647,), (1371110664,), (1371110673,), (1371110677,), (1371110679,), (1371110683,), (1371110685,), (1371110700,), (1371110705,), (1371110710,), (1371110715,), (1371110718,), (1371110720,), (1371110730,), (1371110735,), (1371110751,), (1371110763,), (1371110766,), (1371110771,), (1371110778,), (1371110782,), (1371110787,), (1371110789,), (1371110791,), (1371110793,), (1371110804,), (1371110811,), (1371110816,), (1371110821,), (1371110825,), (1371110828,), (1371110859,), (1371110863,), (1371110867,), (1371110872,), (1371110876,), (1371110877,), (1371110898,), (1371110903,), (1371110907,), (1371110911,), (1371110913,), (1371110915,), (1371110919,), (1371110929,), (1371110933,), (1371110936,), (1371110938,), (1371110939,), (1371110951,), (1371110956,), (1371110960,), (1371110965,), (1371110968,), (1371110969,), (1371110980,), (1371110985,), (1371110989,), (1371110992,), (1371110994,), (1371110996,), (1371111008,), (1371111012,), (1371111015,), (1371111019,), (1371111022,), (1371111024,), (1371111038,), (1371111044,), (1371111048,), (1371111055,), (1371111061,), (1371111062,), (1371111078,), (1371111083,), (1371111087,), (1371111089,), (1371111096,), (1371111099,), (1371111110,), (1371111112,), (1371111115,), (1371111118,), (1371111122,), (1371111126,), (1371111135,), (1371111138,), (1371111143,), (1371111148,), (1371111152,), (1371111155,), (1371111176,), (1371111179,), (1371111181,), (1371111184,), (1371111186,), (1371111190,), (1371111214,), (1371111218,), (1371111224,), (1371111229,), (1371111233,), (1371111236,), (1371111256,), (1371111261,), (1371111265,), (1371111269,), (1371111271,), (1371111272,), (1371111312,), (1371111316,), (1371111321,), (1371111331,), (1371111337,), (1371111342,), (1371111357,), (1371111364,), (1371111370,), (1371111381,), (1371111385,), (1371111386,), (1371111398,), (1371111403,), (1371111406,), (1371111408,), (1371111410,), (1371111411,), (1371111436,), (1371111441,), (1371111443,), (1371111446,), (1371111449,), (1371111450,), (1371111800,), (1371111869,), (1371111935,), (1371112005,), (1371112071,), (1371112141,), (1371113397,), (1371113435,), (1371113473,), (1371113512,), (1371113544,), (1371113576,), (1371113821,), (1371113891,), (1371113964,), (1371114061,), (1371114131,), (1371114262,), (1371114298,), (1371114422,), (1371114493,), (1371114565,), (1371114632,), (1371114816,), (1371114822,), (1371114855,), (1371114866,), (1371114894,), (1371114914,), (1371115019,), (1371115052,), (1371115065,), (1371115067,), (1371115072,), (1371115106,), (1371115167,), (1371115171,), (1371115176,), (1371115180,), (1371115183,), (1371115184,), (1371115208,), (1371115212,), (1371115216,), (1371115218,), (1371115221,), (1371115223,), (1371115244,), (1371115246,), (1371115248,), (1371115250,), (1371115252,), (1371115254,), (1371115289,), (1371115292,), (1371115294,), (1371115295,), (1371115296,), (1371115299,), (1371115313,), (1371115315,), (1371115318,), (1371115320,), (1371115324,), (1371115326,), (1371115343,), (1371115344,), (1371115345,), (1371115347,), (1371115348,), (1371115350,), (1371115371,), (1371115375,), (1371115378,), (1371115381,), (1371115384,), (1371115385,), (1371115410,), (1371115418,), (1371115422,), (1371115426,), (1371115428,), (1371115429,), (1371115459,), (1371115462,), (1371115465,), (1371115468,), (1371115470,), (1371115472,), (1371115491,), (1371115494,), (1371115496,), (1371115498,), (1371115500,), (1371115503,), (1371115525,), (1371115528,), (1371115531,), (1371115538,), (1371115540,), (1371115542,), (1371115559,), (1371115560,), (1371115562,), (1371115563,), (1371115565,), (1371115568,), (1371115585,), (1371115587,), (1371115597,), (1371115602,), (1371115607,), (1371115609,), (1371115616,), (1371115618,), (1371115620,), (1371115623,), (1371115624,), (1371115628,), (1371115643,), (1371115645,), (1371115648,), (1371115650,), (1371115652,), (1371115653,), (1371115661,), (1371115665,), (1371115667,), (1371115671,), (1371115674,), (1371115676,), (1371115704,), (1371115708,), (1371115712,), (1371115714,), (1371115716,), (1371115717,), (1371115727,), (1371115730,), (1371115734,), (1371115736,), (1371115738,), (1371115739,), (1371115747,), (1371115752,), (1371115755,), (1371115758,), (1371115761,), (1371115762,), (1371115772,), (1371115775,), (1371115778,), (1371115780,), (1371115783,), (1371115784,), (1371115799,), (1371115803,), (1371115806,), (1371115808,), (1371115811,), (1371115813,), (1371115819,), (1371115821,), (1371115823,), (1371115825,), (1371115828,), (1371115830,), (1371115846,), (1371115848,), (1371115851,), (1371115853,), (1371115856,), (1371115864,), (1371115878,), (1371115880,), (1371115883,), (1371115885,), (1371115888,), (1371115890,), (1371115901,), (1371115903,), (1371115906,), (1371115908,), (1371115910,), (1371115911,), (1371115925,), (1371115928,), (1371115931,), (1371115934,), (1371115938,), (1371115947,), (1371115958,), (1371115961,), (1371115964,), (1371115966,), (1371115970,), (1371115973,), (1371115989,), (1371115993,), (1371115996,), (1371116000,), (1371116003,), (1371116005,), (1371116017,), (1371116025,), (1371116029,), (1371116032,), (1371116034,), (1371116035,), (1371116053,), (1371116057,), (1371116061,), (1371116063,), (1371116065,), (1371116066,), (1371116077,), (1371116082,), (1371116087,), (1371116091,), (1371116093,), (1371116094,), (1371116101,), (1371116105,), (1371116109,), (1371116113,), (1371116115,), (1371116117,), (1371116129,), (1371116132,), (1371116134,), (1371116137,), (1371116140,), (1371116142,), (1371116160,), (1371116163,), (1371116165,), (1371116169,), (1371116172,), (1371116174,), (1371116193,), (1371116198,), (1371116200,), (1371116203,), (1371116205,), (1371116206,), (1371116212,), (1371116216,), (1371116220,), (1371116225,), (1371116228,), (1371116229,), (1371116240,), (1371116244,), (1371116248,), (1371116251,), (1371116253,), (1371116254,), (1371116286,), (1371116290,), (1371116293,), (1371116296,), (1371116298,), (1371116299,), (1371116305,), (1371116308,), (1371116319,), (1371116323,), (1371116325,), (1371116326,), (1371116342,), (1371116346,), (1371116349,), (1371116352,), (1371116354,), (1371116356,), (1371116366,), (1371116371,), (1371116373,), (1371116375,), (1371116377,), (1371116378,), (1371116405,), (1371116410,), (1371116414,), (1371116417,), (1371116419,), (1371116421,), (1371116437,), (1371116444,), (1371116450,), (1371116453,), (1371116455,), (1371116456,), (1371116464,), (1371116468,), (1371116471,), (1371116474,), (1371116476,), (1371116477,), (1371116487,), (1371116490,), (1371116493,), (1371116496,), (1371116498,), (1371116499,), (1371116520,), (1371116525,), (1371116528,), (1371116531,), (1371116533,), (1371116534,), (1371116551,), (1371116557,), (1371116560,), (1371116563,), (1371116565,), (1371116566,), (1371116596,), (1371116600,), (1371116603,), (1371116607,), (1371116609,), (1371116610,), (1371116624,), (1371116632,), (1371116634,), (1371116636,), (1371116638,), (1371116640,), (1371116653,), (1371116656,), (1371116660,), (1371116663,), (1371116665,), (1371116666,), (1371116677,), (1371116681,), (1371116683,), (1371116685,), (1371116688,), (1371116690,), (1371116697,), (1371116699,), (1371116702,), (1371116704,), (1371116706,), (1371116709,), (1371116717,), (1371116721,), (1371116724,), (1371116726,), (1371116729,), (1371116731,), (1371116747,), (1371116750,), (1371116753,), (1371116755,), (1371116758,), (1371116760,), (1371116835,), (1371116878,), (1371116915,), (1371116949,), (1371116983,), (1371117016,), (1371117526,), (1371117562,), (1371117600,), (1371117638,), (1371117676,), (1371117710,), (1371117976,), (1371118016,), (1371118052,), (1371118089,), (1371118127,), (1371118432,), (1371118475,), (1371118510,), (1371118545,), (1371118582,), (1371118633,), (1371119054,), (1371119090,), (1371119148,), (1371119219,), (1371119266,), (1371119318,), (1371119429,), (1371119433,), (1371119438,), (1371119442,), (1371119448,), (1371119481,), (1371119661,), (1371119687,), (1371119690,), (1371119724,), (1371119732,), (1371119734,), (1371119757,), (1371119759,), (1371119761,), (1371119765,), (1371119768,), (1371119771,), (1371119785,), (1371119789,), (1371119794,), (1371119798,), (1371119801,), (1371119802,), (1371119822,), (1371119829,), (1371119835,), (1371119839,), (1371119843,), (1371119844,), (1371119865,), (1371119869,), (1371119872,), (1371119875,), (1371119877,), (1371119880,), (1371119898,), (1371119900,), (1371119902,), (1371119904,), (1371119907,), (1371119910,), (1371119961,), (1371119965,), (1371119967,), (1371119970,), (1371119974,), (1371119975,), (1371119992,), (1371119996,), (1371119999,), (1371120001,), (1371120004,), (1371120006,), (1371120031,), (1371120034,), (1371120037,), (1371120040,), (1371120044,), (1371120047,), (1371120077,), (1371120080,), (1371120082,), (1371120084,), (1371120087,), (1371120089,), (1371120124,), (1371120128,), (1371120132,), (1371120133,), (1371120141,), (1371120142,), (1371120168,), (1371120173,), (1371120178,), (1371120181,), (1371120184,), (1371120187,), (1371120217,), (1371120222,), (1371120226,), (1371120229,), (1371120231,), (1371120233,), (1371120257,), (1371120261,), (1371120263,), (1371120265,), (1371120272,), (1371120276,), (1371120288,), (1371120291,), (1371120293,), (1371120296,), (1371120301,), (1371120304,), (1371120319,), (1371120325,), (1371120329,), (1371120334,), (1371120339,), (1371120341,), (1371120384,), (1371120390,), (1371120394,), (1371120397,), (1371120399,), (1371120400,), (1371120414,), (1371120418,), (1371120421,), (1371120425,), (1371120428,), (1371120430,), (1371120445,), (1371120451,), (1371120455,), (1371120459,), (1371120463,), (1371120464,), (1371120476,), (1371120487,), (1371120493,), (1371120498,), (1371120504,), (1371120505,), (1371120519,), (1371120523,), (1371120526,), (1371120530,), (1371120533,), (1371120537,), (1371120558,), (1371120562,), (1371120563,), (1371120565,), (1371120568,), (1371120570,), (1371120598,), (1371120600,), (1371120602,), (1371120605,), (1371120608,), (1371120610,), (1371120631,), (1371120633,), (1371120634,), (1371120636,), (1371120638,), (1371120641,), (1371120659,), (1371120664,), (1371120665,), (1371120667,), (1371120669,), (1371120671,), (1371120689,), (1371120693,), (1371120697,), (1371120701,), (1371120704,), (1371120706,), (1371120760,), (1371120762,), (1371120765,), (1371120767,), (1371120769,), (1371120771,), (1371120803,), (1371120807,), (1371120810,), (1371120811,), (1371120812,), (1371120813,), (1371120827,), (1371120832,), (1371120835,), (1371120845,), (1371120855,), (1371120859,), (1371120885,), (1371120895,), (1371120897,), (1371120899,), (1371120900,), (1371120901,), (1371120910,), (1371120913,), (1371120915,), (1371120917,), (1371120919,), (1371120922,), (1371120949,), (1371120958,), (1371120961,), (1371120964,), (1371120969,), (1371120972,), (1371120991,), (1371120996,), (1371120999,), (1371121002,), (1371121004,), (1371121006,), (1371121028,), (1371121032,), (1371121035,), (1371121037,), (1371121039,), (1371121041,), (1371121064,), (1371121070,), (1371121076,), (1371121081,), (1371121086,), (1371121087,), (1371121097,), (1371121101,), (1371121106,), (1371121109,), (1371121111,), (1371121112,), (1371121153,), (1371121158,), (1371121163,), (1371121166,), (1371121168,), (1371121169,), (1371121189,), (1371121192,), (1371121199,), (1371121202,), (1371121206,), (1371121208,), (1371121226,), (1371121232,), (1371121238,), (1371121241,), (1371121245,), (1371121247,), (1371121258,), (1371121261,), (1371121266,), (1371121269,), (1371121273,), (1371121276,), (1371121284,), (1371121286,), (1371121289,), (1371121292,), (1371121296,), (1371121300,), (1371121322,), (1371121325,), (1371121328,), (1371121331,), (1371121333,), (1371121335,), (1371121351,), (1371121355,), (1371121360,), (1371121364,), (1371121367,), (1371121369,), (1371121387,), (1371121392,), (1371121397,), (1371121402,), (1371121404,), (1371121405,), (1371121431,), (1371121437,), (1371121441,), (1371121444,), (1371121446,), (1371121447,), (1371121464,), (1371121471,), (1371121475,), (1371121479,), (1371121482,), (1371121484,), (1371121520,), (1371121525,), (1371121527,), (1371121529,), (1371121531,), (1371121533,), (1371121544,), (1371121549,), (1371121554,), (1371121558,), (1371121561,), (1371121562,), (1371121576,), (1371121580,), (1371121583,), (1371121586,), (1371121589,), (1371121593,), (1371121614,), (1371121621,), (1371121625,), (1371121630,), (1371121633,), (1371121634,), (1371121638,), (1371121641,), (1371121643,), (1371121646,), (1371121651,), (1371121654,), (1371121676,), (1371121680,), (1371121685,), (1371121689,), (1371121693,), (1371121696,), (1371121708,), (1371121711,), (1371121713,), (1371121716,), (1371121721,), (1371121725,), (1371121745,), (1371121751,), (1371121756,), (1371121759,), (1371121762,), (1371121764,), (1371122659,), (1371122729,), (1371122796,), (1371122863,), (1371122949,), (1371123040,), (1371123314,), (1371123426,), (1371123487,), (1371123552,), (1371123618,), (1371123816,), (1371123849,), (1371123882,), (1371123915,), (1371123948,), (1371123981,), (1371124176,), (1371124229,), (1371124263,), (1371124293,), (1371124324,), (1371124344,), (1371124452,), (1371124487,), (1371124520,), (1371124552,), (1371124586,), (1371124616,), (1371124724,), (1371124729,), (1371124761,), (1371124782,), (1371124786,), (1371124788,), (1371124819,), (1371124822,), (1371124826,), (1371124828,), (1371124830,), (1371124834,), (1371124865,), (1371124870,), (1371124874,), (1371124877,), (1371124880,), (1371124882,), (1371124902,), (1371124909,), (1371124915,), (1371124918,), (1371124921,), (1371124923,), (1371124933,), (1371124939,), (1371124944,), (1371124950,), (1371124967,), (1371124970,), (1371124995,), (1371124999,), (1371125003,), (1371125008,), (1371125012,), (1371125016,), (1371125037,), (1371125043,), (1371125048,), (1371125050,), (1371125053,), (1371125054,), (1371125115,), (1371125122,), (1371125127,), (1371125131,), (1371125134,), (1371125136,), (1371125152,), (1371125158,), (1371125163,), (1371125170,), (1371125171,), (1371125173,), (1371125188,), (1371125194,), (1371125200,), (1371125203,), (1371125207,), (1371125208,), (1371125226,), (1371125229,), (1371125233,), (1371125236,), (1371125240,), (1371125243,), (1371125267,), (1371125272,), (1371125277,), (1371125280,), (1371125285,), (1371125289,), (1371125310,), (1371125321,), (1371125331,), (1371125340,), (1371125345,), (1371125347,), (1371125361,), (1371125365,), (1371125369,), (1371125371,), (1371125374,), (1371125376,), (1371125402,), (1371125417,), (1371125429,), (1371125432,), (1371125435,), (1371125437,), (1371125466,), (1371125471,), (1371125476,), (1371125480,), (1371125485,), (1371125489,), (1371125521,), (1371125546,), (1371125554,), (1371125559,), (1371125562,), (1371125564,), (1371125619,), (1371125624,), (1371125630,), (1371125636,), (1371125640,), (1371125643,), (1371125667,), (1371125677,), (1371125682,), (1371125685,), (1371125688,), (1371125690,), (1371125724,), (1371125729,), (1371125736,), (1371125741,), (1371125744,), (1371125747,), (1371125777,), (1371125788,), (1371125795,), (1371125798,), (1371125801,), (1371125804,), (1371125842,), (1371125849,), (1371125854,), (1371125857,), (1371125859,), (1371125860,), (1371125872,), (1371125878,), (1371125884,), (1371125887,), (1371125891,), (1371125892,), (1371125925,), (1371125929,), (1371125933,), (1371125937,), (1371125940,), (1371125943,), (1371125974,), (1371125984,), (1371125989,), (1371125994,), (1371125997,), (1371125999,), (1371126027,), (1371126034,), (1371126040,), (1371126046,), (1371126050,), (1371126052,), (1371126066,), (1371126080,), (1371126084,), (1371126088,), (1371126094,), (1371126098,), (1371126171,), (1371126176,), (1371126180,), (1371126184,), (1371126187,), (1371126189,), (1371126208,), (1371126216,), (1371126221,), (1371126225,), (1371126229,), (1371126231,), (1371126251,), (1371126255,), (1371126259,), (1371126262,), (1371126266,), (1371126268,), (1371126283,), (1371126289,), (1371126296,), (1371126299,), (1371126302,), (1371126304,), (1371126328,), (1371126332,), (1371126335,), (1371126340,), (1371126344,), (1371126346,), (1371126366,), (1371126372,), (1371126377,), (1371126380,), (1371126384,), (1371126388,), (1371126406,), (1371126410,), (1371126416,), (1371126420,), (1371126424,), (1371126428,), (1371126455,), (1371126460,), (1371126463,), (1371126469,), (1371126473,), (1371126475,), (1371126508,), (1371126514,), (1371126520,), (1371126523,), (1371126526,), (1371126528,), (1371126552,), (1371126556,), (1371126561,), (1371126565,), (1371126569,), (1371126571,), (1371126636,), (1371126644,), (1371126649,), (1371126653,), (1371126656,), (1371126658,), (1371126676,), (1371126682,), (1371126688,), (1371126692,), (1371126697,), (1371126699,), (1371126718,), (1371126723,), (1371126727,), (1371126731,), (1371126735,), (1371126739,), (1371126761,), (1371126767,), (1371126773,), (1371126776,), (1371126779,), (1371126781,), (1371126798,), (1371126802,), (1371126806,), (1371126809,), (1371126814,), (1371126818,), (1371126842,), (1371126848,), (1371126861,), (1371126863,), (1371126865,), (1371126867,), (1371126886,), (1371126891,), (1371126898,), (1371126902,), (1371126905,), (1371126907,), (1371126930,), (1371126938,), (1371126945,), (1371126949,), (1371126953,), (1371126954,), (1371126972,), (1371126976,), (1371126981,), (1371126986,), (1371126989,), (1371126994,), (1371127011,), (1371127016,), (1371127021,), (1371127024,), (1371127029,), (1371127031,), (1371127057,), (1371127061,), (1371127065,), (1371127068,), (1371127072,), (1371127075,), (1371127097,), (1371127103,), (1371127107,), (1371127109,), (1371127111,), (1371127114,), (1371127135,), (1371127140,), (1371127144,), (1371127147,), (1371127152,), (1371127155,), (1371127167,), (1371127178,), (1371127182,), (1371127187,), (1371127192,), (1371127196,), (1371127217,), (1371127220,), (1371127223,), (1371127229,), (1371127234,), (1371127238,), (1371127248,), (1371127253,), (1371127256,), (1371127260,), (1371127264,), (1371127267,), (1371127285,), (1371127290,), (1371127295,), (1371127300,), (1371127319,), (1371127352,), (1371127554,), (1371127588,), (1371127619,), (1371127657,), (1371127690,), (1371127722,), (1371128590,), (1371128657,), (1371128738,), (1371128799,), (1371128866,), (1371128938,), (1371129132,), (1371129168,), (1371129212,), (1371129248,), (1371129284,), (1371129576,), (1371129597,), (1371129603,), (1371129630,), (1371129636,), (1371129640,), (1371129659,), (1371129664,), (1371129668,), (1371129671,), (1371129674,), (1371129678,), (1371129707,), (1371129711,), (1371129715,), (1371129720,), (1371129724,), (1371129728,), (1371129742,), (1371129746,), (1371129750,), (1371129754,), (1371129758,), (1371129762,), (1371129784,), (1371129792,), (1371129797,), (1371129800,), (1371129805,), (1371129808,), (1371129824,), (1371129828,), (1371129830,), (1371129832,), (1371129835,), (1371129838,), (1371129859,), (1371129862,), (1371129864,), (1371129866,), (1371129869,), (1371129870,), (1371129885,), (1371129889,), (1371129892,), (1371129895,), (1371129898,), (1371129902,), (1371129922,), (1371129927,), (1371129933,), (1371129936,), (1371129938,), (1371129940,), (1371129962,), (1371129967,), (1371129972,), (1371129977,), (1371129982,), (1371129984,), (1371130007,), (1371130013,), (1371130019,), (1371130022,), (1371130025,), (1371130028,), (1371130042,), (1371130049,), (1371130055,), (1371130059,), (1371130063,), (1371130065,), (1371130080,), (1371130085,), (1371130091,), (1371130094,), (1371130095,), (1371130096,), (1371130105,), (1371130110,), (1371130115,), (1371130119,), (1371130124,), (1371130126,), (1371130140,), (1371130145,), (1371130148,), (1371130151,), (1371130153,), (1371130155,), (1371130176,), (1371130180,), (1371130185,), (1371130188,), (1371130191,), (1371130193,), (1371130209,), (1371130216,), (1371130223,), (1371130228,), (1371130233,), (1371130235,), (1371130245,), (1371130248,), (1371130253,), (1371130258,), (1371130262,), (1371130265,), (1371130279,), (1371130285,), (1371130291,), (1371130293,), (1371130295,), (1371130296,), (1371130311,), (1371130318,), (1371130323,), (1371130326,), (1371130331,), (1371130332,), (1371130348,), (1371130353,), (1371130357,), (1371130361,), (1371130371,), (1371130373,), (1371130386,), (1371130394,), (1371130399,), (1371130403,), (1371130406,), (1371130408,), (1371130422,), (1371130429,), (1371130435,), (1371130439,), (1371130444,), (1371130446,), (1371130462,), (1371130465,), (1371130468,), (1371130473,), (1371130478,), (1371130482,), (1371130495,), (1371130500,), (1371130505,), (1371130508,), (1371130513,), (1371130515,), (1371130537,), (1371130539,), (1371130541,), (1371130545,), (1371130549,), (1371130552,), (1371130565,), (1371130570,), (1371130573,), (1371130576,), (1371130578,), (1371130579,), (1371130596,), (1371130602,), (1371130606,), (1371130611,), (1371130616,), (1371130620,), (1371130631,), (1371130643,), (1371130652,), (1371130655,), (1371130658,), (1371130659,), (1371130690,), (1371130696,), (1371130700,), (1371130710,), (1371130718,), (1371130719,), (1371130739,), (1371130751,), (1371130753,), (1371130757,), (1371130760,), (1371130763,), (1371130775,), (1371130778,), (1371130783,), (1371130786,), (1371130788,), (1371130791,), (1371130802,), (1371130814,), (1371130819,), (1371130823,), (1371130827,), (1371130828,), (1371130843,), (1371130849,), (1371130851,), (1371130853,), (1371130856,), (1371130858,), (1371130874,), (1371130878,), (1371130882,), (1371130886,), (1371130891,), (1371130893,), (1371130916,), (1371130921,), (1371130925,), (1371130927,), (1371130930,), (1371130932,), (1371130950,), (1371130954,), (1371130958,), (1371130962,), (1371130965,), (1371130966,), (1371130973,), (1371130977,), (1371130981,), (1371130985,), (1371130991,), (1371130994,), (1371131007,), (1371131011,), (1371131014,), (1371131018,), (1371131022,), (1371131025,), (1371131050,), (1371131052,), (1371131054,), (1371131058,), (1371131061,), (1371131064,), (1371131084,), (1371131088,), (1371131094,), (1371131096,), (1371131098,), (1371131105,), (1371131126,), (1371131131,), (1371131137,), (1371131141,), (1371131146,), (1371131147,), (1371131173,), (1371131179,), (1371131183,), (1371131186,), (1371131190,), (1371131192,), (1371131208,), (1371131212,), (1371131216,), (1371131218,), (1371131222,), (1371131224,), (1371131248,), (1371131252,), (1371131266,), (1371131275,), (1371131280,), (1371131283,), (1371131294,), (1371131296,), (1371131299,), (1371131302,), (1371131307,), (1371131309,), (1371131334,), (1371131342,), (1371131345,), (1371131348,), (1371131351,), (1371131353,), (1371131372,), (1371131376,), (1371131381,), (1371131384,), (1371131387,), (1371131389,), (1371131410,), (1371131414,), (1371131418,), (1371131421,), (1371131423,), (1371131425,), (1371131456,), (1371131459,), (1371131462,), (1371131465,), (1371131467,), (1371131470,), (1371131492,), (1371131497,), (1371131499,), (1371131500,), (1371131501,), (1371131502,), (1371131518,), (1371131522,), (1371131525,), (1371131527,), (1371131530,), (1371131531,), (1371131545,), (1371131559,), (1371131567,), (1371131569,), (1371131570,), (1371131572,), (1371131598,), (1371131601,), (1371131604,), (1371131607,), (1371131611,), (1371131612,), (1371131628,), (1371131632,), (1371131633,), (1371131634,), (1371131636,), (1371131638,), (1371131663,), (1371131668,), (1371131670,), (1371131672,), (1371131705,), (1371131736,), (1371131946,), (1371131985,), (1371132026,), (1371132060,), (1371132094,), (1371132126,), (1371132798,), (1371132805,), (1371132829,), (1371132863,), (1371132898,), (1371132929,), (1371133276,), (1371133328,), (1371133371,), (1371133409,), (1371133471,), (1371133702,), (1371133735,), (1371133773,), (1371133805,), (1371133835,), (1371133862,), (1371133882,), (1371133886,), (1371133888,), (1371133894,), (1371133933,), (1371133962,), (1371134141,), (1371134144,), (1371134146,), (1371134153,), (1371134187,), (1371134219,), (1371134305,), (1371134309,), (1371134312,), (1371134313,), (1371134315,), (1371134317,), (1371134335,), (1371134340,), (1371134343,), (1371134346,), (1371134351,), (1371134353,), (1371134368,), (1371134370,), (1371134373,), (1371134376,), (1371134380,), (1371134382,), (1371134404,), (1371134407,), (1371134411,), (1371134415,), (1371134418,), (1371134421,), (1371134453,), (1371134457,), (1371134462,), (1371134466,), (1371134470,), (1371134476,), (1371134496,), (1371134505,), (1371134512,), (1371134515,), (1371134521,), (1371134523,), (1371134554,), (1371134560,), (1371134564,), (1371134567,), (1371134572,), (1371134574,), (1371134598,), (1371134609,), (1371134615,), (1371134618,), (1371134621,), (1371134623,), (1371134654,), (1371134658,), (1371134661,), (1371134663,), (1371134667,), (1371134671,), (1371134684,), (1371134690,), (1371134693,), (1371134698,), (1371134703,), (1371134706,), (1371134722,), (1371134725,), (1371134729,), (1371134732,), (1371134739,), (1371134743,), (1371134757,), (1371134766,), (1371134770,), (1371134776,), (1371134788,), (1371134791,), (1371134823,), (1371134826,), (1371134828,), (1371134831,), (1371134835,), (1371134837,), (1371134852,), (1371134860,), (1371134871,), (1371134875,), (1371134879,), (1371134882,), (1371134910,), (1371134917,), (1371134923,), (1371134928,), (1371134934,), (1371134937,), (1371134956,), (1371134964,), (1371134968,), (1371134972,), (1371134975,), (1371134977,), (1371134999,), (1371135003,), (1371135008,), (1371135012,), (1371135015,), (1371135019,), (1371135037,), (1371135041,), (1371135045,), (1371135048,), (1371135052,), (1371135056,), (1371135088,), (1371135092,), (1371135096,), (1371135099,), (1371135102,), (1371135104,), (1371135123,), (1371135128,), (1371135133,), (1371135136,), (1371135141,), (1371135143,), (1371135168,), (1371135172,), (1371135176,), (1371135180,), (1371135183,), (1371135188,), (1371135215,), (1371135226,), (1371135233,), (1371135237,), (1371135240,), (1371135241,), (1371135258,), (1371135264,), (1371135270,), (1371135274,), (1371135278,), (1371135281,), (1371135293,), (1371135307,), (1371135311,), (1371135315,), (1371135318,), (1371135320,), (1371135342,), (1371135348,), (1371135353,), (1371135360,), (1371135365,), (1371135368,), (1371135376,), (1371135382,), (1371135387,), (1371135391,), (1371135395,), (1371135398,), (1371135422,), (1371135428,), (1371135433,), (1371135438,), (1371135445,), (1371135449,), (1371135467,), (1371135475,), (1371135482,), (1371135485,), (1371135489,), (1371135492,), (1371135523,), (1371135535,), (1371135542,), (1371135545,), (1371135550,), (1371135558,), (1371135575,), (1371135578,), (1371135582,), (1371135588,), (1371135592,), (1371135595,), (1371135616,), (1371135620,), (1371135623,), (1371135629,), (1371135634,), (1371135638,), (1371135657,), (1371135667,), (1371135671,), (1371135673,), (1371135677,), (1371135680,), (1371135697,), (1371135701,), (1371135704,), (1371135708,), (1371135712,), (1371135716,), (1371135734,), (1371135740,), (1371135752,), (1371135755,), (1371135757,), (1371135758,), (1371135788,), (1371135793,), (1371135797,), (1371135799,), (1371135800,), (1371135801,), (1371135812,), (1371135817,), (1371135821,), (1371135828,), (1371135832,), (1371135836,), (1371135864,), (1371135868,), (1371135874,), (1371135877,), (1371135880,), (1371135882,), (1371135899,), (1371135907,), (1371135912,), (1371135914,), (1371135916,), (1371135917,), (1371135944,), (1371135950,), (1371135954,), (1371135958,), (1371135961,), (1371135962,), (1371135979,), (1371135989,), (1371135999,), (1371136005,), (1371136007,), (1371136008,), (1371136030,), (1371136034,), (1371136035,), (1371136036,), (1371136039,), (1371136040,), (1371136059,), (1371136065,), (1371136077,), (1371136084,), (1371136088,), (1371136090,), (1371136106,), (1371136108,), (1371136109,), (1371136111,), (1371136115,), (1371136118,), (1371136141,), (1371136144,), (1371136148,), (1371136150,), (1371136152,), (1371136153,), (1371136165,), (1371136173,), (1371136178,), (1371136181,), (1371136186,), (1371136188,), (1371136206,), (1371136217,), (1371136226,), (1371136229,), (1371136232,), (1371136236,), (1371136271,), (1371136276,), (1371136279,), (1371136281,), (1371136285,), (1371136288,), (1371136303,), (1371136309,), (1371136317,), (1371136319,), (1371136322,), (1371136323,), (1371136344,), (1371136350,), (1371136357,), (1371136358,), (1371136361,), (1371136363,), (1371136385,), (1371136391,), (1371136393,), (1371136395,), (1371136397,), (1371136398,), (1371136420,), (1371136423,), (1371136426,), (1371136429,), (1371136434,), (1371136436,), (1371136448,), (1371136453,), (1371136456,), (1371136458,), (1371136460,), (1371136462,), (1371136479,), (1371136484,), (1371136489,), (1371136493,), (1371136496,), (1371136499,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08072025': {'nb_upload': 72, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24714691]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371136499, 1371136496, 1371136493, 1371136489, 1371136484, 1371136479, 1371136462, 1371136460, 1371136458, 1371136456, 1371136453, 1371136448] map_info['map_portfolio_photo'] : {24714691: [1371136499, 1371136496, 1371136493, 1371136489, 1371136484, 1371136479, 1371136462, 1371136460, 1371136458, 1371136456, 1371136453, 1371136448, 1371136436, 1371136434, 1371136429, 1371136426, 1371136423, 1371136420, 1371136398, 1371136397, 1371136395, 1371136393, 1371136391, 1371136385, 1371136363, 1371136361, 1371136358, 1371136357, 1371136350, 1371136344, 1371136323, 1371136322, 1371136319, 1371136317, 1371136309, 1371136303, 1371136288, 1371136285, 1371136281, 1371136279, 1371136276, 1371136271, 1371136236, 1371136232, 1371136229, 1371136226, 1371136217, 1371136206, 1371136188, 1371136186, 1371136181, 1371136178, 1371136173, 1371136165, 1371136153, 1371136152, 1371136150, 1371136148, 1371136144, 1371136141, 1371136118, 1371136115, 1371136111, 1371136109, 1371136108, 1371136106, 1371136090, 1371136088, 1371136084, 1371136077, 1371136065, 1371136059]} final : True mtd_id 4302 list_pids : [1371136499, 1371136496, 1371136493, 1371136489, 1371136484, 1371136479, 1371136462, 1371136460, 1371136458, 1371136456, 1371136453, 1371136448] Looping around the photos to save general results len do output : 1 /24714691Didn'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, '3249475') ('4302', '24714691', '1371136499', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136496', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136493', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136489', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136484', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136479', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136462', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136460', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136458', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136456', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136453', None, None, None, None, None, '3249475') ('4302', None, None, None, None, None, None, None, '3249475') ('4302', '24714691', '1371136448', None, None, None, None, None, '3249475') 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', None, '24714691', 'None', None, None, None, None, '3249475'), ('4302', '24714691', '1371136499', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136496', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136493', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136489', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136484', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136479', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136462', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136460', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136458', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136456', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136453', None, None, None, None, None, '3249475'), ('4302', '24714691', '1371136448', None, None, None, None, None, '3249475')] time used for this insertion : 0.05986285209655762 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.079735517501831 time spend to save output : 0.06010246276855469 total time spend for step 5 : 2.1398379802703857 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 (3249475) 2.16user 2.45system 0:14.25elapsed 32%CPU (0avgtext+0avgdata 160920maxresident)k 80inputs+13608outputs (5major+64237minor)pagefaults 0swaps