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 : 1240233 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 (3734138) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3734138) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26937443 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3734138'] with mtr_portfolio_ids : ['26937443'] and first list_photo_ids : [] new path : /proc/1240233/ Name: python3 Umask: 0002 State: R (running) Tgid: 1240233 Ngid: 0 Pid: 1240233 PPid: 1240232 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1240233 NSpid: 1240233 NSpgid: 1237748 NSsid: 1237748 VmPeak: 1107236 kB VmSize: 1107236 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97688 kB VmRSS: 97688 kB RssAnon: 60164 kB RssFile: 37524 kB RssShmem: 0 kB VmData: 865988 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 50 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1240233', 'Ngid': '0', 'Pid': '1240233', 'PPid': '1240232', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1240233', 'NSpid': '1240233', 'NSpgid': '1237748', 'NSsid': '1237748', 'VmPeak': '1107236 kB', 'VmSize': '1107236 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97688 kB', 'VmRSS': '97688 kB', 'RssAnon': '60164 kB', 'RssFile': '37524 kB', 'RssShmem': '0 kB', 'VmData': '865988 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '50', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '1240233', '1107236', '0', '1107236', '865988', '97688', b'', 'marlene', '3734138') 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 (26937443) 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 (3734138 ) ) 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 (26937443) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1384114722, 'portfolio_id': 26937443}, {'photo_id': 1384114627, 'portfolio_id': 26937443}, {'photo_id': 1384114594, 'portfolio_id': 26937443}, {'photo_id': 1384114583, 'portfolio_id': 26937443}, {'photo_id': 1384114282, 'portfolio_id': 26937443}, {'photo_id': 1384114237, 'portfolio_id': 26937443}, {'photo_id': 1384114098, 'portfolio_id': 26937443}, {'photo_id': 1384114095, 'portfolio_id': 26937443}, {'photo_id': 1384114093, 'portfolio_id': 26937443}, {'photo_id': 1384114090, 'portfolio_id': 26937443}, {'photo_id': 1384113959, 'portfolio_id': 26937443}, {'photo_id': 1384113958, 'portfolio_id': 26937443}, {'photo_id': 1384113957, 'portfolio_id': 26937443}, {'photo_id': 1384113759, 'portfolio_id': 26937443}, {'photo_id': 1384113756, 'portfolio_id': 26937443}, {'photo_id': 1384113753, 'portfolio_id': 26937443}, {'photo_id': 1384113751, 'portfolio_id': 26937443}, {'photo_id': 1384113750, 'portfolio_id': 26937443}, {'photo_id': 1384113749, 'portfolio_id': 26937443}, {'photo_id': 1384113509, 'portfolio_id': 26937443}, {'photo_id': 1384113495, 'portfolio_id': 26937443}, {'photo_id': 1384113493, 'portfolio_id': 26937443}, {'photo_id': 1384113487, 'portfolio_id': 26937443}, {'photo_id': 1384113466, 'portfolio_id': 26937443}, {'photo_id': 1384113187, 'portfolio_id': 26937443}, {'photo_id': 1384113158, 'portfolio_id': 26937443}, {'photo_id': 1384113111, 'portfolio_id': 26937443}, {'photo_id': 1384113051, 'portfolio_id': 26937443}, {'photo_id': 1384112606, 'portfolio_id': 26937443}, {'photo_id': 1384112571, 'portfolio_id': 26937443}, {'photo_id': 1384112532, 'portfolio_id': 26937443}, {'photo_id': 1384112475, 'portfolio_id': 26937443}, {'photo_id': 1384112408, 'portfolio_id': 26937443}, {'photo_id': 1384111960, 'portfolio_id': 26937443}, {'photo_id': 1384111956, 'portfolio_id': 26937443}, {'photo_id': 1384111940, 'portfolio_id': 26937443}, {'photo_id': 1384111895, 'portfolio_id': 26937443}, {'photo_id': 1384111782, 'portfolio_id': 26937443}, {'photo_id': 1384111039, 'portfolio_id': 26937443}, {'photo_id': 1384110960, 'portfolio_id': 26937443}, {'photo_id': 1384110868, 'portfolio_id': 26937443}, {'photo_id': 1384110027, 'portfolio_id': 26937443}, {'photo_id': 1384110022, 'portfolio_id': 26937443}, {'photo_id': 1384109695, 'portfolio_id': 26937443}, {'photo_id': 1384109643, 'portfolio_id': 26937443}, {'photo_id': 1384109599, 'portfolio_id': 26937443}, {'photo_id': 1384108881, 'portfolio_id': 26937443}, {'photo_id': 1384108851, 'portfolio_id': 26937443}, {'photo_id': 1384108406, 'portfolio_id': 26937443}, {'photo_id': 1384108328, 'portfolio_id': 26937443}, {'photo_id': 1384108262, 'portfolio_id': 26937443}] map_portfolio_id_photo_id: {26937443: [1384114722, 1384114627, 1384114594, 1384114583, 1384114282, 1384114237, 1384114098, 1384114095, 1384114093, 1384114090, 1384113959, 1384113958, 1384113957, 1384113759, 1384113756, 1384113753, 1384113751, 1384113750, 1384113749, 1384113509, 1384113495, 1384113493, 1384113487, 1384113466, 1384113187, 1384113158, 1384113111, 1384113051, 1384112606, 1384112571, 1384112532, 1384112475, 1384112408, 1384111960, 1384111956, 1384111940, 1384111895, 1384111782, 1384111039, 1384110960, 1384110868, 1384110027, 1384110022, 1384109695, 1384109643, 1384109599, 1384108881, 1384108851, 1384108406, 1384108328, 1384108262]} ##### 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.01610875129699707 #### 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 Wed Sep 17 10:46: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 (26937443) 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 : 26937443 get user id for portfolio 26937443 get sub ptf for main ptf 26937443, type 3726 and hashtags ['papier', 'plastique', 'environnement', 'Teint_Dans_La_Masse', 'Carton_brun', 'Carton_gris', 'autre_refus', 'flou', 'metal', 'kraft', 'mal_croppe', 'cartonnette'] 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`=26937443 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','environnement','Teint_Dans_La_Masse','Carton_brun','Carton_gris','autre_refus','flou','metal','kraft','mal_croppe','cartonnette')) 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`=26937443 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','environnement','Teint_Dans_La_Masse','Carton_brun','Carton_gris','autre_refus','flou','metal','kraft','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 26937443, 'sub_port_id': 26937454, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167600, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 32, 59)}, 'Carton_brun': {'main_port_id': 26937443, 'sub_port_id': 26937455, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167601, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 32, 59)}, 'autre_refus': {'main_port_id': 26937443, 'sub_port_id': 26937456, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167602, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 32, 59)}, 'mal_croppe': {'main_port_id': 26937443, 'sub_port_id': 26937457, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167603, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 32, 59)}, 'plastique': {'main_port_id': 26937443, 'sub_port_id': 26937458, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167604, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 32, 59)}, 'metal': {'main_port_id': 26937443, 'sub_port_id': 26937459, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167605, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 32, 59)}, 'papier': {'main_port_id': 26937443, 'sub_port_id': 26937460, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167606, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 32, 59)}, 'flou': {'main_port_id': 26937443, 'sub_port_id': 26937461, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167607, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 32, 59)}, 'kraft': {'main_port_id': 26937443, 'sub_port_id': 26937462, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167608, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 32, 59)}, 'environnement': {'main_port_id': 26937443, 'sub_port_id': 26937463, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167609, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 32, 59)}, 'Carton_gris': {'main_port_id': 26937443, 'sub_port_id': 26937464, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167610, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 32, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 26937443, 'sub_port_id': 26937465, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167611, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 32, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26937454 , 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=26937443 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 (26937454) result : ((1384112138,), (1384113279,), (1384113784,), (1384114193,), (1384114713,), (1384114714,), (1384114715,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26937443) result : ((1384108262,), (1384108328,), (1384108406,), (1384108851,), (1384108881,), (1384109599,), (1384109643,), (1384109695,), (1384110022,), (1384110027,), (1384110868,), (1384110960,), (1384111039,), (1384111782,), (1384111895,), (1384111940,), (1384111956,), (1384111960,), (1384112408,), (1384112475,), (1384112532,), (1384112571,), (1384112606,), (1384113051,), (1384113111,), (1384113158,), (1384113187,), (1384113466,), (1384113487,), (1384113493,), (1384113495,), (1384113509,), (1384113749,), (1384113750,), (1384113751,), (1384113753,), (1384113756,), (1384113759,), (1384113957,), (1384113958,), (1384113959,), (1384114090,), (1384114093,), (1384114095,), (1384114098,), (1384114237,), (1384114282,), (1384114583,), (1384114594,), (1384114627,), (1384114722,)) 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 26937455 , 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=26937443 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 (26937455) result : ((1384112143,), (1384112306,), (1384112310,), (1384112314,), (1384112318,), (1384113289,), (1384113291,), (1384113442,), (1384113444,), (1384113806,), (1384113812,), (1384114716,), (1384114717,), (1384114718,), (1384114719,), (1384114720,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26937443) result : ((1384108262,), (1384108328,), (1384108406,), (1384108851,), (1384108881,), (1384109599,), (1384109643,), (1384109695,), (1384110022,), (1384110027,), (1384110868,), (1384110960,), (1384111039,), (1384111782,), (1384111895,), (1384111940,), (1384111956,), (1384111960,), (1384112408,), (1384112475,), (1384112532,), (1384112571,), (1384112606,), (1384113051,), (1384113111,), (1384113158,), (1384113187,), (1384113466,), (1384113487,), (1384113493,), (1384113495,), (1384113509,), (1384113749,), (1384113750,), (1384113751,), (1384113753,), (1384113756,), (1384113759,), (1384113957,), (1384113958,), (1384113959,), (1384114090,), (1384114093,), (1384114095,), (1384114098,), (1384114237,), (1384114282,), (1384114583,), (1384114594,), (1384114627,), (1384114722,)) 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 26937456 , 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=26937443 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 (26937456) result : ((1384113764,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26937443) result : ((1384108262,), (1384108328,), (1384108406,), (1384108851,), (1384108881,), (1384109599,), (1384109643,), (1384109695,), (1384110022,), (1384110027,), (1384110868,), (1384110960,), (1384111039,), (1384111782,), (1384111895,), (1384111940,), (1384111956,), (1384111960,), (1384112408,), (1384112475,), (1384112532,), (1384112571,), (1384112606,), (1384113051,), (1384113111,), (1384113158,), (1384113187,), (1384113466,), (1384113487,), (1384113493,), (1384113495,), (1384113509,), (1384113749,), (1384113750,), (1384113751,), (1384113753,), (1384113756,), (1384113759,), (1384113957,), (1384113958,), (1384113959,), (1384114090,), (1384114093,), (1384114095,), (1384114098,), (1384114237,), (1384114282,), (1384114583,), (1384114594,), (1384114627,), (1384114722,)) 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 26937457 , 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=26937443 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 (26937457) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26937443) result : ((1384108262,), (1384108328,), (1384108406,), (1384108851,), (1384108881,), (1384109599,), (1384109643,), (1384109695,), (1384110022,), (1384110027,), (1384110868,), (1384110960,), (1384111039,), (1384111782,), (1384111895,), (1384111940,), (1384111956,), (1384111960,), (1384112408,), (1384112475,), (1384112532,), (1384112571,), (1384112606,), (1384113051,), (1384113111,), (1384113158,), (1384113187,), (1384113466,), (1384113487,), (1384113493,), (1384113495,), (1384113509,), (1384113749,), (1384113750,), (1384113751,), (1384113753,), (1384113756,), (1384113759,), (1384113957,), (1384113958,), (1384113959,), (1384114090,), (1384114093,), (1384114095,), (1384114098,), (1384114237,), (1384114282,), (1384114583,), (1384114594,), (1384114627,), (1384114722,)) 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 26937458 , 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=26937443 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 (26937458) result : ((1384114206,), (1384114208,), (1384114210,), (1384114213,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26937443) result : ((1384108262,), (1384108328,), (1384108406,), (1384108851,), (1384108881,), (1384109599,), (1384109643,), (1384109695,), (1384110022,), (1384110027,), (1384110868,), (1384110960,), (1384111039,), (1384111782,), (1384111895,), (1384111940,), (1384111956,), (1384111960,), (1384112408,), (1384112475,), (1384112532,), (1384112571,), (1384112606,), (1384113051,), (1384113111,), (1384113158,), (1384113187,), (1384113466,), (1384113487,), (1384113493,), (1384113495,), (1384113509,), (1384113749,), (1384113750,), (1384113751,), (1384113753,), (1384113756,), (1384113759,), (1384113957,), (1384113958,), (1384113959,), (1384114090,), (1384114093,), (1384114095,), (1384114098,), (1384114237,), (1384114282,), (1384114583,), (1384114594,), (1384114627,), (1384114722,)) 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 26937459 , 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=26937443 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 (26937459) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26937443) result : ((1384108262,), (1384108328,), (1384108406,), (1384108851,), (1384108881,), (1384109599,), (1384109643,), (1384109695,), (1384110022,), (1384110027,), (1384110868,), (1384110960,), (1384111039,), (1384111782,), (1384111895,), (1384111940,), (1384111956,), (1384111960,), (1384112408,), (1384112475,), (1384112532,), (1384112571,), (1384112606,), (1384113051,), (1384113111,), (1384113158,), (1384113187,), (1384113466,), (1384113487,), (1384113493,), (1384113495,), (1384113509,), (1384113749,), (1384113750,), (1384113751,), (1384113753,), (1384113756,), (1384113759,), (1384113957,), (1384113958,), (1384113959,), (1384114090,), (1384114093,), (1384114095,), (1384114098,), (1384114237,), (1384114282,), (1384114583,), (1384114594,), (1384114627,), (1384114722,)) 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 26937460 , 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=26937443 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 (26937460) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26937443) result : ((1384108262,), (1384108328,), (1384108406,), (1384108851,), (1384108881,), (1384109599,), (1384109643,), (1384109695,), (1384110022,), (1384110027,), (1384110868,), (1384110960,), (1384111039,), (1384111782,), (1384111895,), (1384111940,), (1384111956,), (1384111960,), (1384112408,), (1384112475,), (1384112532,), (1384112571,), (1384112606,), (1384113051,), (1384113111,), (1384113158,), (1384113187,), (1384113466,), (1384113487,), (1384113493,), (1384113495,), (1384113509,), (1384113749,), (1384113750,), (1384113751,), (1384113753,), (1384113756,), (1384113759,), (1384113957,), (1384113958,), (1384113959,), (1384114090,), (1384114093,), (1384114095,), (1384114098,), (1384114237,), (1384114282,), (1384114583,), (1384114594,), (1384114627,), (1384114722,)) 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 26937461 , 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=26937443 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 (26937461) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26937443) result : ((1384108262,), (1384108328,), (1384108406,), (1384108851,), (1384108881,), (1384109599,), (1384109643,), (1384109695,), (1384110022,), (1384110027,), (1384110868,), (1384110960,), (1384111039,), (1384111782,), (1384111895,), (1384111940,), (1384111956,), (1384111960,), (1384112408,), (1384112475,), (1384112532,), (1384112571,), (1384112606,), (1384113051,), (1384113111,), (1384113158,), (1384113187,), (1384113466,), (1384113487,), (1384113493,), (1384113495,), (1384113509,), (1384113749,), (1384113750,), (1384113751,), (1384113753,), (1384113756,), (1384113759,), (1384113957,), (1384113958,), (1384113959,), (1384114090,), (1384114093,), (1384114095,), (1384114098,), (1384114237,), (1384114282,), (1384114583,), (1384114594,), (1384114627,), (1384114722,)) 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 26937462 , 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=26937443 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 (26937462) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26937443) result : ((1384108262,), (1384108328,), (1384108406,), (1384108851,), (1384108881,), (1384109599,), (1384109643,), (1384109695,), (1384110022,), (1384110027,), (1384110868,), (1384110960,), (1384111039,), (1384111782,), (1384111895,), (1384111940,), (1384111956,), (1384111960,), (1384112408,), (1384112475,), (1384112532,), (1384112571,), (1384112606,), (1384113051,), (1384113111,), (1384113158,), (1384113187,), (1384113466,), (1384113487,), (1384113493,), (1384113495,), (1384113509,), (1384113749,), (1384113750,), (1384113751,), (1384113753,), (1384113756,), (1384113759,), (1384113957,), (1384113958,), (1384113959,), (1384114090,), (1384114093,), (1384114095,), (1384114098,), (1384114237,), (1384114282,), (1384114583,), (1384114594,), (1384114627,), (1384114722,)) 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 26937463 , 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=26937443 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 (26937463) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26937443) result : ((1384108262,), (1384108328,), (1384108406,), (1384108851,), (1384108881,), (1384109599,), (1384109643,), (1384109695,), (1384110022,), (1384110027,), (1384110868,), (1384110960,), (1384111039,), (1384111782,), (1384111895,), (1384111940,), (1384111956,), (1384111960,), (1384112408,), (1384112475,), (1384112532,), (1384112571,), (1384112606,), (1384113051,), (1384113111,), (1384113158,), (1384113187,), (1384113466,), (1384113487,), (1384113493,), (1384113495,), (1384113509,), (1384113749,), (1384113750,), (1384113751,), (1384113753,), (1384113756,), (1384113759,), (1384113957,), (1384113958,), (1384113959,), (1384114090,), (1384114093,), (1384114095,), (1384114098,), (1384114237,), (1384114282,), (1384114583,), (1384114594,), (1384114627,), (1384114722,)) 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 26937464 , 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=26937443 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 (26937464) result : ((1384110155,), (1384113273,), (1384113434,), (1384113766,), (1384114711,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26937443) result : ((1384108262,), (1384108328,), (1384108406,), (1384108851,), (1384108881,), (1384109599,), (1384109643,), (1384109695,), (1384110022,), (1384110027,), (1384110868,), (1384110960,), (1384111039,), (1384111782,), (1384111895,), (1384111940,), (1384111956,), (1384111960,), (1384112408,), (1384112475,), (1384112532,), (1384112571,), (1384112606,), (1384113051,), (1384113111,), (1384113158,), (1384113187,), (1384113466,), (1384113487,), (1384113493,), (1384113495,), (1384113509,), (1384113749,), (1384113750,), (1384113751,), (1384113753,), (1384113756,), (1384113759,), (1384113957,), (1384113958,), (1384113959,), (1384114090,), (1384114093,), (1384114095,), (1384114098,), (1384114237,), (1384114282,), (1384114583,), (1384114594,), (1384114627,), (1384114722,)) 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 26937465 , 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=26937443 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 (26937465) result : ((1384112131,), (1384112279,), (1384113426,), (1384114180,), (1384114182,), (1384114184,), (1384114186,), (1384114702,), (1384114703,), (1384114704,), (1384114705,), (1384114706,), (1384114707,), (1384114708,), (1384114709,), (1384114710,), (1384114712,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26937443) result : ((1384108262,), (1384108328,), (1384108406,), (1384108851,), (1384108881,), (1384109599,), (1384109643,), (1384109695,), (1384110022,), (1384110027,), (1384110868,), (1384110960,), (1384111039,), (1384111782,), (1384111895,), (1384111940,), (1384111956,), (1384111960,), (1384112408,), (1384112475,), (1384112532,), (1384112571,), (1384112606,), (1384113051,), (1384113111,), (1384113158,), (1384113187,), (1384113466,), (1384113487,), (1384113493,), (1384113495,), (1384113509,), (1384113749,), (1384113750,), (1384113751,), (1384113753,), (1384113756,), (1384113759,), (1384113957,), (1384113958,), (1384113959,), (1384114090,), (1384114093,), (1384114095,), (1384114098,), (1384114237,), (1384114282,), (1384114583,), (1384114594,), (1384114627,), (1384114722,)) 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`=26937443 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','environnement','Teint_Dans_La_Masse','Carton_brun','Carton_gris','autre_refus','flou','metal','kraft','mal_croppe','cartonnette')) 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`=26937443 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','environnement','Teint_Dans_La_Masse','Carton_brun','Carton_gris','autre_refus','flou','metal','kraft','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 26937443, 'sub_port_id': 26937467, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167612, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 33, 1)}, 'Carton_brun': {'main_port_id': 26937443, 'sub_port_id': 26937468, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167613, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 33, 1)}, 'autre_refus': {'main_port_id': 26937443, 'sub_port_id': 26937469, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167614, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 33, 1)}, 'mal_croppe': {'main_port_id': 26937443, 'sub_port_id': 26937470, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167615, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 33, 1)}, 'plastique': {'main_port_id': 26937443, 'sub_port_id': 26937471, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167616, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 33, 1)}, 'metal': {'main_port_id': 26937443, 'sub_port_id': 26937472, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167617, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 33, 1)}, 'papier': {'main_port_id': 26937443, 'sub_port_id': 26937473, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167618, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 33, 1)}, 'flou': {'main_port_id': 26937443, 'sub_port_id': 26937474, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167619, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 33, 1)}, 'kraft': {'main_port_id': 26937443, 'sub_port_id': 26937475, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167620, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 33, 1)}, 'environnement': {'main_port_id': 26937443, 'sub_port_id': 26937476, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167621, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 33, 1)}, 'Carton_gris': {'main_port_id': 26937443, 'sub_port_id': 26937477, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167622, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 33, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 33, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 26937443, 'sub_port_id': 26937478, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18167623, 'last_updated_at': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 10, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 10, 33, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26937467,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26937454 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26937468,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26937455 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26937469,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26937456 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26937470,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26937457 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26937471,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26937458 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26937472,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26937459 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26937473,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26937460 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26937474,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26937461 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26937475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26937462 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26937476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26937463 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26937477,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26937464 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26937478,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26937465 lien utilise dans velours : https://marlene.fotonower.com/velours/26937467,26937468,26937469,26937470,26937471,26937472,26937473,26937474,26937475,26937476,26937477,26937478?tags=cartonnette,Carton_brun,autre_refus,mal_croppe,plastique,metal,papier,flou,kraft,environnement,Carton_gris,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26937443]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1384114722, 1384114627, 1384114594, 1384114583] map_info['map_portfolio_photo'] : {26937443: [1384114722, 1384114627, 1384114594, 1384114583, 1384114282, 1384114237, 1384114098, 1384114095, 1384114093, 1384114090, 1384113959, 1384113958, 1384113957, 1384113759, 1384113756, 1384113753, 1384113751, 1384113750, 1384113749, 1384113509, 1384113495, 1384113493, 1384113487, 1384113466, 1384113187, 1384113158, 1384113111, 1384113051, 1384112606, 1384112571, 1384112532, 1384112475, 1384112408, 1384111960, 1384111956, 1384111940, 1384111895, 1384111782, 1384111039, 1384110960, 1384110868, 1384110027, 1384110022, 1384109695, 1384109643, 1384109599, 1384108881, 1384108851, 1384108406, 1384108328, 1384108262]} final : False mtd_id 4302 list_pids : [1384114722, 1384114627, 1384114594, 1384114583] Looping around the photos to save general results len do output : 1 /26937443. 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, '3734138') ('4302', '26937443', '1384114722', None, None, None, None, None, '3734138') ('4302', None, None, None, None, None, None, None, '3734138') ('4302', '26937443', '1384114627', None, None, None, None, None, '3734138') ('4302', None, None, None, None, None, None, None, '3734138') ('4302', '26937443', '1384114594', None, None, None, None, None, '3734138') ('4302', None, None, None, None, None, None, None, '3734138') ('4302', '26937443', '1384114583', None, None, None, None, None, '3734138') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '26937443', "{'cartonnette': 26937454, 'Carton_brun': 26937455, 'autre_refus': 26937456, 'mal_croppe': 26937457, 'plastique': 26937458, 'metal': 26937459, 'papier': 26937460, 'flou': 26937461, 'kraft': 26937462, 'environnement': 26937463, 'Carton_gris': 26937464, 'Teint_Dans_La_Masse': 26937465}", None, None, None, None, '3734138'), ('4302', '26937443', '1384114722', None, None, None, None, None, '3734138'), ('4302', '26937443', '1384114627', None, None, None, None, None, '3734138'), ('4302', '26937443', '1384114594', None, None, None, None, None, '3734138'), ('4302', '26937443', '1384114583', None, None, None, None, None, '3734138')] time used for this insertion : 0.03297567367553711 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.607903003692627 time spend to save output : 0.03325033187866211 total time spend for step 1 : 1.641153335571289 step2:final Wed Sep 17 10:46:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (26937443) 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 26937443 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1384108406,1384108328,1384108262,1384108881,1384108851,1384109695,1384109643,1384109599,1384110027,1384110022,1384111039,1384110960,1384110868,1384111960,1384111956,1384111940,1384111895,1384111782,1384112606,1384112571,1384112532,1384112475,1384112408,1384113187,1384113158,1384113111,1384113051,1384113509,1384113495,1384113493,1384113487,1384113466,1384113759,1384113756,1384113753,1384113751,1384113750,1384113749,1384113959,1384113958,1384113957,1384114098,1384114095,1384114093,1384114090,1384114282,1384114237,1384114627,1384114594,1384114583,1384114722); 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([26937443]) Inside saveOutput : final : False verbose : True original output for save of step final : {1384114722: ('0.05795026396720589',), 1384114627: ('0.05795026396720589',), 1384114594: ('0.05795026396720589',), 1384114583: ('0.05795026396720589',)} new output for save of step final : {1384114722: ('0.05795026396720589',), 1384114627: ('0.05795026396720589',), 1384114594: ('0.05795026396720589',), 1384114583: ('0.05795026396720589',)} [1384114722, 1384114627, 1384114594, 1384114583] map_info['map_portfolio_photo'] : {26937443: [1384114722, 1384114627, 1384114594, 1384114583, 1384114282, 1384114237, 1384114098, 1384114095, 1384114093, 1384114090, 1384113959, 1384113958, 1384113957, 1384113759, 1384113756, 1384113753, 1384113751, 1384113750, 1384113749, 1384113509, 1384113495, 1384113493, 1384113487, 1384113466, 1384113187, 1384113158, 1384113111, 1384113051, 1384112606, 1384112571, 1384112532, 1384112475, 1384112408, 1384111960, 1384111956, 1384111940, 1384111895, 1384111782, 1384111039, 1384110960, 1384110868, 1384110027, 1384110022, 1384109695, 1384109643, 1384109599, 1384108881, 1384108851, 1384108406, 1384108328, 1384108262]} final : False mtd_id 4302 list_pids : [1384114722, 1384114627, 1384114594, 1384114583] Looping around the photos to save general results len do output : 4 /1384114722.Didn't retrieve data . /1384114627.Didn't retrieve data . /1384114594.Didn't retrieve data . /1384114583.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, '3734138') ('4302', '26937443', '1384114722', None, None, None, None, None, '3734138') ('4302', None, None, None, None, None, None, None, '3734138') ('4302', '26937443', '1384114627', None, None, None, None, None, '3734138') ('4302', None, None, None, None, None, None, None, '3734138') ('4302', '26937443', '1384114594', None, None, None, None, None, '3734138') ('4302', None, None, None, None, None, None, None, '3734138') ('4302', '26937443', '1384114583', None, None, None, None, None, '3734138') 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', '26937443', '1384114722', '0.05795026396720589', None, None, None, None, '3734138'), ('4302', '26937443', '1384114627', '0.05795026396720589', None, None, None, None, '3734138'), ('4302', '26937443', '1384114594', '0.05795026396720589', None, None, None, None, '3734138'), ('4302', '26937443', '1384114583', '0.05795026396720589', None, None, None, None, '3734138')] time used for this insertion : 0.023128032684326172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.15253162384033203 time spend to save output : 0.023495912551879883 total time spend for step 2 : 0.17602753639221191 step3:velours_tree Wed Sep 17 10:46:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {26937443: [{'cartonnette': 26937454, 'Carton_brun': 26937455, 'autre_refus': 26937456, 'mal_croppe': 26937457, 'plastique': 26937458, 'metal': 26937459, 'papier': 26937460, 'flou': 26937461, 'kraft': 26937462, 'environnement': 26937463, 'Carton_gris': 26937464, 'Teint_Dans_La_Masse': 26937465}]} input_args_next_step : {26937443: ()} output_args : {26937443: [{'cartonnette': 26937454, 'Carton_brun': 26937455, 'autre_refus': 26937456, 'mal_croppe': 26937457, 'plastique': 26937458, 'metal': 26937459, 'papier': 26937460, 'flou': 26937461, 'kraft': 26937462, 'environnement': 26937463, 'Carton_gris': 26937464, 'Teint_Dans_La_Masse': 26937465}]} args : 26937443 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 : ({'cartonnette': 26937454, 'Carton_brun': 26937455, 'autre_refus': 26937456, 'mal_croppe': 26937457, 'plastique': 26937458, 'metal': 26937459, 'papier': 26937460, 'flou': 26937461, 'kraft': 26937462, 'environnement': 26937463, 'Carton_gris': 26937464, 'Teint_Dans_La_Masse': 26937465},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26937443) 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([26937443]) 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.3270905017852783 time spend to save output : 6.985664367675781e-05 total time spend for step 3 : 0.3271603584289551 step4:send_mail_cod Wed Sep 17 10:47: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 : {1384114722: ('0.05795026396720589',), 1384114627: ('0.05795026396720589',), 1384114594: ('0.05795026396720589',), 1384114583: ('0.05795026396720589',)} input_args_next_step : {1384114722: ()} output_args : {1384114722: ('0.05795026396720589',), 1384114627: ('0.05795026396720589',), 1384114594: ('0.05795026396720589',), 1384114583: ('0.05795026396720589',)} args : 1384114722 depend.output_id : 0 input_args_next_step : {1384114722: ('0.05795026396720589',), 1384114627: ()} output_args : {1384114722: ('0.05795026396720589',), 1384114627: ('0.05795026396720589',), 1384114594: ('0.05795026396720589',), 1384114583: ('0.05795026396720589',)} args : 1384114627 depend.output_id : 0 input_args_next_step : {1384114722: ('0.05795026396720589',), 1384114627: ('0.05795026396720589',), 1384114594: ()} output_args : {1384114722: ('0.05795026396720589',), 1384114627: ('0.05795026396720589',), 1384114594: ('0.05795026396720589',), 1384114583: ('0.05795026396720589',)} args : 1384114594 depend.output_id : 0 input_args_next_step : {1384114722: ('0.05795026396720589',), 1384114627: ('0.05795026396720589',), 1384114594: ('0.05795026396720589',), 1384114583: ()} output_args : {1384114722: ('0.05795026396720589',), 1384114627: ('0.05795026396720589',), 1384114594: ('0.05795026396720589',), 1384114583: ('0.05795026396720589',)} args : 1384114583 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 : {26937443: [{'cartonnette': 26937454, 'Carton_brun': 26937455, 'autre_refus': 26937456, 'mal_croppe': 26937457, 'plastique': 26937458, 'metal': 26937459, 'papier': 26937460, 'flou': 26937461, 'kraft': 26937462, 'environnement': 26937463, 'Carton_gris': 26937464, 'Teint_Dans_La_Masse': 26937465}]} input_args_next_step : {1384114722: ('0.05795026396720589',), 1384114627: ('0.05795026396720589',), 1384114594: ('0.05795026396720589',), 1384114583: ('0.05795026396720589',), 26937443: ()} output_args : {26937443: [{'cartonnette': 26937454, 'Carton_brun': 26937455, 'autre_refus': 26937456, 'mal_croppe': 26937457, 'plastique': 26937458, 'metal': 26937459, 'papier': 26937460, 'flou': 26937461, 'kraft': 26937462, 'environnement': 26937463, 'Carton_gris': 26937464, 'Teint_Dans_La_Masse': 26937465}]} args : 26937443 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 :5, first value : ('0.05795026396720589',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26937443) 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 (1384114722,1384114627,1384114594,1384114583) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1384114583 begin to download photo : 1384114594 begin to download photo : 1384114627 begin to download photo : 1384114722 download finish for photo 1384114583 download finish for photo 1384114722 download finish for photo 1384114627 download finish for photo 1384114594 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 : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P26937443_17-09-2025_10_47_00.pdf 26937454 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=26937454 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384112138: '1758098226_3869176_1384109695_0f6fdd44a1a0ad4beb7311523f8072a8_rle_crop_3960814110_0.png', 1384113279: '1758098345_3876004_1384110868_1483983dfd84f71ce5219125c560443c_rle_crop_3960815469_0.png', 1384113784: '1758098465_3882185_1384110868_1483983dfd84f71ce5219125c560443c_rle_crop_3960815469_0.png', 1384114193: '1758098586_3886899_1384113466_dc091153b5df0f8e6d5592933b7a3478_rle_crop_3960831507_0.png', 1384114713: '1758098707_3890358_1384113959_9ed324dda35e5aed7c88195b614ca76c_rle_crop_3960831841_0.png', 1384114714: '1758098707_3890358_1384113756_25087854b522e663e5442b4772c2c959_rle_crop_3960831878_0.png', 1384114715: '1758098707_3890358_1384113753_8232d2605ff1bc35589c723019105802_rle_crop_3960831894_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/2ee7012889ad97e71774b11c5da1e01d_87455361.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/be2a1222c5e03c6aaf9b032009705fba_34932712.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/be2a1222c5e03c6aaf9b032009705fba_36540620.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/47dbff3b9d69e180a6a2ac9d4bf95abe_977507.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/9c5dc9bf44a025b7ff5b899c88766531_42140187.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/083768c0a584ab85db329f2928bcac06_92252877.png change filename to text .imagette269374541758098820/ imagette269374541758098820/1758098226_3869176_1384109695_0f6fdd44a1a0ad4beb7311523f8072a8_rle_crop_3960814110_0.png.png imagette269374541758098820/1758098586_3886899_1384113466_dc091153b5df0f8e6d5592933b7a3478_rle_crop_3960831507_0.png.png imagette269374541758098820/1758098707_3890358_1384113753_8232d2605ff1bc35589c723019105802_rle_crop_3960831894_0.png.png imagette269374541758098820/1758098707_3890358_1384113756_25087854b522e663e5442b4772c2c959_rle_crop_3960831878_0.png.png imagette269374541758098820/1758098707_3890358_1384113959_9ed324dda35e5aed7c88195b614ca76c_rle_crop_3960831841_0.png.png imagette269374541758098820/1758098345_3876004_1384110868_1483983dfd84f71ce5219125c560443c_rle_crop_3960815469_0.png.png imagette269374541758098820/1758098465_3882185_1384110868_1483983dfd84f71ce5219125c560443c_rle_crop_3960815469_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/2db1f8bf69f27b33e543761b59cd0ed7_60679840.png imagette269374541758098820 26937456 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=26937456 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384113764: '1758098465_3882185_1384111960_591ae6e3b2d6164b00fc5cd6e79bcd48_rle_crop_3960823822_0.png'} change filename to text .imagette269374561758098820/ imagette269374561758098820/1758098465_3882185_1384111960_591ae6e3b2d6164b00fc5cd6e79bcd48_rle_crop_3960823822_0.png.png imagette269374571758098820/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/a9f75b11eb8d5d6d239e92285e298f3d_76639275.png imagette269374561758098820 26937457 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=26937457 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette269374571758098820 26937458 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=26937458 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384114206: '1758098586_3886899_1384113487_ba13abd315507fe87da8499417e22569_rle_crop_3960831499_0.png', 1384114208: '1758098586_3886899_1384113487_ba13abd315507fe87da8499417e22569_rle_crop_3960831496_0.png', 1384114210: '1758098586_3886899_1384113466_dc091153b5df0f8e6d5592933b7a3478_rle_crop_3960831512_0.png', 1384114213: '1758098586_3886899_1384113466_dc091153b5df0f8e6d5592933b7a3478_rle_crop_3960831508_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/aaaa5eb83167eb310ce0d306139f34fb_15323871.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/b5a0d46c3097552947ad4b02ac65c448_55750341.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/ebbc671ff9c0876095b4ac0ad6a69eed_70234474.png change filename to text .imagette269374581758098820/ imagette269374581758098820/1758098586_3886899_1384113466_dc091153b5df0f8e6d5592933b7a3478_rle_crop_3960831512_0.png.png imagette269374581758098820/1758098586_3886899_1384113466_dc091153b5df0f8e6d5592933b7a3478_rle_crop_3960831508_0.png.png imagette269374581758098820/1758098586_3886899_1384113487_ba13abd315507fe87da8499417e22569_rle_crop_3960831496_0.png.png imagette269374581758098820/1758098586_3886899_1384113487_ba13abd315507fe87da8499417e22569_rle_crop_3960831499_0.png.png imagette269374591758098821/ imagette269374611758098821/ imagette269374621758098821/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/a40a30bbfbc5f20da1666a08fec25810_60781090.png imagette269374581758098820 26937459 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=26937459 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette269374591758098821 26937461 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=26937461 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette269374611758098821 26937462 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=26937462 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette269374621758098821 26937455 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=26937455 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384112143: '1758098226_3869176_1384109695_0f6fdd44a1a0ad4beb7311523f8072a8_rle_crop_3960814113_0.png', 1384112306: '1758098252_3869923_1384109643_f355a5411be7c198c155783d451898e6_rle_crop_3960814389_0.png', 1384112310: '1758098252_3869923_1384109643_f355a5411be7c198c155783d451898e6_rle_crop_3960814384_0.png', 1384112314: '1758098252_3869923_1384109643_f355a5411be7c198c155783d451898e6_rle_crop_3960814382_0.png', 1384112318: '1758098252_3869923_1384109599_8eb7a6b76be78d02c5b93f96b65db41e_rle_crop_3960814406_0.png', 1384113289: '1758098345_3876004_1384110960_ce0c1e66900fafab56ee40c6d4292f27_rle_crop_3960815457_0.png', 1384113291: '1758098345_3876004_1384110868_1483983dfd84f71ce5219125c560443c_rle_crop_3960815475_0.png', 1384113442: '1758098364_3876369_1384111039_a3dea9467ed41c652f4b014088cdc781_rle_crop_3960815546_0.png', 1384113444: '1758098364_3876369_1384110022_5d4e50396ea5beceff2e60996cfa3735_rle_crop_3960815560_0.png', 1384113806: '1758098465_3882185_1384110960_ce0c1e66900fafab56ee40c6d4292f27_rle_crop_3960815457_0.png', 1384113812: '1758098465_3882185_1384110868_1483983dfd84f71ce5219125c560443c_rle_crop_3960815475_0.png', 1384114716: '1758098707_3890358_1384113756_25087854b522e663e5442b4772c2c959_rle_crop_3960831884_0.png', 1384114717: '1758098707_3890358_1384113753_8232d2605ff1bc35589c723019105802_rle_crop_3960831900_0.png', 1384114718: '1758098707_3890358_1384113751_e19e5ada5cc3e0ed97ae21b68ec968dd_rle_crop_3960831907_0.png', 1384114719: '1758098707_3890358_1384113751_e19e5ada5cc3e0ed97ae21b68ec968dd_rle_crop_3960831912_0.png', 1384114720: '1758098707_3890358_1384113750_908f82299362ae524f46af5709d67a04_rle_crop_3960831923_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/2233553118e6cf1b90304b02dda2efbf_51072224.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/c65ce263519a559b8d6c5269295c3a86_34104986.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/b54e563ccaeaacd19337647503115563_67069630.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/9fd118d9904c10e00d3b5b3e04890610_34849353.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/c062597f846ee7227980626bfac78ba4_10224686.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/243740b3b44f386ce7c49b7e1e6ac051_40134077.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/5d021855cbcd9a3eacc7225608aa3ab9_46209273.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/25066b28dbecbdbbf7cd96ca36511c97_12500733.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/7b7953615958e6bce7f71007fcb0c597_52567375.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/243740b3b44f386ce7c49b7e1e6ac051_27681300.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/5d021855cbcd9a3eacc7225608aa3ab9_95427782.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/9671ccbc12c0e9b87f11220236e78621_38389109.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/6ccd57d93a6e995e4f2a125d998c2ad0_10413726.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/0ea28480bcced308df07111f539336a0_23477658.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/3204debe317c0d6e49ce17d0446f2a6a_45154086.png change filename to text .imagette269374551758098821/ imagette269374551758098821/1758098252_3869923_1384109643_f355a5411be7c198c155783d451898e6_rle_crop_3960814382_0.png.png imagette269374551758098821/1758098707_3890358_1384113751_e19e5ada5cc3e0ed97ae21b68ec968dd_rle_crop_3960831907_0.png.png imagette269374551758098821/1758098252_3869923_1384109643_f355a5411be7c198c155783d451898e6_rle_crop_3960814389_0.png.png imagette269374551758098821/1758098707_3890358_1384113751_e19e5ada5cc3e0ed97ae21b68ec968dd_rle_crop_3960831912_0.png.png imagette269374551758098821/1758098226_3869176_1384109695_0f6fdd44a1a0ad4beb7311523f8072a8_rle_crop_3960814113_0.png.png imagette269374551758098821/1758098345_3876004_1384110868_1483983dfd84f71ce5219125c560443c_rle_crop_3960815475_0.png.png imagette269374551758098821/1758098465_3882185_1384110868_1483983dfd84f71ce5219125c560443c_rle_crop_3960815475_0.png.png imagette269374551758098821/1758098364_3876369_1384111039_a3dea9467ed41c652f4b014088cdc781_rle_crop_3960815546_0.png.png imagette269374551758098821/1758098465_3882185_1384110960_ce0c1e66900fafab56ee40c6d4292f27_rle_crop_3960815457_0.png.png imagette269374551758098821/1758098252_3869923_1384109643_f355a5411be7c198c155783d451898e6_rle_crop_3960814384_0.png.png imagette269374551758098821/1758098707_3890358_1384113756_25087854b522e663e5442b4772c2c959_rle_crop_3960831884_0.png.png imagette269374551758098821/1758098345_3876004_1384110960_ce0c1e66900fafab56ee40c6d4292f27_rle_crop_3960815457_0.png.png imagette269374551758098821/1758098252_3869923_1384109599_8eb7a6b76be78d02c5b93f96b65db41e_rle_crop_3960814406_0.png.png imagette269374551758098821/1758098707_3890358_1384113750_908f82299362ae524f46af5709d67a04_rle_crop_3960831923_0.png.png imagette269374551758098821/1758098364_3876369_1384110022_5d4e50396ea5beceff2e60996cfa3735_rle_crop_3960815560_0.png.png imagette269374551758098821/1758098707_3890358_1384113753_8232d2605ff1bc35589c723019105802_rle_crop_3960831900_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/560bd64ae8a4d65dc33d203b44b61eea_15764083.png imagette269374551758098821 26937464 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=26937464 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384110155: '1758098104_3862956_1384108262_0b0a1d6dfba3299f9231048a5985836d_rle_crop_3960810122_0.png', 1384113273: '1758098345_3876004_1384110960_ce0c1e66900fafab56ee40c6d4292f27_rle_crop_3960815450_0.png', 1384113434: '1758098364_3876369_1384111039_a3dea9467ed41c652f4b014088cdc781_rle_crop_3960815540_0.png', 1384113766: '1758098465_3882185_1384110960_ce0c1e66900fafab56ee40c6d4292f27_rle_crop_3960815450_0.png', 1384114711: '1758098707_3890358_1384113959_9ed324dda35e5aed7c88195b614ca76c_rle_crop_3960831837_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/aa2fca9dd3bbf615a735f3825777dbdd_49417036.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/85cb076c3c6be6553068186ae2eca968_42765741.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/5995826f3af827e52f0df14a3a5c7464_4310189.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/85cb076c3c6be6553068186ae2eca968_50560480.png change filename to text .imagette269374641758098822/ imagette269374641758098822/1758098345_3876004_1384110960_ce0c1e66900fafab56ee40c6d4292f27_rle_crop_3960815450_0.png.png imagette269374641758098822/1758098707_3890358_1384113959_9ed324dda35e5aed7c88195b614ca76c_rle_crop_3960831837_0.png.png imagette269374641758098822/1758098364_3876369_1384111039_a3dea9467ed41c652f4b014088cdc781_rle_crop_3960815540_0.png.png imagette269374641758098822/1758098465_3882185_1384110960_ce0c1e66900fafab56ee40c6d4292f27_rle_crop_3960815450_0.png.png imagette269374641758098822/1758098104_3862956_1384108262_0b0a1d6dfba3299f9231048a5985836d_rle_crop_3960810122_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/285defc5f493473398f96c29a5520be9_50034505.png imagette269374641758098822 26937465 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=26937465 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384114703: '1758098707_3890358_1384113756_25087854b522e663e5442b4772c2c959_rle_crop_3960831885_0.png', 1384114712: '1758098725_3890730_1384113958_4b7851dadd6c15cfabee029e5f4dc253_rle_crop_3960831946_0.png', 1384114710: '1758098707_3890358_1384113749_a64164b37a9934a7f4362d505cb15861_rle_crop_3960831935_0.png', 1384114709: '1758098707_3890358_1384113751_e19e5ada5cc3e0ed97ae21b68ec968dd_rle_crop_3960831910_0.png', 1384114708: '1758098707_3890358_1384113751_e19e5ada5cc3e0ed97ae21b68ec968dd_rle_crop_3960831908_0.png', 1384114707: '1758098707_3890358_1384113751_e19e5ada5cc3e0ed97ae21b68ec968dd_rle_crop_3960831913_0.png', 1384114706: '1758098707_3890358_1384113753_8232d2605ff1bc35589c723019105802_rle_crop_3960831899_0.png', 1384114705: '1758098707_3890358_1384113753_8232d2605ff1bc35589c723019105802_rle_crop_3960831901_0.png', 1384114704: '1758098707_3890358_1384113756_25087854b522e663e5442b4772c2c959_rle_crop_3960831883_0.png', 1384112131: '1758098226_3869176_1384109695_0f6fdd44a1a0ad4beb7311523f8072a8_rle_crop_3960814111_0.png', 1384114702: '1758098707_3890358_1384113756_25087854b522e663e5442b4772c2c959_rle_crop_3960831880_0.png', 1384114186: '1758098586_3886899_1384113487_ba13abd315507fe87da8499417e22569_rle_crop_3960831491_0.png', 1384114184: '1758098586_3886899_1384113487_ba13abd315507fe87da8499417e22569_rle_crop_3960831493_0.png', 1384114182: '1758098586_3886899_1384113493_aecadf8c008d4f28886a7fc2abcf271a_rle_crop_3960831482_0.png', 1384114180: '1758098586_3886899_1384113495_e0de3d248af2ae40dfcf1467a706f78c_rle_crop_3960831464_0.png', 1384113426: '1758098364_3876369_1384111039_a3dea9467ed41c652f4b014088cdc781_rle_crop_3960815544_0.png', 1384112279: '1758098252_3869923_1384109643_f355a5411be7c198c155783d451898e6_rle_crop_3960814385_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/0415cadb9df10e8a3763bfb926eaae1e_39850513.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/d613ca435d72dd61e5420574130b1f8f_24453882.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/88e3dfe6ee69689e17fa4c56cab5dbdf_82212379.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/56781c8cb873bf30343dc7054871feb3_13801161.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/4ec5d6617c4c2abe6cf88fb5406e2400_43375443.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/e50ac2540dfae99cd62e979aa7ff2d24_5501511.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/69663a322f8606dcb0eb0898bcbc1dff_91014462.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/8fd7ab46e71d10e0fffc2433814a80d5_2894031.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/86473fc13ea97555cc2830c875c998c7_13474000.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/dcf9feabdf9df6ab05d4f173ecadc522_6013920.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/e54fc6cc8c376f8570b492eb49b2f4ff_36996049.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/3ed90336063acdd8af14c948a54e0d9b_48438168.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/5f0ba269f9dc91f94b8a08e852d8e7b2_70127348.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/4a38f6e1c6ff99370e42bfa03e2b1ca9_94591763.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/df8383e1f58fc017efae05e4d1612612_56104963.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/cc49d6b85ba038ca5bc942ad2990df15_2773216.png change filename to text .imagette269374651758098822/ imagette269374651758098822/1758098725_3890730_1384113958_4b7851dadd6c15cfabee029e5f4dc253_rle_crop_3960831946_0.png.png imagette269374651758098822/1758098707_3890358_1384113756_25087854b522e663e5442b4772c2c959_rle_crop_3960831883_0.png.png imagette269374651758098822/1758098586_3886899_1384113487_ba13abd315507fe87da8499417e22569_rle_crop_3960831491_0.png.png imagette269374651758098822/1758098707_3890358_1384113753_8232d2605ff1bc35589c723019105802_rle_crop_3960831901_0.png.png imagette269374651758098822/1758098252_3869923_1384109643_f355a5411be7c198c155783d451898e6_rle_crop_3960814385_0.png.png imagette269374651758098822/1758098364_3876369_1384111039_a3dea9467ed41c652f4b014088cdc781_rle_crop_3960815544_0.png.png imagette269374651758098822/1758098586_3886899_1384113487_ba13abd315507fe87da8499417e22569_rle_crop_3960831493_0.png.png imagette269374651758098822/1758098707_3890358_1384113751_e19e5ada5cc3e0ed97ae21b68ec968dd_rle_crop_3960831908_0.png.png imagette269374651758098822/1758098707_3890358_1384113751_e19e5ada5cc3e0ed97ae21b68ec968dd_rle_crop_3960831910_0.png.png imagette269374651758098822/1758098707_3890358_1384113749_a64164b37a9934a7f4362d505cb15861_rle_crop_3960831935_0.png.png imagette269374651758098822/1758098586_3886899_1384113493_aecadf8c008d4f28886a7fc2abcf271a_rle_crop_3960831482_0.png.png imagette269374651758098822/1758098586_3886899_1384113495_e0de3d248af2ae40dfcf1467a706f78c_rle_crop_3960831464_0.png.png imagette269374651758098822/1758098707_3890358_1384113753_8232d2605ff1bc35589c723019105802_rle_crop_3960831899_0.png.png imagette269374651758098822/1758098707_3890358_1384113751_e19e5ada5cc3e0ed97ae21b68ec968dd_rle_crop_3960831913_0.png.png imagette269374651758098822/1758098226_3869176_1384109695_0f6fdd44a1a0ad4beb7311523f8072a8_rle_crop_3960814111_0.png.png imagette269374651758098822/1758098707_3890358_1384113756_25087854b522e663e5442b4772c2c959_rle_crop_3960831880_0.png.png imagette269374651758098822/1758098707_3890358_1384113756_25087854b522e663e5442b4772c2c959_rle_crop_3960831885_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/bd0f93a79a87b37082a8f67d09f8f943_12351975.png imagette269374651758098822 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26937443 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26937467,26937468,26937469,26937470,26937471,26937472,26937473,26937474,26937475,26937476,26937477,26937478?tags=cartonnette,Carton_brun,autre_refus,mal_croppe,plastique,metal,papier,flou,kraft,environnement,Carton_gris,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1384114722] : ('0.05795026396720589',) no score found for photo 1384114722 We are sending mail with results at report@fotonower.com args[1384114627] : ('0.05795026396720589',) no score found for photo 1384114627 We are sending mail with results at report@fotonower.com args[1384114594] : ('0.05795026396720589',) no score found for photo 1384114594 We are sending mail with results at report@fotonower.com args[1384114583] : ('0.05795026396720589',) no score found for photo 1384114583 We are sending mail with results at report@fotonower.com refus_total : 0.05795026396720589 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=26937443 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_P26937443_17-09-2025_10_47_00.pdf results_Auto_P26937443_17-09-2025_10_47_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26937443_17-09-2025_10_47_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','26937443','results_Auto_P26937443_17-09-2025_10_47_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26937443_17-09-2025_10_47_00.pdf','pdf','','0.2','0.05795026396720589') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26937443]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1384114722, 1384114627, 1384114594, 1384114583] map_info['map_portfolio_photo'] : {26937443: [1384114722, 1384114627, 1384114594, 1384114583, 1384114282, 1384114237, 1384114098, 1384114095, 1384114093, 1384114090, 1384113959, 1384113958, 1384113957, 1384113759, 1384113756, 1384113753, 1384113751, 1384113750, 1384113749, 1384113509, 1384113495, 1384113493, 1384113487, 1384113466, 1384113187, 1384113158, 1384113111, 1384113051, 1384112606, 1384112571, 1384112532, 1384112475, 1384112408, 1384111960, 1384111956, 1384111940, 1384111895, 1384111782, 1384111039, 1384110960, 1384110868, 1384110027, 1384110022, 1384109695, 1384109643, 1384109599, 1384108881, 1384108851, 1384108406, 1384108328, 1384108262]} final : False mtd_id 4302 list_pids : [1384114722, 1384114627, 1384114594, 1384114583] 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, '3734138') ('4302', '26937443', '1384114722', None, None, None, None, None, '3734138') ('4302', None, None, None, None, None, None, None, '3734138') ('4302', '26937443', '1384114627', None, None, None, None, None, '3734138') ('4302', None, None, None, None, None, None, None, '3734138') ('4302', '26937443', '1384114594', None, None, None, None, None, '3734138') ('4302', None, None, None, None, None, None, None, '3734138') ('4302', '26937443', '1384114583', None, None, None, None, None, '3734138') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '26937443', '1384114722', None, None, None, None, None, '3734138'), ('4302', '26937443', '1384114627', None, None, None, None, None, '3734138'), ('4302', '26937443', '1384114594', None, None, None, None, None, '3734138'), ('4302', '26937443', '1384114583', None, None, None, None, None, '3734138')] time used for this insertion : 0.016927719116210938 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.350902080535889 time spend to save output : 0.01716136932373047 total time spend for step 4 : 4.368063449859619 step5:split_time_score Wed Sep 17 10:47:04 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 : ['26937443'] 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 : [('26937443',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26937443) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1384114583: {'path': 'temp/1758098820_1240233_1384114583_b0d3e582e6cf3d4c73f6ac62d4a0367d.jpg', 'extension': 'jpg'}, 1384114722: {'path': 'temp/1758098820_1240233_1384114722_88804267547cfe75915209ff9b16799e.jpg', 'extension': 'jpg'}, 1384114627: {'path': 'temp/1758098820_1240233_1384114627_f78352f4357cb49df2ee3bf1dddb5d38.jpg', 'extension': 'jpg'}, 1384114594: {'path': 'temp/1758098820_1240233_1384114594_0d22f5559563decce0f0ee58b2f65ff9.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 = 26937443; (('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 = 26937443 group by h (('10', 51),) 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=26937443 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 (26937443) 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 (26937443) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17092025 26937443 Nombre de photos uploadées : 51 / 23040 (0%) 17092025 26937443 Nombre de photos taguées (types de déchets): 0 / 51 (0%) 17092025 26937443 Nombre de photos taguées (volume) : 0 / 51 (0%) [{'photo_id': 1384108406, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/57252cd9c7c7c235350c020f1dec6c1f.jpg', 'username': None, 'uploaded_at': 1758097928, 'text': 'image_17092025_10_31_14_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1384108328, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/063efe10ae182c33273d5c6d3e4884e1.jpg', 'username': None, 'uploaded_at': 1758097928, 'text': 'image_17092025_10_31_35_010141m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1384108262, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/0b0a1d6dfba3299f9231048a5985836d.jpg', 'username': None, 'uploaded_at': 1758097928, 'text': 'image_17092025_10_31_45_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1384108881, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/c5c88ef420b9bb3c8b0c415934d2a1a0.jpg', 'username': None, 'uploaded_at': 1758097988, 'text': 'image_17092025_10_31_54_9130.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 1.049041748046875e-05 ??????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024530887603759766 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26937443, '2025-09-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-09-17' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2300667,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21666622161865234 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= 2300667 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26918428, 'dashboard_result_id': 15299636, '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_P26918428_17-09-2025_06_17_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918449, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26918876, 'dashboard_result_id': 15299637, '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_P26918876_17-09-2025_06_18_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918891, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26919228, 'dashboard_result_id': 15299638, '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_P26919228_17-09-2025_06_18_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919245, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26919628, 'dashboard_result_id': 15299639, '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_P26919628_17-09-2025_06_19_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919644, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26920486, 'dashboard_result_id': 15299640, '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_P26920486_17-09-2025_06_20_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26920491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920499, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26920775, 'dashboard_result_id': 15299641, '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_P26920775_17-09-2025_06_20_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26920781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920792, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26921240, 'dashboard_result_id': 15299642, '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_P26921240_17-09-2025_06_20_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26921258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921260, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26921882, 'dashboard_result_id': 15299643, '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_P26921882_17-09-2025_06_21_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26921893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921904, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26922389, 'dashboard_result_id': 15299645, '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_P26922389_17-09-2025_06_22_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26922398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26922399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26922400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26922401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26922402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26922403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26922404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26922405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26922406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26922407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26922408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26922409, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26922797, 'dashboard_result_id': 15299646, '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_P26922797_17-09-2025_06_22_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26922823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26922824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26922825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26922826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26922827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26922828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26922829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26922830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26922831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26922832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26922833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26922834, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26923194, 'dashboard_result_id': 15299647, '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_P26923194_17-09-2025_06_01_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26923221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26923222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26923223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26923224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26923225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26923226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26923227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26923228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26923229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26923230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26923231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26923232, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26924102, 'dashboard_result_id': 15299649, '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_P26924102_17-09-2025_06_23_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924115, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26924391, 'dashboard_result_id': 15299650, '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_P26924391_17-09-2025_06_23_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924400, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924407, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26924797, 'dashboard_result_id': 15299651, '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_P26924797_17-09-2025_05_47_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924811, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26925081, 'dashboard_result_id': 15299652, '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_P26925081_17-09-2025_06_05_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26925086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26925087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26925088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26925089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26925090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26925091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26925092, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26925093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26925094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26925095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26925096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26925097, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26925514, 'dashboard_result_id': 15299654, '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_P26925514_17-09-2025_06_19_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26925525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26925526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26925527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26925528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26925529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26925530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26925531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26925532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26925533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26925534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26925536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26925537, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26926119, 'dashboard_result_id': 15299655, '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_P26926119_17-09-2025_06_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26926125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26926126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26926131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26926134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926136, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26926538, 'dashboard_result_id': 15299656, '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_P26926538_17-09-2025_06_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26926548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26926549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26926550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26926558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926559, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26926964, 'dashboard_result_id': 15299657, '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_P26926964_17-09-2025_07_05_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26926990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26926996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26927000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26927001, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26927400, 'dashboard_result_id': 15299658, '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_P26927400_17-09-2025_07_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26927418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26927419, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26927421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26927422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26927423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26927424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26927425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26927426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26927427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26927428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26927429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26927430, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26928251, 'dashboard_result_id': 15299659, '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_P26928251_17-09-2025_07_35_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26928262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26928263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26928264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26928265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26928266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26928267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26928268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26928269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26928270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26928271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26928272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26928273, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26928992, 'dashboard_result_id': 15299660, '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_P26928992_17-09-2025_07_48_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26929011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26929012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26929013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26929014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26929015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26929016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26929017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26929018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26929019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26929020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26929021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26929022, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26929662, 'dashboard_result_id': 15299661, '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_P26929662_17-09-2025_08_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26929696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26929697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26929698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26929699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26929700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26929701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26929702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26929703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26929704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26929705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26929706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26929707, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26930241, 'dashboard_result_id': 15299662, '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_P26930241_17-09-2025_08_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26930252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26930253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26930254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26930255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26930256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26930257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26930259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26930260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26930261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26930262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26930263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26930264, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26931078, 'dashboard_result_id': 15299663, '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_P26931078_17-09-2025_08_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26931110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26931111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26931112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26931113, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26931114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26931115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26931116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26931117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26931118, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26931119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26931120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26931121, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26931666, 'dashboard_result_id': 15299664, '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_P26931666_17-09-2025_08_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26931701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26931702, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26931703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26931704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26931705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26931706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26931707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26931708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26931709, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26931710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26931711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26931712, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26932425, 'dashboard_result_id': 15299665, '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_P26932425_17-09-2025_09_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26932435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26932436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26932437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26932438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26932439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26932440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26932441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26932442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26932443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26932444, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26932445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26932446, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26934491, 'dashboard_result_id': 15299666, '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_P26934491_17-09-2025_09_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26934495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26934496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26934497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26934498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26934499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26934500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26934501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26934502, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26934503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26934504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26934505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26934506, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26935129, 'dashboard_result_id': 15299667, '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_P26935129_17-09-2025_10_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26935202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26935203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26935204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26935205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26935206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26935207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26935208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26935209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26935210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26935211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26935212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26935213, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26935836, 'dashboard_result_id': 15299668, '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_P26935836_17-09-2025_10_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26935886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26935887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26935888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26935889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26935890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26935891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26935892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26935893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26935894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26935895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26935896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26935897, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26936651, 'dashboard_result_id': 15299669, '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_P26936651_17-09-2025_10_33_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26936659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26936660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26936661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26936662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26936663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26936664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26936665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26936666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26936667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26936668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26936669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26936670, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311389, 'mtr_portfolio_id': 26937443, 'dashboard_result_id': 15299670, '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_P26937443_17-09-2025_10_44_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26937454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26937455, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26937456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26937457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26937458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26937459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26937460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26937461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26937462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26937463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26937464, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26937465, '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 = 26918428 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': 3732548, 'mtr_portfolio_id': 26918428, 'created_at': datetime.datetime(2025, 9, 17, 6, 17, 28), 'result': '0.034418347298541714', 'result_long': None, 'result_double': None}] Qualite : 0.034418347298541714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26918428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26918428_17-09-2025_06_17_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26918428 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_P26918428_17-09-2025_06_17_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918449, 'pht': 3726}}" where mtr_portfolio_id = 26918428 and dashboard_run_id = 2311389 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`=26918428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299636, 0.034418347298541714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26918428_17-09-2025_06_17_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918449, '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 = 26918876 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': 3732549, 'mtr_portfolio_id': 26918876, 'created_at': datetime.datetime(2025, 9, 17, 6, 18, 2), 'result': '0.043610718126215635', 'result_long': None, 'result_double': None}] Qualite : 0.043610718126215635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26918876 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26918876_17-09-2025_06_18_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26918876 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_P26918876_17-09-2025_06_18_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918891, 'pht': 3726}}" where mtr_portfolio_id = 26918876 and dashboard_run_id = 2311389 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`=26918876 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299637, 0.043610718126215635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26918876_17-09-2025_06_18_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918891, '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 = 26919228 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': 3732550, 'mtr_portfolio_id': 26919228, 'created_at': datetime.datetime(2025, 9, 17, 6, 18, 32), 'result': '0.054799998150664726', 'result_long': None, 'result_double': None}] Qualite : 0.054799998150664726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26919228 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26919228_17-09-2025_06_18_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26919228 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_P26919228_17-09-2025_06_18_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919245, 'pht': 3726}}" where mtr_portfolio_id = 26919228 and dashboard_run_id = 2311389 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`=26919228 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299638, 0.054799998150664726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26919228_17-09-2025_06_18_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919245, '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 = 26919628 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': 3732551, 'mtr_portfolio_id': 26919628, 'created_at': datetime.datetime(2025, 9, 17, 6, 19, 30), 'result': '0.06563328552521043', 'result_long': None, 'result_double': None}] Qualite : 0.06563328552521043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26919628 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26919628_17-09-2025_06_19_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26919628 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_P26919628_17-09-2025_06_19_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919644, 'pht': 3726}}" where mtr_portfolio_id = 26919628 and dashboard_run_id = 2311389 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`=26919628 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299639, 0.06563328552521043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26919628_17-09-2025_06_19_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919644, '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 = 26920486 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': 3732552, 'mtr_portfolio_id': 26920486, 'created_at': datetime.datetime(2025, 9, 17, 6, 20), 'result': '0.03136853702815561', 'result_long': None, 'result_double': None}] Qualite : 0.03136853702815561 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26920486 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26920486_17-09-2025_06_20_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26920486 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_P26920486_17-09-2025_06_20_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26920491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920499, 'pht': 3726}}" where mtr_portfolio_id = 26920486 and dashboard_run_id = 2311389 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`=26920486 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299640, 0.03136853702815561, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26920486_17-09-2025_06_20_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26920491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920499, '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 = 26920775 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': 3732553, 'mtr_portfolio_id': 26920775, 'created_at': datetime.datetime(2025, 9, 17, 6, 20, 28), 'result': '0.038637870793443135', 'result_long': None, 'result_double': None}] Qualite : 0.038637870793443135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26920775 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26920775_17-09-2025_06_20_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26920775 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_P26920775_17-09-2025_06_20_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26920781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920792, 'pht': 3726}}" where mtr_portfolio_id = 26920775 and dashboard_run_id = 2311389 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`=26920775 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299641, 0.038637870793443135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26920775_17-09-2025_06_20_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26920781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920792, '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 = 26921240 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': 3732554, 'mtr_portfolio_id': 26921240, 'created_at': datetime.datetime(2025, 9, 17, 6, 20, 37), 'result': '0.04476262593749069', 'result_long': None, 'result_double': None}] Qualite : 0.04476262593749069 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26921240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26921240_17-09-2025_06_20_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26921240 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_P26921240_17-09-2025_06_20_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26921258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921260, 'pht': 3726}}" where mtr_portfolio_id = 26921240 and dashboard_run_id = 2311389 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`=26921240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299642, 0.04476262593749069, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26921240_17-09-2025_06_20_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26921258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921260, '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 = 26921882 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': 3732555, 'mtr_portfolio_id': 26921882, 'created_at': datetime.datetime(2025, 9, 17, 6, 21, 29), 'result': '0.07154484052750976', 'result_long': None, 'result_double': None}] Qualite : 0.07154484052750976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26921882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26921882_17-09-2025_06_21_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26921882 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_P26921882_17-09-2025_06_21_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26921893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921904, 'pht': 3726}}" where mtr_portfolio_id = 26921882 and dashboard_run_id = 2311389 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`=26921882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299643, 0.07154484052750976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26921882_17-09-2025_06_21_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26921893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921904, '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 = 26922389 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': 3732556, 'mtr_portfolio_id': 26922389, 'created_at': datetime.datetime(2025, 9, 17, 6, 22), 'result': '0.03665288194111033', 'result_long': None, 'result_double': None}] Qualite : 0.03665288194111033 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26922389 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26922389_17-09-2025_06_22_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26922389 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_P26922389_17-09-2025_06_22_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26922398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26922399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26922400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26922401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26922402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26922403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26922404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26922405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26922406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26922407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26922408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26922409, 'pht': 3726}}" where mtr_portfolio_id = 26922389 and dashboard_run_id = 2311389 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`=26922389 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299645, 0.03665288194111033, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26922389_17-09-2025_06_22_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26922398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26922399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26922400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26922401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26922402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26922403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26922404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26922405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26922406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26922407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26922408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26922409, '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 = 26922797 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': 3732557, 'mtr_portfolio_id': 26922797, 'created_at': datetime.datetime(2025, 9, 17, 6, 22, 30), 'result': '0.053258111009566775', 'result_long': None, 'result_double': None}] Qualite : 0.053258111009566775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26922797 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26922797_17-09-2025_06_22_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26922797 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_P26922797_17-09-2025_06_22_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26922823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26922824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26922825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26922826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26922827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26922828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26922829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26922830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26922831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26922832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26922833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26922834, 'pht': 3726}}" where mtr_portfolio_id = 26922797 and dashboard_run_id = 2311389 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`=26922797 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299646, 0.053258111009566775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26922797_17-09-2025_06_22_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26922823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26922824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26922825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26922826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26922827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26922828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26922829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26922830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26922831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26922832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26922833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26922834, '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 = 26923194 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': 3732142, 'mtr_portfolio_id': 26923194, 'created_at': datetime.datetime(2025, 9, 17, 6, 1, 1), 'result': '0.03187562283868707', 'result_long': None, 'result_double': None}] Qualite : 0.03187562283868707 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26923194 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26923194_17-09-2025_06_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26923194 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_P26923194_17-09-2025_06_01_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26923221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26923222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26923223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26923224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26923225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26923226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26923227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26923228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26923229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26923230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26923231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26923232, 'pht': 3726}}" where mtr_portfolio_id = 26923194 and dashboard_run_id = 2311389 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`=26923194 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299647, 0.03187562283868707, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26923194_17-09-2025_06_01_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26923221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26923222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26923223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26923224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26923225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26923226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26923227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26923228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26923229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26923230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26923231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26923232, '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 = 26924102 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': 3732558, 'mtr_portfolio_id': 26924102, 'created_at': datetime.datetime(2025, 9, 17, 6, 23, 2), 'result': '0.043806340379132926', 'result_long': None, 'result_double': None}] Qualite : 0.043806340379132926 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26924102 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26924102_17-09-2025_06_23_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26924102 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_P26924102_17-09-2025_06_23_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924115, 'pht': 3726}}" where mtr_portfolio_id = 26924102 and dashboard_run_id = 2311389 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`=26924102 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299649, 0.043806340379132926, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26924102_17-09-2025_06_23_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924115, '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 = 26924391 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': 3732559, 'mtr_portfolio_id': 26924391, 'created_at': datetime.datetime(2025, 9, 17, 6, 23, 30), 'result': '0.038854450436580125', 'result_long': None, 'result_double': None}] Qualite : 0.038854450436580125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26924391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26924391_17-09-2025_06_23_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26924391 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_P26924391_17-09-2025_06_23_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924400, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924407, 'pht': 3726}}" where mtr_portfolio_id = 26924391 and dashboard_run_id = 2311389 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`=26924391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299650, 0.038854450436580125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26924391_17-09-2025_06_23_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924400, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924407, '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 = 26924797 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': 3732605, 'mtr_portfolio_id': 26924797, 'created_at': datetime.datetime(2025, 9, 17, 5, 47, 30), 'result': '0.0555519198114147', 'result_long': None, 'result_double': None}] Qualite : 0.0555519198114147 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26924797 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26924797_17-09-2025_05_47_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26924797 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_P26924797_17-09-2025_05_47_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924811, 'pht': 3726}}" where mtr_portfolio_id = 26924797 and dashboard_run_id = 2311389 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`=26924797 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299651, 0.0555519198114147, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26924797_17-09-2025_05_47_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924811, '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 = 26925081 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': 3732641, 'mtr_portfolio_id': 26925081, 'created_at': datetime.datetime(2025, 9, 17, 6, 5, 28), 'result': '0.03614144143676788', 'result_long': None, 'result_double': None}] Qualite : 0.03614144143676788 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26925081 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26925081_17-09-2025_06_05_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26925081 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_P26925081_17-09-2025_06_05_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26925086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26925087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26925088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26925089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26925090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26925091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26925092, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26925093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26925094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26925095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26925096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26925097, 'pht': 3726}}" where mtr_portfolio_id = 26925081 and dashboard_run_id = 2311389 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`=26925081 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299652, 0.03614144143676788, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26925081_17-09-2025_06_05_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26925086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26925087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26925088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26925089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26925090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26925091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26925092, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26925093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26925094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26925095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26925096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26925097, '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 = 26925514 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': 3732710, 'mtr_portfolio_id': 26925514, 'created_at': datetime.datetime(2025, 9, 17, 6, 19, 28), 'result': '0.05163043017052247', 'result_long': None, 'result_double': None}] Qualite : 0.05163043017052247 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26925514 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26925514_17-09-2025_06_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26925514 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_P26925514_17-09-2025_06_19_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26925525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26925526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26925527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26925528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26925529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26925530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26925531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26925532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26925533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26925534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26925536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26925537, 'pht': 3726}}" where mtr_portfolio_id = 26925514 and dashboard_run_id = 2311389 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`=26925514 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299654, 0.05163043017052247, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26925514_17-09-2025_06_19_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26925525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26925526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26925527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26925528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26925529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26925530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26925531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26925532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26925533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26925534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26925536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26925537, '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 = 26926119 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': 3732790, 'mtr_portfolio_id': 26926119, 'created_at': datetime.datetime(2025, 9, 17, 6, 33), 'result': '0.05237131561620687', 'result_long': None, 'result_double': None}] Qualite : 0.05237131561620687 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26926119 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26926119_17-09-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26926119 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_P26926119_17-09-2025_06_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26926125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26926126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26926131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26926134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926136, 'pht': 3726}}" where mtr_portfolio_id = 26926119 and dashboard_run_id = 2311389 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`=26926119 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299655, 0.05237131561620687, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26926119_17-09-2025_06_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26926125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26926126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26926131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26926134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926136, '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 = 26926538 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': 3732864, 'mtr_portfolio_id': 26926538, 'created_at': datetime.datetime(2025, 9, 17, 6, 49), 'result': '0.058544981737487484', 'result_long': None, 'result_double': None}] Qualite : 0.058544981737487484 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26926538 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26926538_17-09-2025_06_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26926538 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_P26926538_17-09-2025_06_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26926548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26926549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26926550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26926558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926559, 'pht': 3726}}" where mtr_portfolio_id = 26926538 and dashboard_run_id = 2311389 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`=26926538 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299656, 0.058544981737487484, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26926538_17-09-2025_06_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26926548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26926549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26926550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26926558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926559, '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 = 26926964 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': 3732946, 'mtr_portfolio_id': 26926964, 'created_at': datetime.datetime(2025, 9, 17, 7, 5), 'result': '0.04457282082067911', 'result_long': None, 'result_double': None}] Qualite : 0.04457282082067911 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26926964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26926964_17-09-2025_07_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26926964 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_P26926964_17-09-2025_07_05_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26926990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26926996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26927000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26927001, 'pht': 3726}}" where mtr_portfolio_id = 26926964 and dashboard_run_id = 2311389 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`=26926964 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299657, 0.04457282082067911, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26926964_17-09-2025_07_05_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26926990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26926996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26927000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26927001, '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 = 26927400 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': 3733031, 'mtr_portfolio_id': 26927400, 'created_at': datetime.datetime(2025, 9, 17, 7, 16, 59), 'result': '0.057123809389375765', 'result_long': None, 'result_double': None}] Qualite : 0.057123809389375765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26927400 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26927400_17-09-2025_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26927400 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_P26927400_17-09-2025_07_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26927418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26927419, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26927421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26927422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26927423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26927424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26927425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26927426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26927427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26927428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26927429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26927430, 'pht': 3726}}" where mtr_portfolio_id = 26927400 and dashboard_run_id = 2311389 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`=26927400 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299658, 0.057123809389375765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26927400_17-09-2025_07_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26927418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26927419, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26927421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26927422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26927423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26927424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26927425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26927426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26927427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26927428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26927429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26927430, '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 = 26928251 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': 3733125, 'mtr_portfolio_id': 26928251, 'created_at': datetime.datetime(2025, 9, 17, 7, 34, 59), 'result': '0.05454341792867976', 'result_long': None, 'result_double': None}] Qualite : 0.05454341792867976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26928251 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26928251_17-09-2025_07_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26928251 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_P26928251_17-09-2025_07_35_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26928262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26928263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26928264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26928265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26928266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26928267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26928268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26928269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26928270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26928271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26928272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26928273, 'pht': 3726}}" where mtr_portfolio_id = 26928251 and dashboard_run_id = 2311389 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`=26928251 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299659, 0.05454341792867976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26928251_17-09-2025_07_35_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26928262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26928263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26928264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26928265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26928266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26928267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26928268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26928269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26928270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26928271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26928272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26928273, '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 = 26928992 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': 3733209, 'mtr_portfolio_id': 26928992, 'created_at': datetime.datetime(2025, 9, 17, 7, 48, 56), 'result': '0.049792965909687306', 'result_long': None, 'result_double': None}] Qualite : 0.049792965909687306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26928992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26928992_17-09-2025_07_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26928992 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_P26928992_17-09-2025_07_48_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26929011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26929012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26929013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26929014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26929015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26929016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26929017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26929018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26929019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26929020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26929021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26929022, 'pht': 3726}}" where mtr_portfolio_id = 26928992 and dashboard_run_id = 2311389 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`=26928992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299660, 0.049792965909687306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26928992_17-09-2025_07_48_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26929011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26929012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26929013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26929014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26929015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26929016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26929017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26929018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26929019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26929020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26929021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26929022, '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 = 26929662 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': 3733293, 'mtr_portfolio_id': 26929662, 'created_at': datetime.datetime(2025, 9, 17, 8, 4, 59), 'result': '0.05242642667214526', 'result_long': None, 'result_double': None}] Qualite : 0.05242642667214526 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26929662 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26929662_17-09-2025_08_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26929662 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_P26929662_17-09-2025_08_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26929696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26929697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26929698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26929699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26929700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26929701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26929702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26929703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26929704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26929705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26929706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26929707, 'pht': 3726}}" where mtr_portfolio_id = 26929662 and dashboard_run_id = 2311389 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`=26929662 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299661, 0.05242642667214526, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26929662_17-09-2025_08_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26929696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26929697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26929698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26929699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26929700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26929701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26929702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26929703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26929704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26929705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26929706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26929707, '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 = 26930241 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': 3733396, 'mtr_portfolio_id': 26930241, 'created_at': datetime.datetime(2025, 9, 17, 8, 18, 57), 'result': '0.04693638715652657', 'result_long': None, 'result_double': None}] Qualite : 0.04693638715652657 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26930241 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26930241_17-09-2025_08_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26930241 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_P26930241_17-09-2025_08_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26930252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26930253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26930254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26930255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26930256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26930257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26930259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26930260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26930261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26930262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26930263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26930264, 'pht': 3726}}" where mtr_portfolio_id = 26930241 and dashboard_run_id = 2311389 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`=26930241 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299662, 0.04693638715652657, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26930241_17-09-2025_08_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26930252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26930253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26930254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26930255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26930256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26930257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26930259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26930260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26930261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26930262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26930263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26930264, '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 = 26931078 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': 3733492, 'mtr_portfolio_id': 26931078, 'created_at': datetime.datetime(2025, 9, 17, 8, 34, 31), 'result': '0.058743540181533035', 'result_long': None, 'result_double': None}] Qualite : 0.058743540181533035 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26931078 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26931078_17-09-2025_08_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26931078 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_P26931078_17-09-2025_08_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26931110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26931111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26931112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26931113, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26931114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26931115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26931116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26931117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26931118, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26931119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26931120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26931121, 'pht': 3726}}" where mtr_portfolio_id = 26931078 and dashboard_run_id = 2311389 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`=26931078 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299663, 0.058743540181533035, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26931078_17-09-2025_08_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26931110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26931111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26931112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26931113, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26931114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26931115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26931116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26931117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26931118, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26931119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26931120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26931121, '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 = 26931666 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': 3733583, 'mtr_portfolio_id': 26931666, 'created_at': datetime.datetime(2025, 9, 17, 8, 46, 58), 'result': '0.04927580768804584', 'result_long': None, 'result_double': None}] Qualite : 0.04927580768804584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26931666 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26931666_17-09-2025_08_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26931666 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_P26931666_17-09-2025_08_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26931701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26931702, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26931703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26931704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26931705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26931706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26931707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26931708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26931709, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26931710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26931711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26931712, 'pht': 3726}}" where mtr_portfolio_id = 26931666 and dashboard_run_id = 2311389 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`=26931666 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299664, 0.04927580768804584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26931666_17-09-2025_08_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26931701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26931702, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26931703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26931704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26931705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26931706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26931707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26931708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26931709, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26931710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26931711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26931712, '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 = 26932425 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': 3733718, 'mtr_portfolio_id': 26932425, 'created_at': datetime.datetime(2025, 9, 17, 9, 32, 58), 'result': '0.053615047523619584', 'result_long': None, 'result_double': None}] Qualite : 0.053615047523619584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26932425 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26932425_17-09-2025_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26932425 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_P26932425_17-09-2025_09_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26932435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26932436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26932437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26932438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26932439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26932440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26932441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26932442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26932443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26932444, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26932445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26932446, 'pht': 3726}}" where mtr_portfolio_id = 26932425 and dashboard_run_id = 2311389 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`=26932425 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299665, 0.053615047523619584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26932425_17-09-2025_09_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26932435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26932436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26932437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26932438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26932439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26932440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26932441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26932442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26932443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26932444, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26932445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26932446, '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 = 26934491 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': 3733931, 'mtr_portfolio_id': 26934491, 'created_at': datetime.datetime(2025, 9, 17, 9, 47), 'result': '0.04594819373243381', 'result_long': None, 'result_double': None}] Qualite : 0.04594819373243381 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26934491 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26934491_17-09-2025_09_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26934491 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_P26934491_17-09-2025_09_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26934495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26934496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26934497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26934498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26934499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26934500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26934501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26934502, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26934503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26934504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26934505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26934506, 'pht': 3726}}" where mtr_portfolio_id = 26934491 and dashboard_run_id = 2311389 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`=26934491 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299666, 0.04594819373243381, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26934491_17-09-2025_09_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26934495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26934496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26934497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26934498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26934499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26934500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26934501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26934502, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26934503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26934504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26934505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26934506, '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 = 26935129 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': 3733970, 'mtr_portfolio_id': 26935129, 'created_at': datetime.datetime(2025, 9, 17, 10, 2, 59), 'result': '0.06790265040995234', 'result_long': None, 'result_double': None}] Qualite : 0.06790265040995234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26935129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26935129_17-09-2025_10_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26935129 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_P26935129_17-09-2025_10_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26935202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26935203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26935204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26935205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26935206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26935207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26935208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26935209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26935210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26935211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26935212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26935213, 'pht': 3726}}" where mtr_portfolio_id = 26935129 and dashboard_run_id = 2311389 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`=26935129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299667, 0.06790265040995234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26935129_17-09-2025_10_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26935202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26935203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26935204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26935205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26935206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26935207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26935208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26935209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26935210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26935211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26935212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26935213, '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 = 26935836 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': 3734028, 'mtr_portfolio_id': 26935836, 'created_at': datetime.datetime(2025, 9, 17, 10, 17), 'result': '0.06185133264290253', 'result_long': None, 'result_double': None}] Qualite : 0.06185133264290253 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26935836 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26935836_17-09-2025_10_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26935836 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_P26935836_17-09-2025_10_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26935886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26935887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26935888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26935889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26935890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26935891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26935892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26935893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26935894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26935895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26935896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26935897, 'pht': 3726}}" where mtr_portfolio_id = 26935836 and dashboard_run_id = 2311389 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`=26935836 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299668, 0.06185133264290253, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26935836_17-09-2025_10_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26935886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26935887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26935888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26935889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26935890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26935891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26935892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26935893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26935894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26935895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26935896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26935897, '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 = 26936651 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': 3734085, 'mtr_portfolio_id': 26936651, 'created_at': datetime.datetime(2025, 9, 17, 10, 33, 29), 'result': '0.04553345008684183', 'result_long': None, 'result_double': None}] Qualite : 0.04553345008684183 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26936651 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26936651_17-09-2025_10_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26936651 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_P26936651_17-09-2025_10_33_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26936659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26936660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26936661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26936662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26936663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26936664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26936665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26936666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26936667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26936668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26936669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26936670, 'pht': 3726}}" where mtr_portfolio_id = 26936651 and dashboard_run_id = 2311389 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`=26936651 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299669, 0.04553345008684183, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26936651_17-09-2025_10_33_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26936659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26936660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26936661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26936662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26936663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26936664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26936665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26936666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26936667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26936668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26936669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26936670, '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 = 26937443 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': 3734138, 'mtr_portfolio_id': 26937443, 'created_at': datetime.datetime(2025, 9, 17, 10, 46, 59), 'result': '0.05795026396720589', 'result_long': None, 'result_double': None}] Qualite : 0.05795026396720589 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26937443 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26937443_17-09-2025_10_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26937443 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_P26937443_17-09-2025_10_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26937454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26937455, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26937456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26937457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26937458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26937459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26937460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26937461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26937462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26937463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26937464, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26937465, 'pht': 3726}}" where mtr_portfolio_id = 26937443 and dashboard_run_id = 2311389 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`=26937443 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15299670, 0.05795026396720589, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26937443_17-09-2025_10_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26937454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26937455, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26937456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26937457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26937458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26937459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26937460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26937461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26937462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26937463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26937464, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26937465, '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 (26918428,26918876,26919228,26919628,26920486,26920775,26921240,26921882,26922389,26922797,26923194,26924102,26924391,26924797,26925081,26925514,26926119,26926538,26926964,26927400,26928251,26928992,26929662,26930241,26931078,26931666,26932425,26934491,26935129,26935836,26936651,26937443) result : ((1384027410,), (1384027478,), (1384027543,), (1384027593,), (1384027636,), (1384027876,), (1384027877,), (1384027878,), (1384027890,), (1384027891,), (1384027892,), (1384027894,), (1384027916,), (1384027919,), (1384027922,), (1384027924,), (1384027942,), (1384027943,), (1384027944,), (1384027946,), (1384027958,), (1384027959,), (1384027960,), (1384028042,), (1384028043,), (1384028061,), (1384028098,), (1384028100,), (1384028123,), (1384028125,), (1384028127,), (1384028129,), (1384028143,), (1384028144,), (1384028528,), (1384028524,), (1384028525,), (1384028526,), (1384028572,), (1384028573,), (1384028574,), (1384028588,), (1384028589,), (1384028591,), (1384028614,), (1384028615,), (1384028616,), (1384028638,), (1384028639,), (1384028642,), (1384028644,), (1384028686,), (1384028687,), (1384028688,), (1384028690,), (1384028703,), (1384028706,), (1384028708,), (1384028710,), (1384028713,), (1384028741,), (1384028743,), (1384028745,), (1384028748,), (1384028759,), (1384028761,), (1384028762,), (1384028765,), (1384028769,), (1384028773,), (1384028785,), (1384028786,), (1384028787,), (1384028789,), (1384028791,), (1384028794,), (1384028804,), (1384028805,), (1384028806,), (1384028826,), (1384028827,), (1384028828,), (1384028830,), (1384028833,), (1384028844,), (1384028845,), (1384028847,), (1384028849,), (1384028872,), (1384028876,), (1384028877,), (1384028895,), (1384028893,), (1384028894,), (1384028917,), (1384028918,), (1384028921,), (1384028925,), (1384028935,), (1384028936,), (1384028937,), (1384028939,), (1384028942,), (1384028964,), (1384028965,), (1384028966,), (1384028968,), (1384028984,), (1384028985,), (1384028986,), (1384028988,), (1384029002,), (1384029003,), (1384029005,), (1384029008,), (1384029021,), (1384029022,), (1384029023,), (1384029025,), (1384029071,), (1384029072,), (1384029073,), (1384029091,), (1384029092,), (1384029093,), (1384029095,), (1384029098,), (1384029115,), (1384029116,), (1384029117,), (1384029119,), (1384029135,), (1384029136,), (1384029137,), (1384029158,), (1384029159,), (1384029160,), (1384029163,), (1384029180,), (1384029181,), (1384029182,), (1384029209,), (1384029210,), (1384029230,), (1384029232,), (1384029235,), (1384029238,), (1384029263,), (1384029255,), (1384029256,), (1384029258,), (1384029260,), (1384029274,), (1384029275,), (1384029276,), (1384029312,), (1384029313,), (1384029314,), (1384029332,), (1384029333,), (1384029347,), (1384029348,), (1384029349,), (1384029351,), (1384029371,), (1384029372,), (1384029373,), (1384029375,), (1384029392,), (1384029393,), (1384029394,), (1384029402,), (1384029410,), (1384029442,), (1384029443,), (1384029444,), (1384029468,), (1384029469,), (1384029472,), (1384029475,), (1384029485,), (1384029486,), (1384029487,), (1384029489,), (1384029492,), (1384029494,), (1384029512,), (1384029518,), (1384029522,), (1384029528,), (1384029560,), (1384029561,), (1384029564,), (1384035034,), (1384035022,), (1384035025,), (1384035027,), (1384035031,), (1384035045,), (1384035051,), (1384035052,), (1384035083,), (1384035087,), (1384035123,), (1384035141,), (1384035143,), (1384035145,), (1384035163,), (1384035165,), (1384035191,), (1384035195,), (1384035196,), (1384035198,), (1384035201,), (1384035210,), (1384035211,), (1384035212,), (1384035225,), (1384035226,), (1384035227,), (1384035229,), (1384035242,), (1384035244,), (1384035247,), (1384035251,), (1384035264,), (1384035265,), (1384035266,), (1384035268,), (1384035280,), (1384035281,), (1384035282,), (1384035308,), (1384035313,), (1384035321,), (1384035351,), (1384035352,), (1384035353,), (1384035355,), (1384035358,), (1384035370,), (1384035371,), (1384035372,), (1384035399,), (1384035402,), (1384035416,), (1384035447,), (1384035445,), (1384035446,), (1384035465,), (1384035466,), (1384035467,), (1384035470,), (1384035474,), (1384035496,), (1384035498,), (1384035500,), (1384035519,), (1384035521,), (1384035523,), (1384035526,), (1384035529,), (1384035548,), (1384035549,), (1384035550,), (1384035552,), (1384035555,), (1384035565,), (1384035566,), (1384035567,), (1384035569,), (1384035593,), (1384035594,), (1384035595,), (1384035597,), (1384035608,), (1384035609,), (1384035610,), (1384035612,), (1384035613,), (1384035630,), (1384035631,), (1384035633,), (1384035637,), (1384035641,), (1384035655,), (1384035656,), (1384035675,), (1384035676,), (1384035677,), (1384035679,), (1384035682,), (1384035690,), (1384035692,), (1384035695,), (1384035698,), (1384035699,), (1384035720,), (1384035725,), (1384035738,), (1384035740,), (1384035744,), (1384035754,), (1384035757,), (1384035774,), (1384035777,), (1384035779,), (1384035781,), (1384035783,), (1384035805,), (1384035798,), (1384035799,), (1384035800,), (1384035801,), (1384035803,), (1384036020,), (1384036040,), (1384036065,), (1384036089,), (1384036370,), (1384036391,), (1384036412,), (1384036437,), (1384036459,), (1384036852,), (1384036880,), (1384036905,), (1384036930,), (1384036960,), (1384037299,), (1384037342,), (1384037402,), (1384037450,), (1384038008,), (1384038511,), (1384038630,), (1384038654,), (1384038678,), (1384038702,), (1384038809,), (1384038811,), (1384038829,), (1384038855,), (1384039331,), (1384039372,), (1384039422,), (1384039452,), (1384039478,), (1384039518,), (1384039788,), (1384039789,), (1384039942,), (1384039961,), (1384039973,), (1384039975,), (1384040054,), (1384040055,), (1384040056,), (1384040058,), (1384040061,), (1384040085,), (1384040086,), (1384040087,), (1384040090,), (1384040190,), (1384040191,), (1384040193,), (1384040211,), (1384040212,), (1384040245,), (1384040239,), (1384040244,), (1384040292,), (1384040293,), (1384040318,), (1384040319,), (1384040320,), (1384040329,), (1384040332,), (1384040334,), (1384040337,), (1384040352,), (1384040354,), (1384040356,), (1384040390,), (1384040391,), (1384040392,), (1384040415,), (1384040416,), (1384040417,), (1384040421,), (1384040441,), (1384040442,), (1384040443,), (1384040468,), (1384040469,), (1384040470,), (1384040472,), (1384040483,), (1384040484,), (1384040487,), (1384040492,), (1384040496,), (1384040510,), (1384040511,), (1384040523,), (1384040524,), (1384040525,), (1384040545,), (1384040546,), (1384040547,), (1384040559,), (1384040560,), (1384040561,), (1384040563,), (1384040595,), (1384040599,), (1384040600,), (1384040619,), (1384040617,), (1384040618,), (1384040641,), (1384040643,), (1384040675,), (1384040676,), (1384040698,), (1384040699,), (1384040701,), (1384040721,), (1384040722,), (1384040723,), (1384040726,), (1384040730,), (1384040755,), (1384040756,), (1384040757,), (1384040820,), (1384040821,), (1384040843,), (1384040844,), (1384040866,), (1384040867,), (1384040868,), (1384040870,), (1384040882,), (1384040884,), (1384040886,), (1384040889,), (1384040893,), (1384040897,), (1384040906,), (1384040908,), (1384040910,), (1384040912,), (1384040915,), (1384040970,), (1384040971,), (1384040972,), (1384040974,), (1384040984,), (1384040985,), (1384040986,), (1384040988,), (1384040991,), (1384041014,), (1384041018,), (1384041021,), (1384041039,), (1384041037,), (1384041038,), (1384041054,), (1384041055,), (1384041056,), (1384041059,), (1384041110,), (1384041111,), (1384041131,), (1384041132,), (1384041134,), (1384041137,), (1384041162,), (1384041163,), (1384041175,), (1384041176,), (1384041177,), (1384041195,), (1384041196,), (1384041197,), (1384041200,), (1384041237,), (1384041239,), (1384041263,), (1384041264,), (1384041265,), (1384041267,), (1384041285,), (1384041286,), (1384041287,), (1384041311,), (1384041313,), (1384041315,), (1384041317,), (1384041320,), (1384041324,), (1384041334,), (1384041335,), (1384041336,), (1384041338,), (1384041349,), (1384041386,), (1384041388,), (1384041390,), (1384042203,), (1384042255,), (1384042307,), (1384042491,), (1384042554,), (1384042608,), (1384042656,), (1384043315,), (1384042998,), (1384043089,), (1384043160,), (1384043231,), (1384043947,), (1384043948,), (1384044428,), (1384051246,), (1384051212,), (1384052021,), (1384052040,), (1384052043,), (1384052046,), (1384052049,), (1384052063,), (1384052086,), (1384052088,), (1384052091,), (1384052095,), (1384052144,), (1384052147,), (1384052151,), (1384052154,), (1384052156,), (1384052171,), (1384052173,), (1384052176,), (1384052178,), (1384052183,), (1384052186,), (1384052201,), (1384052203,), (1384052205,), (1384052208,), (1384052212,), (1384052220,), (1384052222,), (1384052224,), (1384052227,), (1384052254,), (1384052257,), (1384052260,), (1384052263,), (1384052266,), (1384052271,), (1384052306,), (1384052308,), (1384052310,), (1384052313,), (1384052319,), (1384052322,), (1384052332,), (1384052334,), (1384052336,), (1384052353,), (1384052356,), (1384052357,), (1384052360,), (1384052365,), (1384052368,), (1384052396,), (1384052383,), (1384052386,), (1384052388,), (1384052391,), (1384052407,), (1384052410,), (1384052413,), (1384052415,), (1384052418,), (1384052496,), (1384052498,), (1384052500,), (1384052503,), (1384052507,), (1384052523,), (1384052524,), (1384052525,), (1384052527,), (1384052539,), (1384052542,), (1384052544,), (1384052546,), (1384052548,), (1384052556,), (1384052557,), (1384052558,), (1384052561,), (1384052585,), (1384052588,), (1384052599,), (1384052621,), (1384052623,), (1384052624,), (1384052643,), (1384052644,), (1384052645,), (1384052647,), (1384052655,), (1384052657,), (1384052658,), (1384052687,), (1384052688,), (1384052689,), (1384052699,), (1384052764,), (1384052765,), (1384052767,), (1384052797,), (1384052798,), (1384052800,), (1384052803,), (1384052806,), (1384052810,), (1384052825,), (1384052851,), (1384052848,), (1384052910,), (1384052929,), (1384052931,), (1384052932,), (1384052953,), (1384052954,), (1384052955,), (1384052957,), (1384052961,), (1384052982,), (1384052985,), (1384052987,), (1384052994,), (1384053001,), (1384053037,), (1384053052,), (1384053054,), (1384053055,), (1384053057,), (1384053070,), (1384053071,), (1384053089,), (1384053091,), (1384053095,), (1384053099,), (1384053117,), (1384053119,), (1384053122,), (1384053125,), (1384053127,), (1384053129,), (1384053135,), (1384053136,), (1384053137,), (1384053139,), (1384053161,), (1384053162,), (1384053163,), (1384053164,), (1384053178,), (1384053180,), (1384053182,), (1384053184,), (1384053211,), (1384053207,), (1384053208,), (1384053209,), (1384053224,), (1384053225,), (1384053226,), (1384053227,), (1384053245,), (1384053246,), (1384053247,), (1384053249,), (1384053258,), (1384053259,), (1384053260,), (1384053262,), (1384053280,), (1384053281,), (1384053282,), (1384053284,), (1384053286,), (1384053288,), (1384053303,), (1384053305,), (1384053309,), (1384053313,), (1384053331,), (1384053333,), (1384053335,), (1384053337,), (1384053339,), (1384053340,), (1384053342,), (1384053343,), (1384053349,), (1384053350,), (1384053352,), (1384053354,), (1384053356,), (1384053366,), (1384053367,), (1384053368,), (1384053385,), (1384053387,), (1384053388,), (1384053390,), (1384053408,), (1384053414,), (1384053417,), (1384053420,), (1384053422,), (1384053425,), (1384053426,), (1384053427,), (1384053430,), (1384053435,), (1384053616,), (1384053639,), (1384053663,), (1384054070,), (1384054095,), (1384054121,), (1384054129,), (1384054132,), (1384054139,), (1384054215,), (1384054417,), (1384054207,), (1384054212,), (1384054213,), (1384054230,), (1384054231,), (1384054233,), (1384054251,), (1384054276,), (1384054301,), (1384054392,), (1384054509,), (1384054531,), (1384054555,), (1384054579,), (1384054873,), (1384054898,), (1384054919,), (1384054944,), (1384054971,), (1384055109,), (1384055139,), (1384055164,), (1384055660,), (1384055701,), (1384055745,), (1384055775,), (1384055807,), (1384056057,), (1384056080,), (1384056108,), (1384056131,), (1384056139,), (1384056202,), (1384056230,), (1384056255,), (1384056280,), (1384056422,), (1384056436,), (1384056437,), (1384056439,), (1384056465,), (1384056468,), (1384056470,), (1384056471,), (1384056474,), (1384056484,), (1384056485,), (1384056486,), (1384056488,), (1384056490,), (1384056512,), (1384056513,), (1384056515,), (1384056518,), (1384056520,), (1384056523,), (1384056529,), (1384056538,), (1384056541,), (1384056542,), (1384056545,), (1384056548,), (1384056550,), (1384056571,), (1384056574,), (1384056576,), (1384056579,), (1384056582,), (1384056595,), (1384056600,), (1384056602,), (1384056604,), (1384056646,), (1384056635,), (1384056640,), (1384056642,), (1384056644,), (1384056653,), (1384056654,), (1384056655,), (1384056656,), (1384056682,), (1384056684,), (1384056685,), (1384056687,), (1384056690,), (1384056691,), (1384056699,), (1384056700,), (1384056701,), (1384056702,), (1384056719,), (1384056721,), (1384056777,), (1384056838,), (1384056848,), (1384056851,), (1384056870,), (1384056871,), (1384056872,), (1384056874,), (1384056876,), (1384056878,), (1384056897,), (1384056900,), (1384056906,), (1384056952,), (1384056953,), (1384056954,), (1384056956,), (1384056958,), (1384057000,), (1384057002,), (1384057003,), (1384057006,), (1384057015,), (1384057016,), (1384057019,), (1384057026,), (1384057029,), (1384057032,), (1384057039,), (1384057040,), (1384057041,), (1384057043,), (1384057049,), (1384057056,), (1384057058,), (1384057076,), (1384057072,), (1384057073,), (1384057074,), (1384057095,), (1384057096,), (1384057097,), (1384057099,), (1384057109,), (1384057110,), (1384057111,), (1384057112,), (1384057114,), (1384057116,), (1384057130,), (1384057132,), (1384057133,), (1384057150,), (1384057152,), (1384057154,), (1384057158,), (1384057163,), (1384057182,), (1384057184,), (1384057185,), (1384057188,), (1384057193,), (1384057195,), (1384057206,), (1384057207,), (1384057211,), (1384057216,), (1384057271,), (1384057273,), (1384057274,), (1384057276,), (1384057292,), (1384057293,), (1384057294,), (1384057295,), (1384057297,), (1384057299,), (1384057313,), (1384057315,), (1384057316,), (1384057318,), (1384057319,), (1384057321,), (1384057337,), (1384057338,), (1384057339,), (1384057366,), (1384057367,), (1384057369,), (1384057371,), (1384057373,), (1384057375,), (1384057379,), (1384057380,), (1384057390,), (1384057396,), (1384057398,), (1384057401,), (1384057404,), (1384057406,), (1384057428,), (1384057430,), (1384057432,), (1384057434,), (1384057447,), (1384057448,), (1384057450,), (1384057452,), (1384057454,), (1384057455,), (1384057466,), (1384057470,), (1384057482,), (1384057473,), (1384057476,), (1384057478,), (1384057479,), (1384057491,), (1384057492,), (1384057493,), (1384057495,), (1384057554,), (1384057560,), (1384057565,), (1384057567,), (1384057569,), (1384057571,), (1384057586,), (1384057587,), (1384057588,), (1384057590,), (1384057591,), (1384057593,), (1384057616,), (1384057618,), (1384057619,), (1384057621,), (1384057624,), (1384057636,), (1384057637,), (1384057638,), (1384057640,), (1384057665,), (1384057673,), (1384057676,), (1384057679,), (1384057684,), (1384057695,), (1384057728,), (1384057730,), (1384057731,), (1384057740,), (1384057741,), (1384057743,), (1384057746,), (1384057749,), (1384057785,), (1384057787,), (1384057801,), (1384057802,), (1384057803,), (1384057805,), (1384057809,), (1384057830,), (1384057833,), (1384057834,), (1384057836,), (1384057839,), (1384057853,), (1384057856,), (1384057859,), (1384057863,), (1384057870,), (1384057887,), (1384057920,), (1384057924,), (1384057928,), (1384058715,), (1384058762,), (1384058812,), (1384058857,), (1384058978,), (1384059004,), (1384059029,), (1384059427,), (1384060178,), (1384059229,), (1384059255,), (1384059282,), (1384059314,), (1384059369,), (1384059700,), (1384059740,), (1384059787,), (1384059846,), (1384059905,), (1384059948,), (1384060133,), (1384060325,), (1384060360,), (1384060394,), (1384060420,), (1384060443,), (1384060711,), (1384060734,), (1384060762,), (1384060798,), (1384060822,), (1384060853,), (1384060859,), (1384060885,), (1384060909,), (1384060935,), (1384061140,), (1384061141,), (1384061162,), (1384061199,), (1384061200,), (1384061201,), (1384061203,), (1384061207,), (1384061209,), (1384061229,), (1384061235,), (1384061237,), (1384061240,), (1384061314,), (1384061322,), (1384061347,), (1384061374,), (1384061399,), (1384061408,), (1384061467,), (1384061484,), (1384061487,), (1384061489,), (1384061491,), (1384061497,), (1384061681,), (1384061711,), (1384061712,), (1384061714,), (1384061718,), (1384061818,), (1384061820,), (1384061821,), (1384061823,), (1384061938,), (1384061966,), (1384062156,), (1384062158,), (1384062161,), (1384062168,), (1384062171,), (1384062240,), (1384062246,), (1384062248,), (1384062251,), (1384062255,), (1384062259,), (1384062282,), (1384062275,), (1384062278,), (1384062280,), (1384062423,), (1384062453,), (1384062476,), (1384062519,), (1384062556,), (1384062581,), (1384062715,), (1384062717,), (1384062718,), (1384062734,), (1384062735,), (1384062737,), (1384062760,), (1384062788,), (1384062812,), (1384062881,), (1384062883,), (1384062885,), (1384062887,), (1384062890,), (1384062894,), (1384062906,), (1384062907,), (1384062912,), (1384062937,), (1384063039,), (1384063048,), (1384063061,), (1384063065,), (1384063068,), (1384063071,), (1384063080,), (1384063082,), (1384063140,), (1384063163,), (1384063176,), (1384063178,), (1384063181,), (1384063210,), (1384063213,), (1384063214,), (1384063363,), (1384063371,), (1384063380,), (1384063386,), (1384063396,), (1384063405,), (1384063408,), (1384063410,), (1384063413,), (1384063417,), (1384063420,), (1384063436,), (1384063437,), (1384063438,), (1384063524,), (1384063549,), (1384063571,), (1384063596,), (1384063647,), (1384063781,), (1384063783,), (1384063785,), (1384063787,), (1384063790,), (1384063834,), (1384063866,), (1384063877,), (1384063887,), (1384063889,), (1384064008,), (1384064060,), (1384064003,), (1384064004,), (1384064039,), (1384064041,), (1384064043,), (1384064046,), (1384064049,), (1384064052,), (1384064058,), (1384064059,), (1384064062,), (1384064063,), (1384064064,), (1384064072,), (1384064075,), (1384064099,), (1384064101,), (1384064102,), (1384064104,), (1384064128,), (1384064130,), (1384064132,), (1384064137,), (1384064271,), (1384064288,), (1384064289,), (1384064292,), (1384064296,), (1384064351,), (1384064353,), (1384064355,), (1384064359,), (1384064363,), (1384064426,), (1384064447,), (1384064451,), (1384064467,), (1384064468,), (1384064470,), (1384064497,), (1384064499,), (1384064500,), (1384064542,), (1384064543,), (1384064544,), (1384064547,), (1384064552,), (1384064582,), (1384064584,), (1384064586,), (1384064590,), (1384064594,), (1384064598,), (1384064645,), (1384064653,), (1384064675,), (1384064683,), (1384064719,), (1384064720,), (1384064723,), (1384064753,), (1384064754,), (1384064755,), (1384064757,), (1384064762,), (1384064818,), (1384064820,), (1384064824,), (1384064828,), (1384064832,), (1384065114,), (1384065068,), (1384065075,), (1384065076,), (1384065078,), (1384065083,), (1384065176,), (1384065177,), (1384065293,), (1384065295,), (1384065296,), (1384065298,), (1384065302,), (1384065394,), (1384065406,), (1384065408,), (1384065429,), (1384065437,), (1384065724,), (1384065750,), (1384065773,), (1384065780,), (1384065789,), (1384065858,), (1384065865,), (1384065868,), (1384065872,), (1384065877,), (1384066028,), (1384066046,), (1384066067,), (1384066071,), (1384066078,), (1384066082,), (1384066094,), (1384066095,), (1384066096,), (1384066115,), (1384066116,), (1384066118,), (1384066121,), (1384066156,), (1384066158,), (1384066160,), (1384066162,), (1384066167,), (1384066187,), (1384066205,), (1384066207,), (1384066211,), (1384066215,), (1384066233,), (1384066237,), (1384066239,), (1384066292,), (1384066309,), (1384066311,), (1384066314,), (1384066603,), (1384066626,), (1384066649,), (1384066675,), (1384067061,), (1384067065,), (1384067068,), (1384067072,), (1384067085,), (1384067096,), (1384067124,), (1384067340,), (1384067871,), (1384067286,), (1384067314,), (1384067708,), (1384067734,), (1384067766,), (1384067793,), (1384067823,), (1384068296,), (1384068346,), (1384068397,), (1384068952,), (1384068977,), (1384069000,), (1384069032,), (1384069058,), (1384069538,), (1384069558,), (1384069561,), (1384069583,), (1384069790,), (1384069822,), (1384069867,), (1384070114,), (1384070137,), (1384070151,), (1384070158,), (1384070233,), (1384070235,), (1384070250,), (1384070252,), (1384070256,), (1384070325,), (1384070334,), (1384070336,), (1384070350,), (1384070354,), (1384070381,), (1384070383,), (1384070400,), (1384070574,), (1384070576,), (1384070577,), (1384070580,), (1384070584,), (1384070588,), (1384070657,), (1384070658,), (1384070660,), (1384070666,), (1384070671,), (1384070675,), (1384070715,), (1384070740,), (1384070745,), (1384070747,), (1384070748,), (1384070810,), (1384070823,), (1384070830,), (1384070846,), (1384070873,), (1384070878,), (1384070879,), (1384070893,), (1384070897,), (1384070922,), (1384070926,), (1384070929,), (1384070933,), (1384070968,), (1384070952,), (1384070954,), (1384070956,), (1384070960,), (1384070964,), (1384070985,), (1384070988,), (1384070991,), (1384071024,), (1384071026,), (1384071027,), (1384071063,), (1384071065,), (1384071067,), (1384071070,), (1384071074,), (1384071079,), (1384071172,), (1384071176,), (1384071178,), (1384071190,), (1384071202,), (1384071269,), (1384071282,), (1384071290,), (1384071561,), (1384071585,), (1384071611,), (1384071640,), (1384071646,), (1384071652,), (1384071664,), (1384071673,), (1384071674,), (1384071675,), (1384071681,), (1384071729,), (1384071746,), (1384071747,), (1384071749,), (1384071767,), (1384071768,), (1384071790,), (1384071936,), (1384071938,), (1384071939,), (1384071975,), (1384072089,), (1384072091,), (1384072092,), (1384072094,), (1384072099,), (1384072119,), (1384072121,), (1384072122,), (1384072123,), (1384072154,), (1384072166,), (1384072170,), (1384072172,), (1384072205,), (1384072247,), (1384072196,), (1384072197,), (1384072198,), (1384072200,), (1384072202,), (1384072222,), (1384072223,), (1384072225,), (1384072229,), (1384072233,), (1384072236,), (1384072243,), (1384072245,), (1384072257,), (1384072268,), (1384072270,), (1384072274,), (1384072341,), (1384072343,), (1384072344,), (1384072361,), (1384072369,), (1384072406,), (1384072407,), (1384072411,), (1384072470,), (1384072472,), (1384072473,), (1384072761,), (1384072762,), (1384072763,), (1384072924,), (1384072926,), (1384072927,), (1384073009,), (1384073010,), (1384073012,), (1384073017,), (1384073022,), (1384073052,), (1384073054,), (1384073055,), (1384073057,), (1384073148,), (1384073162,), (1384073165,), (1384073171,), (1384073176,), (1384073182,), (1384073194,), (1384073196,), (1384073198,), (1384073200,), (1384073239,), (1384073240,), (1384073242,), (1384073246,), (1384073269,), (1384073280,), (1384073324,), (1384073325,), (1384073326,), (1384073390,), (1384073394,), (1384073417,), (1384073420,), (1384073421,), (1384073464,), (1384073461,), (1384073463,), (1384073671,), (1384073697,), (1384073740,), (1384073766,), (1384073936,), (1384073938,), (1384073941,), (1384073945,), (1384073949,), (1384073951,), (1384073965,), (1384073966,), (1384073976,), (1384073979,), (1384073980,), (1384073982,), (1384073990,), (1384074111,), (1384074139,), (1384074173,), (1384074417,), (1384074419,), (1384074420,), (1384074423,), (1384074427,), (1384074449,), (1384074451,), (1384074454,), (1384074459,), (1384074463,), (1384074465,), (1384074489,), (1384074490,), (1384074515,), (1384074539,), (1384074564,), (1384074868,), (1384074876,), (1384074903,), (1384074906,), (1384074908,), (1384074927,), (1384074929,), (1384075570,), (1384088784,), (1384089617,), (1384089706,), (1384090500,), (1384090501,), (1384091084,), (1384091349,), (1384091353,), (1384091366,), (1384091380,), (1384091587,), (1384091625,), (1384091626,), (1384091836,), (1384091861,), (1384092041,), (1384092042,), (1384092043,), (1384092046,), (1384092147,), (1384092163,), (1384092169,), (1384092198,), (1384092250,), (1384092251,), (1384092252,), (1384092328,), (1384092602,), (1384092607,), (1384092627,), (1384092636,), (1384092728,), (1384092726,), (1384092727,), (1384092761,), (1384092769,), (1384093108,), (1384093186,), (1384093408,), (1384093595,), (1384093598,), (1384093967,), (1384094220,), (1384094607,), (1384094661,), (1384094911,), (1384095560,), (1384095599,), (1384095603,), (1384096058,), (1384096138,), (1384096237,), (1384096326,), (1384096368,), (1384097503,), (1384097531,), (1384097567,), (1384097754,), (1384097791,), (1384097832,), (1384097863,), (1384097905,), (1384098205,), (1384098069,), (1384098098,), (1384098127,), (1384098154,), (1384098182,), (1384098458,), (1384098485,), (1384098509,), (1384098536,), (1384098805,), (1384098851,), (1384098892,), (1384098921,), (1384099812,), (1384099842,), (1384099866,), (1384100443,), (1384100467,), (1384100493,), (1384100518,), (1384100544,), (1384100974,), (1384100998,), (1384101039,), (1384101715,), (1384101719,), (1384102240,), (1384102730,), (1384102811,), (1384102812,), (1384102854,), (1384102881,), (1384102907,), (1384102935,), (1384103002,), (1384103258,), (1384103264,), (1384103355,), (1384103356,), (1384103357,), (1384103390,), (1384103438,), (1384103704,), (1384103703,), (1384103893,), (1384103895,), (1384103896,), (1384103897,), (1384104508,), (1384104809,), (1384104811,), (1384104812,), (1384104880,), (1384104899,), (1384104906,), (1384105124,), (1384105127,), (1384105130,), (1384105132,), (1384105138,), (1384105164,), (1384105207,), (1384105208,), (1384105239,), (1384105280,), (1384105306,), (1384105332,), (1384105487,), (1384105491,), (1384105493,), (1384105517,), (1384105527,), (1384105530,), (1384105635,), (1384105666,), (1384105804,), (1384105828,), (1384105862,), (1384106335,), (1384106377,), (1384106406,), (1384106479,), (1384106547,), (1384106876,), (1384106902,), (1384107267,), (1384107293,), (1384107316,), (1384107341,), (1384107713,), (1384107738,), (1384107765,), (1384107789,), (1384107815,), (1384108408,), (1384108262,), (1384108328,), (1384108406,), (1384108851,), (1384108881,), (1384109599,), (1384109643,), (1384109695,), (1384110022,), (1384110027,), (1384110868,), (1384110960,), (1384111039,), (1384111782,), (1384111895,), (1384111940,), (1384111956,), (1384111960,), (1384112408,), (1384112475,), (1384112532,), (1384112571,), (1384112606,), (1384113051,), (1384113111,), (1384113158,), (1384113187,), (1384113466,), (1384113487,), (1384113493,), (1384113495,), (1384113509,), (1384113749,), (1384113750,), (1384113751,), (1384113753,), (1384113756,), (1384113759,), (1384113957,), (1384113958,), (1384113959,), (1384114090,), (1384114093,), (1384114095,), (1384114098,), (1384114237,), (1384114282,), (1384114583,), (1384114594,), (1384114627,), (1384114722,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17092025': {'nb_upload': 51, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26937443]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1384114722, 1384114627, 1384114594, 1384114583] map_info['map_portfolio_photo'] : {26937443: [1384114722, 1384114627, 1384114594, 1384114583, 1384114282, 1384114237, 1384114098, 1384114095, 1384114093, 1384114090, 1384113959, 1384113958, 1384113957, 1384113759, 1384113756, 1384113753, 1384113751, 1384113750, 1384113749, 1384113509, 1384113495, 1384113493, 1384113487, 1384113466, 1384113187, 1384113158, 1384113111, 1384113051, 1384112606, 1384112571, 1384112532, 1384112475, 1384112408, 1384111960, 1384111956, 1384111940, 1384111895, 1384111782, 1384111039, 1384110960, 1384110868, 1384110027, 1384110022, 1384109695, 1384109643, 1384109599, 1384108881, 1384108851, 1384108406, 1384108328, 1384108262]} final : True mtd_id 4302 list_pids : [1384114722, 1384114627, 1384114594, 1384114583] Looping around the photos to save general results len do output : 1 /26937443Didn'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, '3734138') ('4302', '26937443', '1384114722', None, None, None, None, None, '3734138') ('4302', None, None, None, None, None, None, None, '3734138') ('4302', '26937443', '1384114627', None, None, None, None, None, '3734138') ('4302', None, None, None, None, None, None, None, '3734138') ('4302', '26937443', '1384114594', None, None, None, None, None, '3734138') ('4302', None, None, None, None, None, None, None, '3734138') ('4302', '26937443', '1384114583', None, None, None, None, None, '3734138') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '26937443', 'None', None, None, None, None, '3734138'), ('4302', '26937443', '1384114722', None, None, None, None, None, '3734138'), ('4302', '26937443', '1384114627', None, None, None, None, None, '3734138'), ('4302', '26937443', '1384114594', None, None, None, None, None, '3734138'), ('4302', '26937443', '1384114583', None, None, None, None, None, '3734138')] time used for this insertion : 0.027711153030395508 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.460339307785034 time spend to save output : 0.027936935424804688 total time spend for step 5 : 2.488276243209839 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 (3734138) 2.28user 2.49system 0:11.42elapsed 41%CPU (0avgtext+0avgdata 157332maxresident)k 1008inputs+11408outputs (6major+74768minor)pagefaults 0swaps