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 : 3613034 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 (3316268) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3316268) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25155194 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3316268'] with mtr_portfolio_ids : ['25155194'] and first list_photo_ids : [] new path : /proc/3613034/ Name: python3 Umask: 0002 State: R (running) Tgid: 3613034 Ngid: 0 Pid: 3613034 PPid: 3613033 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3613034 NSpid: 3613034 NSpgid: 3609130 NSsid: 3609130 VmPeak: 1106896 kB VmSize: 1106896 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100520 kB VmRSS: 100520 kB RssAnon: 59808 kB RssFile: 40712 kB RssShmem: 0 kB VmData: 865648 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: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3613034', 'Ngid': '0', 'Pid': '3613034', 'PPid': '3613033', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3613034', 'NSpid': '3613034', 'NSpgid': '3609130', 'NSsid': '3609130', 'VmPeak': '1106896 kB', 'VmSize': '1106896 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100520 kB', 'VmRSS': '100520 kB', 'RssAnon': '59808 kB', 'RssFile': '40712 kB', 'RssShmem': '0 kB', 'VmData': '865648 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': '88'} ('datou_batch_current', '3613034', '1106896', '0', '1106896', '865648', '100520', b'', 'marlene', '3316268') 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 (25155194) 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 (3316268 ) ) 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 (25155194) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1373084796, 'portfolio_id': 25155194}, {'photo_id': 1373084788, 'portfolio_id': 25155194}, {'photo_id': 1373084777, 'portfolio_id': 25155194}, {'photo_id': 1373084760, 'portfolio_id': 25155194}, {'photo_id': 1373084744, 'portfolio_id': 25155194}, {'photo_id': 1373084712, 'portfolio_id': 25155194}, {'photo_id': 1373084709, 'portfolio_id': 25155194}, {'photo_id': 1373084685, 'portfolio_id': 25155194}, {'photo_id': 1373084676, 'portfolio_id': 25155194}, {'photo_id': 1373084674, 'portfolio_id': 25155194}, {'photo_id': 1373084671, 'portfolio_id': 25155194}, {'photo_id': 1373084669, 'portfolio_id': 25155194}, {'photo_id': 1373084667, 'portfolio_id': 25155194}, {'photo_id': 1373084666, 'portfolio_id': 25155194}, {'photo_id': 1373084584, 'portfolio_id': 25155194}, {'photo_id': 1373084509, 'portfolio_id': 25155194}, {'photo_id': 1373084507, 'portfolio_id': 25155194}, {'photo_id': 1373084506, 'portfolio_id': 25155194}, {'photo_id': 1373084484, 'portfolio_id': 25155194}, {'photo_id': 1373084481, 'portfolio_id': 25155194}, {'photo_id': 1373084478, 'portfolio_id': 25155194}, {'photo_id': 1373084438, 'portfolio_id': 25155194}, {'photo_id': 1373084436, 'portfolio_id': 25155194}, {'photo_id': 1373084434, 'portfolio_id': 25155194}, {'photo_id': 1373084432, 'portfolio_id': 25155194}, {'photo_id': 1373084429, 'portfolio_id': 25155194}, {'photo_id': 1373084422, 'portfolio_id': 25155194}, {'photo_id': 1373084402, 'portfolio_id': 25155194}, {'photo_id': 1373084401, 'portfolio_id': 25155194}, {'photo_id': 1373084399, 'portfolio_id': 25155194}, {'photo_id': 1373084397, 'portfolio_id': 25155194}, {'photo_id': 1373084393, 'portfolio_id': 25155194}, {'photo_id': 1373084388, 'portfolio_id': 25155194}, {'photo_id': 1373084374, 'portfolio_id': 25155194}, {'photo_id': 1373084370, 'portfolio_id': 25155194}, {'photo_id': 1373084367, 'portfolio_id': 25155194}, {'photo_id': 1373084362, 'portfolio_id': 25155194}, {'photo_id': 1373084355, 'portfolio_id': 25155194}, {'photo_id': 1373084350, 'portfolio_id': 25155194}, {'photo_id': 1373084345, 'portfolio_id': 25155194}, {'photo_id': 1373084326, 'portfolio_id': 25155194}, {'photo_id': 1373084324, 'portfolio_id': 25155194}, {'photo_id': 1373084321, 'portfolio_id': 25155194}, {'photo_id': 1373084318, 'portfolio_id': 25155194}, {'photo_id': 1373084315, 'portfolio_id': 25155194}, {'photo_id': 1373084311, 'portfolio_id': 25155194}, {'photo_id': 1373084283, 'portfolio_id': 25155194}, {'photo_id': 1373084280, 'portfolio_id': 25155194}, {'photo_id': 1373084278, 'portfolio_id': 25155194}, {'photo_id': 1373084276, 'portfolio_id': 25155194}, {'photo_id': 1373084274, 'portfolio_id': 25155194}, {'photo_id': 1373084272, 'portfolio_id': 25155194}, {'photo_id': 1373084258, 'portfolio_id': 25155194}, {'photo_id': 1373084255, 'portfolio_id': 25155194}, {'photo_id': 1373084252, 'portfolio_id': 25155194}, {'photo_id': 1373084250, 'portfolio_id': 25155194}, {'photo_id': 1373084249, 'portfolio_id': 25155194}, {'photo_id': 1373084244, 'portfolio_id': 25155194}, {'photo_id': 1373084225, 'portfolio_id': 25155194}, {'photo_id': 1373084223, 'portfolio_id': 25155194}, {'photo_id': 1373084221, 'portfolio_id': 25155194}, {'photo_id': 1373084220, 'portfolio_id': 25155194}, {'photo_id': 1373084218, 'portfolio_id': 25155194}, {'photo_id': 1373084217, 'portfolio_id': 25155194}, {'photo_id': 1373084197, 'portfolio_id': 25155194}] map_portfolio_id_photo_id: {25155194: [1373084796, 1373084788, 1373084777, 1373084760, 1373084744, 1373084712, 1373084709, 1373084685, 1373084676, 1373084674, 1373084671, 1373084669, 1373084667, 1373084666, 1373084584, 1373084509, 1373084507, 1373084506, 1373084484, 1373084481, 1373084478, 1373084438, 1373084436, 1373084434, 1373084432, 1373084429, 1373084422, 1373084402, 1373084401, 1373084399, 1373084397, 1373084393, 1373084388, 1373084374, 1373084370, 1373084367, 1373084362, 1373084355, 1373084350, 1373084345, 1373084326, 1373084324, 1373084321, 1373084318, 1373084315, 1373084311, 1373084283, 1373084280, 1373084278, 1373084276, 1373084274, 1373084272, 1373084258, 1373084255, 1373084252, 1373084250, 1373084249, 1373084244, 1373084225, 1373084223, 1373084221, 1373084220, 1373084218, 1373084217, 1373084197]} ##### 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.015750885009765625 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Jul 22 00:12: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 (25155194) 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 : 25155194 get user id for portfolio 25155194 get sub ptf for main ptf 25155194, type 3726 and hashtags ['environnement', 'Carton_gris', 'flou', 'autre_refus', 'papier', 'Teint_Dans_La_Masse', 'cartonnette', 'metal', 'plastique', 'Carton_brun', 'mal_croppe', 'kraft'] 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`=25155194 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_gris','flou','autre_refus','papier','Teint_Dans_La_Masse','cartonnette','metal','plastique','Carton_brun','mal_croppe','kraft')) 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`=25155194 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_gris','flou','autre_refus','papier','Teint_Dans_La_Masse','cartonnette','metal','plastique','Carton_brun','mal_croppe','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 25155194, 'sub_port_id': 25155197, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964033, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 56)}, 'Carton_brun': {'main_port_id': 25155194, 'sub_port_id': 25155198, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964034, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 56)}, 'plastique': {'main_port_id': 25155194, 'sub_port_id': 25155199, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964035, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 56)}, 'environnement': {'main_port_id': 25155194, 'sub_port_id': 25155200, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964036, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 56)}, 'Carton_gris': {'main_port_id': 25155194, 'sub_port_id': 25155201, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964037, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 56)}, 'autre_refus': {'main_port_id': 25155194, 'sub_port_id': 25155202, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964038, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 56)}, 'mal_croppe': {'main_port_id': 25155194, 'sub_port_id': 25155203, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964039, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 25155194, 'sub_port_id': 25155204, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964040, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 56)}, 'flou': {'main_port_id': 25155194, 'sub_port_id': 25155205, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964041, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 56)}, 'cartonnette': {'main_port_id': 25155194, 'sub_port_id': 25155206, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964042, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 56)}, 'metal': {'main_port_id': 25155194, 'sub_port_id': 25155207, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964043, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 56)}, 'papier': {'main_port_id': 25155194, 'sub_port_id': 25155208, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964044, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25155197 , 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=25155194 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 (25155197) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25155194) result : ((1373084197,), (1373084217,), (1373084218,), (1373084220,), (1373084221,), (1373084223,), (1373084225,), (1373084244,), (1373084249,), (1373084250,), (1373084252,), (1373084255,), (1373084258,), (1373084272,), (1373084274,), (1373084276,), (1373084278,), (1373084280,), (1373084283,), (1373084311,), (1373084315,), (1373084318,), (1373084321,), (1373084324,), (1373084326,), (1373084345,), (1373084350,), (1373084355,), (1373084362,), (1373084367,), (1373084370,), (1373084374,), (1373084388,), (1373084393,), (1373084397,), (1373084399,), (1373084401,), (1373084402,), (1373084422,), (1373084429,), (1373084432,), (1373084434,), (1373084436,), (1373084438,), (1373084478,), (1373084481,), (1373084484,), (1373084506,), (1373084507,), (1373084509,), (1373084584,), (1373084666,), (1373084667,), (1373084669,), (1373084671,), (1373084674,), (1373084676,), (1373084685,), (1373084709,), (1373084712,), (1373084744,), (1373084760,), (1373084777,), (1373084788,), (1373084796,)) 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 25155198 , 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=25155194 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 (25155198) result : ((1373084308,), (1373084424,), (1373084425,), (1373084426,), (1373084427,), (1373084649,), (1373084650,), (1373084695,), (1373084696,), (1373084697,), (1373084698,), (1373084699,), (1373084756,), (1373084757,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25155194) result : ((1373084197,), (1373084217,), (1373084218,), (1373084220,), (1373084221,), (1373084223,), (1373084225,), (1373084244,), (1373084249,), (1373084250,), (1373084252,), (1373084255,), (1373084258,), (1373084272,), (1373084274,), (1373084276,), (1373084278,), (1373084280,), (1373084283,), (1373084311,), (1373084315,), (1373084318,), (1373084321,), (1373084324,), (1373084326,), (1373084345,), (1373084350,), (1373084355,), (1373084362,), (1373084367,), (1373084370,), (1373084374,), (1373084388,), (1373084393,), (1373084397,), (1373084399,), (1373084401,), (1373084402,), (1373084422,), (1373084429,), (1373084432,), (1373084434,), (1373084436,), (1373084438,), (1373084478,), (1373084481,), (1373084484,), (1373084506,), (1373084507,), (1373084509,), (1373084584,), (1373084666,), (1373084667,), (1373084669,), (1373084671,), (1373084674,), (1373084676,), (1373084685,), (1373084709,), (1373084712,), (1373084744,), (1373084760,), (1373084777,), (1373084788,), (1373084796,)) 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 25155199 , 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=25155194 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 (25155199) result : ((1373084310,), (1373084312,), (1373084313,), (1373084314,), (1373084358,), (1373084359,), (1373084428,), (1373084662,), (1373084767,), (1373084768,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25155194) result : ((1373084197,), (1373084217,), (1373084218,), (1373084220,), (1373084221,), (1373084223,), (1373084225,), (1373084244,), (1373084249,), (1373084250,), (1373084252,), (1373084255,), (1373084258,), (1373084272,), (1373084274,), (1373084276,), (1373084278,), (1373084280,), (1373084283,), (1373084311,), (1373084315,), (1373084318,), (1373084321,), (1373084324,), (1373084326,), (1373084345,), (1373084350,), (1373084355,), (1373084362,), (1373084367,), (1373084370,), (1373084374,), (1373084388,), (1373084393,), (1373084397,), (1373084399,), (1373084401,), (1373084402,), (1373084422,), (1373084429,), (1373084432,), (1373084434,), (1373084436,), (1373084438,), (1373084478,), (1373084481,), (1373084484,), (1373084506,), (1373084507,), (1373084509,), (1373084584,), (1373084666,), (1373084667,), (1373084669,), (1373084671,), (1373084674,), (1373084676,), (1373084685,), (1373084709,), (1373084712,), (1373084744,), (1373084760,), (1373084777,), (1373084788,), (1373084796,)) 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 25155200 , 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=25155194 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 (25155200) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25155194) result : ((1373084197,), (1373084217,), (1373084218,), (1373084220,), (1373084221,), (1373084223,), (1373084225,), (1373084244,), (1373084249,), (1373084250,), (1373084252,), (1373084255,), (1373084258,), (1373084272,), (1373084274,), (1373084276,), (1373084278,), (1373084280,), (1373084283,), (1373084311,), (1373084315,), (1373084318,), (1373084321,), (1373084324,), (1373084326,), (1373084345,), (1373084350,), (1373084355,), (1373084362,), (1373084367,), (1373084370,), (1373084374,), (1373084388,), (1373084393,), (1373084397,), (1373084399,), (1373084401,), (1373084402,), (1373084422,), (1373084429,), (1373084432,), (1373084434,), (1373084436,), (1373084438,), (1373084478,), (1373084481,), (1373084484,), (1373084506,), (1373084507,), (1373084509,), (1373084584,), (1373084666,), (1373084667,), (1373084669,), (1373084671,), (1373084674,), (1373084676,), (1373084685,), (1373084709,), (1373084712,), (1373084744,), (1373084760,), (1373084777,), (1373084788,), (1373084796,)) 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 25155201 , 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=25155194 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 (25155201) result : ((1373084303,), (1373084353,), (1373084420,), (1373084630,), (1373084634,), (1373084638,), (1373084643,), (1373084647,), (1373084657,), (1373084659,), (1373084660,), (1373084683,), (1373084686,), (1373084687,), (1373084745,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25155194) result : ((1373084197,), (1373084217,), (1373084218,), (1373084220,), (1373084221,), (1373084223,), (1373084225,), (1373084244,), (1373084249,), (1373084250,), (1373084252,), (1373084255,), (1373084258,), (1373084272,), (1373084274,), (1373084276,), (1373084278,), (1373084280,), (1373084283,), (1373084311,), (1373084315,), (1373084318,), (1373084321,), (1373084324,), (1373084326,), (1373084345,), (1373084350,), (1373084355,), (1373084362,), (1373084367,), (1373084370,), (1373084374,), (1373084388,), (1373084393,), (1373084397,), (1373084399,), (1373084401,), (1373084402,), (1373084422,), (1373084429,), (1373084432,), (1373084434,), (1373084436,), (1373084438,), (1373084478,), (1373084481,), (1373084484,), (1373084506,), (1373084507,), (1373084509,), (1373084584,), (1373084666,), (1373084667,), (1373084669,), (1373084671,), (1373084674,), (1373084676,), (1373084685,), (1373084709,), (1373084712,), (1373084744,), (1373084760,), (1373084777,), (1373084788,), (1373084796,)) 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 25155202 , 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=25155194 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 (25155202) result : ((1373084300,), (1373084681,), (1373084682,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25155194) result : ((1373084197,), (1373084217,), (1373084218,), (1373084220,), (1373084221,), (1373084223,), (1373084225,), (1373084244,), (1373084249,), (1373084250,), (1373084252,), (1373084255,), (1373084258,), (1373084272,), (1373084274,), (1373084276,), (1373084278,), (1373084280,), (1373084283,), (1373084311,), (1373084315,), (1373084318,), (1373084321,), (1373084324,), (1373084326,), (1373084345,), (1373084350,), (1373084355,), (1373084362,), (1373084367,), (1373084370,), (1373084374,), (1373084388,), (1373084393,), (1373084397,), (1373084399,), (1373084401,), (1373084402,), (1373084422,), (1373084429,), (1373084432,), (1373084434,), (1373084436,), (1373084438,), (1373084478,), (1373084481,), (1373084484,), (1373084506,), (1373084507,), (1373084509,), (1373084584,), (1373084666,), (1373084667,), (1373084669,), (1373084671,), (1373084674,), (1373084676,), (1373084685,), (1373084709,), (1373084712,), (1373084744,), (1373084760,), (1373084777,), (1373084788,), (1373084796,)) 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 25155203 , 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=25155194 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 (25155203) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25155194) result : ((1373084197,), (1373084217,), (1373084218,), (1373084220,), (1373084221,), (1373084223,), (1373084225,), (1373084244,), (1373084249,), (1373084250,), (1373084252,), (1373084255,), (1373084258,), (1373084272,), (1373084274,), (1373084276,), (1373084278,), (1373084280,), (1373084283,), (1373084311,), (1373084315,), (1373084318,), (1373084321,), (1373084324,), (1373084326,), (1373084345,), (1373084350,), (1373084355,), (1373084362,), (1373084367,), (1373084370,), (1373084374,), (1373084388,), (1373084393,), (1373084397,), (1373084399,), (1373084401,), (1373084402,), (1373084422,), (1373084429,), (1373084432,), (1373084434,), (1373084436,), (1373084438,), (1373084478,), (1373084481,), (1373084484,), (1373084506,), (1373084507,), (1373084509,), (1373084584,), (1373084666,), (1373084667,), (1373084669,), (1373084671,), (1373084674,), (1373084676,), (1373084685,), (1373084709,), (1373084712,), (1373084744,), (1373084760,), (1373084777,), (1373084788,), (1373084796,)) 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 25155204 , 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=25155194 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 (25155204) result : ((1373084298,), (1373084301,), (1373084302,), (1373084349,), (1373084416,), (1373084417,), (1373084418,), (1373084419,), (1373084583,), (1373084587,), (1373084591,), (1373084708,), (1373084722,), (1373084734,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25155194) result : ((1373084197,), (1373084217,), (1373084218,), (1373084220,), (1373084221,), (1373084223,), (1373084225,), (1373084244,), (1373084249,), (1373084250,), (1373084252,), (1373084255,), (1373084258,), (1373084272,), (1373084274,), (1373084276,), (1373084278,), (1373084280,), (1373084283,), (1373084311,), (1373084315,), (1373084318,), (1373084321,), (1373084324,), (1373084326,), (1373084345,), (1373084350,), (1373084355,), (1373084362,), (1373084367,), (1373084370,), (1373084374,), (1373084388,), (1373084393,), (1373084397,), (1373084399,), (1373084401,), (1373084402,), (1373084422,), (1373084429,), (1373084432,), (1373084434,), (1373084436,), (1373084438,), (1373084478,), (1373084481,), (1373084484,), (1373084506,), (1373084507,), (1373084509,), (1373084584,), (1373084666,), (1373084667,), (1373084669,), (1373084671,), (1373084674,), (1373084676,), (1373084685,), (1373084709,), (1373084712,), (1373084744,), (1373084760,), (1373084777,), (1373084788,), (1373084796,)) 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 25155205 , 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=25155194 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 (25155205) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25155194) result : ((1373084197,), (1373084217,), (1373084218,), (1373084220,), (1373084221,), (1373084223,), (1373084225,), (1373084244,), (1373084249,), (1373084250,), (1373084252,), (1373084255,), (1373084258,), (1373084272,), (1373084274,), (1373084276,), (1373084278,), (1373084280,), (1373084283,), (1373084311,), (1373084315,), (1373084318,), (1373084321,), (1373084324,), (1373084326,), (1373084345,), (1373084350,), (1373084355,), (1373084362,), (1373084367,), (1373084370,), (1373084374,), (1373084388,), (1373084393,), (1373084397,), (1373084399,), (1373084401,), (1373084402,), (1373084422,), (1373084429,), (1373084432,), (1373084434,), (1373084436,), (1373084438,), (1373084478,), (1373084481,), (1373084484,), (1373084506,), (1373084507,), (1373084509,), (1373084584,), (1373084666,), (1373084667,), (1373084669,), (1373084671,), (1373084674,), (1373084676,), (1373084685,), (1373084709,), (1373084712,), (1373084744,), (1373084760,), (1373084777,), (1373084788,), (1373084796,)) 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 25155206 , 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=25155194 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 (25155206) result : ((1373084304,), (1373084305,), (1373084306,), (1373084307,), (1373084354,), (1373084690,), (1373084691,), (1373084692,), (1373084693,), (1373084748,), (1373084749,), (1373084752,), (1373084754,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25155194) result : ((1373084197,), (1373084217,), (1373084218,), (1373084220,), (1373084221,), (1373084223,), (1373084225,), (1373084244,), (1373084249,), (1373084250,), (1373084252,), (1373084255,), (1373084258,), (1373084272,), (1373084274,), (1373084276,), (1373084278,), (1373084280,), (1373084283,), (1373084311,), (1373084315,), (1373084318,), (1373084321,), (1373084324,), (1373084326,), (1373084345,), (1373084350,), (1373084355,), (1373084362,), (1373084367,), (1373084370,), (1373084374,), (1373084388,), (1373084393,), (1373084397,), (1373084399,), (1373084401,), (1373084402,), (1373084422,), (1373084429,), (1373084432,), (1373084434,), (1373084436,), (1373084438,), (1373084478,), (1373084481,), (1373084484,), (1373084506,), (1373084507,), (1373084509,), (1373084584,), (1373084666,), (1373084667,), (1373084669,), (1373084671,), (1373084674,), (1373084676,), (1373084685,), (1373084709,), (1373084712,), (1373084744,), (1373084760,), (1373084777,), (1373084788,), (1373084796,)) 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 25155207 , 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=25155194 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 (25155207) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25155194) result : ((1373084197,), (1373084217,), (1373084218,), (1373084220,), (1373084221,), (1373084223,), (1373084225,), (1373084244,), (1373084249,), (1373084250,), (1373084252,), (1373084255,), (1373084258,), (1373084272,), (1373084274,), (1373084276,), (1373084278,), (1373084280,), (1373084283,), (1373084311,), (1373084315,), (1373084318,), (1373084321,), (1373084324,), (1373084326,), (1373084345,), (1373084350,), (1373084355,), (1373084362,), (1373084367,), (1373084370,), (1373084374,), (1373084388,), (1373084393,), (1373084397,), (1373084399,), (1373084401,), (1373084402,), (1373084422,), (1373084429,), (1373084432,), (1373084434,), (1373084436,), (1373084438,), (1373084478,), (1373084481,), (1373084484,), (1373084506,), (1373084507,), (1373084509,), (1373084584,), (1373084666,), (1373084667,), (1373084669,), (1373084671,), (1373084674,), (1373084676,), (1373084685,), (1373084709,), (1373084712,), (1373084744,), (1373084760,), (1373084777,), (1373084788,), (1373084796,)) 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 25155208 , 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=25155194 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 (25155208) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25155194) result : ((1373084197,), (1373084217,), (1373084218,), (1373084220,), (1373084221,), (1373084223,), (1373084225,), (1373084244,), (1373084249,), (1373084250,), (1373084252,), (1373084255,), (1373084258,), (1373084272,), (1373084274,), (1373084276,), (1373084278,), (1373084280,), (1373084283,), (1373084311,), (1373084315,), (1373084318,), (1373084321,), (1373084324,), (1373084326,), (1373084345,), (1373084350,), (1373084355,), (1373084362,), (1373084367,), (1373084370,), (1373084374,), (1373084388,), (1373084393,), (1373084397,), (1373084399,), (1373084401,), (1373084402,), (1373084422,), (1373084429,), (1373084432,), (1373084434,), (1373084436,), (1373084438,), (1373084478,), (1373084481,), (1373084484,), (1373084506,), (1373084507,), (1373084509,), (1373084584,), (1373084666,), (1373084667,), (1373084669,), (1373084671,), (1373084674,), (1373084676,), (1373084685,), (1373084709,), (1373084712,), (1373084744,), (1373084760,), (1373084777,), (1373084788,), (1373084796,)) 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`=25155194 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_gris','flou','autre_refus','papier','Teint_Dans_La_Masse','cartonnette','metal','plastique','Carton_brun','mal_croppe','kraft')) 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`=25155194 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_gris','flou','autre_refus','papier','Teint_Dans_La_Masse','cartonnette','metal','plastique','Carton_brun','mal_croppe','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 25155194, 'sub_port_id': 25155209, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964045, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 58)}, 'Carton_brun': {'main_port_id': 25155194, 'sub_port_id': 25155210, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964046, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 58)}, 'plastique': {'main_port_id': 25155194, 'sub_port_id': 25155211, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964047, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 58)}, 'environnement': {'main_port_id': 25155194, 'sub_port_id': 25155212, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964048, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 58)}, 'Carton_gris': {'main_port_id': 25155194, 'sub_port_id': 25155213, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964049, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 58)}, 'autre_refus': {'main_port_id': 25155194, 'sub_port_id': 25155214, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964050, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 58)}, 'mal_croppe': {'main_port_id': 25155194, 'sub_port_id': 25155215, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964051, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 25155194, 'sub_port_id': 25155216, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964052, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 58)}, 'flou': {'main_port_id': 25155194, 'sub_port_id': 25155217, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964053, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 58)}, 'cartonnette': {'main_port_id': 25155194, 'sub_port_id': 25155218, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964054, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 58)}, 'metal': {'main_port_id': 25155194, 'sub_port_id': 25155219, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964055, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 58)}, 'papier': {'main_port_id': 25155194, 'sub_port_id': 25155220, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16964056, 'last_updated_at': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 23, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 23, 18, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25155209,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25155197 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25155210,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25155198 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25155211,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25155199 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25155212,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25155200 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25155213,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25155201 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25155214,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25155202 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25155215,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25155203 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25155216,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25155204 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25155217,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25155205 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25155218,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25155206 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25155219,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25155207 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25155220,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25155208 lien utilise dans velours : https://www.fotonower.com/velours/25155209,25155210,25155211,25155212,25155213,25155214,25155215,25155216,25155217,25155218,25155219,25155220?tags=kraft,Carton_brun,plastique,environnement,Carton_gris,autre_refus,mal_croppe,Teint_Dans_La_Masse,flou,cartonnette,metal,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25155194]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1373084796, 1373084788, 1373084777, 1373084760, 1373084744, 1373084709] map_info['map_portfolio_photo'] : {25155194: [1373084796, 1373084788, 1373084777, 1373084760, 1373084744, 1373084712, 1373084709, 1373084685, 1373084676, 1373084674, 1373084671, 1373084669, 1373084667, 1373084666, 1373084584, 1373084509, 1373084507, 1373084506, 1373084484, 1373084481, 1373084478, 1373084438, 1373084436, 1373084434, 1373084432, 1373084429, 1373084422, 1373084402, 1373084401, 1373084399, 1373084397, 1373084393, 1373084388, 1373084374, 1373084370, 1373084367, 1373084362, 1373084355, 1373084350, 1373084345, 1373084326, 1373084324, 1373084321, 1373084318, 1373084315, 1373084311, 1373084283, 1373084280, 1373084278, 1373084276, 1373084274, 1373084272, 1373084258, 1373084255, 1373084252, 1373084250, 1373084249, 1373084244, 1373084225, 1373084223, 1373084221, 1373084220, 1373084218, 1373084217, 1373084197]} final : False mtd_id 4302 list_pids : [1373084796, 1373084788, 1373084777, 1373084760, 1373084744, 1373084709] Looping around the photos to save general results len do output : 1 /25155194. 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, '3316268') ('4302', '25155194', '1373084796', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084788', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084777', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084760', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084744', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084709', None, None, None, None, None, '3316268') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '25155194', "{'kraft': 25155197, 'Carton_brun': 25155198, 'plastique': 25155199, 'environnement': 25155200, 'Carton_gris': 25155201, 'autre_refus': 25155202, 'mal_croppe': 25155203, 'Teint_Dans_La_Masse': 25155204, 'flou': 25155205, 'cartonnette': 25155206, 'metal': 25155207, 'papier': 25155208}", None, None, None, None, '3316268'), ('4302', '25155194', '1373084796', None, None, None, None, None, '3316268'), ('4302', '25155194', '1373084788', None, None, None, None, None, '3316268'), ('4302', '25155194', '1373084777', None, None, None, None, None, '3316268'), ('4302', '25155194', '1373084760', None, None, None, None, None, '3316268'), ('4302', '25155194', '1373084744', None, None, None, None, None, '3316268'), ('4302', '25155194', '1373084709', None, None, None, None, None, '3316268')] time used for this insertion : 0.013759136199951172 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5185027122497559 time spend to save output : 0.014004230499267578 total time spend for step 1 : 1.5325069427490234 step2:final Tue Jul 22 00:12: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 (25155194) 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 25155194 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1373084197,1373084225,1373084223,1373084221,1373084220,1373084218,1373084217,1373084258,1373084255,1373084252,1373084250,1373084249,1373084244,1373084283,1373084280,1373084278,1373084276,1373084274,1373084272,1373084326,1373084324,1373084321,1373084318,1373084315,1373084311,1373084374,1373084370,1373084367,1373084362,1373084355,1373084345,1373084350,1373084402,1373084401,1373084399,1373084397,1373084393,1373084388,1373084438,1373084436,1373084434,1373084432,1373084429,1373084422,1373084509,1373084507,1373084506,1373084484,1373084481,1373084478,1373084584,1373084676,1373084674,1373084671,1373084669,1373084667,1373084666,1373084685,1373084796,1373084788,1373084777,1373084760,1373084744,1373084709,1373084712); 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([25155194]) Inside saveOutput : final : False verbose : True original output for save of step final : {1373084796: ('0.06136468089420021',), 1373084788: ('0.06136468089420021',), 1373084777: ('0.06136468089420021',), 1373084760: ('0.06136468089420021',), 1373084744: ('0.06136468089420021',), 1373084709: ('0.06136468089420021',)} new output for save of step final : {1373084796: ('0.06136468089420021',), 1373084788: ('0.06136468089420021',), 1373084777: ('0.06136468089420021',), 1373084760: ('0.06136468089420021',), 1373084744: ('0.06136468089420021',), 1373084709: ('0.06136468089420021',)} [1373084796, 1373084788, 1373084777, 1373084760, 1373084744, 1373084709] map_info['map_portfolio_photo'] : {25155194: [1373084796, 1373084788, 1373084777, 1373084760, 1373084744, 1373084712, 1373084709, 1373084685, 1373084676, 1373084674, 1373084671, 1373084669, 1373084667, 1373084666, 1373084584, 1373084509, 1373084507, 1373084506, 1373084484, 1373084481, 1373084478, 1373084438, 1373084436, 1373084434, 1373084432, 1373084429, 1373084422, 1373084402, 1373084401, 1373084399, 1373084397, 1373084393, 1373084388, 1373084374, 1373084370, 1373084367, 1373084362, 1373084355, 1373084350, 1373084345, 1373084326, 1373084324, 1373084321, 1373084318, 1373084315, 1373084311, 1373084283, 1373084280, 1373084278, 1373084276, 1373084274, 1373084272, 1373084258, 1373084255, 1373084252, 1373084250, 1373084249, 1373084244, 1373084225, 1373084223, 1373084221, 1373084220, 1373084218, 1373084217, 1373084197]} final : False mtd_id 4302 list_pids : [1373084796, 1373084788, 1373084777, 1373084760, 1373084744, 1373084709] Looping around the photos to save general results len do output : 6 /1373084796.Didn't retrieve data . /1373084788.Didn't retrieve data . /1373084777.Didn't retrieve data . /1373084760.Didn't retrieve data . /1373084744.Didn't retrieve data . /1373084709.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, '3316268') ('4302', '25155194', '1373084796', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084788', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084777', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084760', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084744', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084709', None, None, None, None, None, '3316268') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '25155194', '1373084796', '0.06136468089420021', None, None, None, None, '3316268'), ('4302', '25155194', '1373084788', '0.06136468089420021', None, None, None, None, '3316268'), ('4302', '25155194', '1373084777', '0.06136468089420021', None, None, None, None, '3316268'), ('4302', '25155194', '1373084760', '0.06136468089420021', None, None, None, None, '3316268'), ('4302', '25155194', '1373084744', '0.06136468089420021', None, None, None, None, '3316268'), ('4302', '25155194', '1373084709', '0.06136468089420021', None, None, None, None, '3316268')] time used for this insertion : 0.012475013732910156 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0727224349975586 time spend to save output : 0.012822628021240234 total time spend for step 2 : 0.08554506301879883 step3:velours_tree Tue Jul 22 00:12: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 : {25155194: [{'kraft': 25155197, 'Carton_brun': 25155198, 'plastique': 25155199, 'environnement': 25155200, 'Carton_gris': 25155201, 'autre_refus': 25155202, 'mal_croppe': 25155203, 'Teint_Dans_La_Masse': 25155204, 'flou': 25155205, 'cartonnette': 25155206, 'metal': 25155207, 'papier': 25155208}]} input_args_next_step : {25155194: ()} output_args : {25155194: [{'kraft': 25155197, 'Carton_brun': 25155198, 'plastique': 25155199, 'environnement': 25155200, 'Carton_gris': 25155201, 'autre_refus': 25155202, 'mal_croppe': 25155203, 'Teint_Dans_La_Masse': 25155204, 'flou': 25155205, 'cartonnette': 25155206, 'metal': 25155207, 'papier': 25155208}]} args : 25155194 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 : ({'kraft': 25155197, 'Carton_brun': 25155198, 'plastique': 25155199, 'environnement': 25155200, 'Carton_gris': 25155201, 'autre_refus': 25155202, 'mal_croppe': 25155203, 'Teint_Dans_La_Masse': 25155204, 'flou': 25155205, 'cartonnette': 25155206, 'metal': 25155207, 'papier': 25155208},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25155194) 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([25155194]) 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.3831474781036377 time spend to save output : 4.601478576660156e-05 total time spend for step 3 : 0.3831934928894043 step4:send_mail_cod Tue Jul 22 00:13: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 : {1373084796: ('0.06136468089420021',), 1373084788: ('0.06136468089420021',), 1373084777: ('0.06136468089420021',), 1373084760: ('0.06136468089420021',), 1373084744: ('0.06136468089420021',), 1373084709: ('0.06136468089420021',)} input_args_next_step : {1373084796: ()} output_args : {1373084796: ('0.06136468089420021',), 1373084788: ('0.06136468089420021',), 1373084777: ('0.06136468089420021',), 1373084760: ('0.06136468089420021',), 1373084744: ('0.06136468089420021',), 1373084709: ('0.06136468089420021',)} args : 1373084796 depend.output_id : 0 input_args_next_step : {1373084796: ('0.06136468089420021',), 1373084788: ()} output_args : {1373084796: ('0.06136468089420021',), 1373084788: ('0.06136468089420021',), 1373084777: ('0.06136468089420021',), 1373084760: ('0.06136468089420021',), 1373084744: ('0.06136468089420021',), 1373084709: ('0.06136468089420021',)} args : 1373084788 depend.output_id : 0 input_args_next_step : {1373084796: ('0.06136468089420021',), 1373084788: ('0.06136468089420021',), 1373084777: ()} output_args : {1373084796: ('0.06136468089420021',), 1373084788: ('0.06136468089420021',), 1373084777: ('0.06136468089420021',), 1373084760: ('0.06136468089420021',), 1373084744: ('0.06136468089420021',), 1373084709: ('0.06136468089420021',)} args : 1373084777 depend.output_id : 0 input_args_next_step : {1373084796: ('0.06136468089420021',), 1373084788: ('0.06136468089420021',), 1373084777: ('0.06136468089420021',), 1373084760: ()} output_args : {1373084796: ('0.06136468089420021',), 1373084788: ('0.06136468089420021',), 1373084777: ('0.06136468089420021',), 1373084760: ('0.06136468089420021',), 1373084744: ('0.06136468089420021',), 1373084709: ('0.06136468089420021',)} args : 1373084760 depend.output_id : 0 input_args_next_step : {1373084796: ('0.06136468089420021',), 1373084788: ('0.06136468089420021',), 1373084777: ('0.06136468089420021',), 1373084760: ('0.06136468089420021',), 1373084744: ()} output_args : {1373084796: ('0.06136468089420021',), 1373084788: ('0.06136468089420021',), 1373084777: ('0.06136468089420021',), 1373084760: ('0.06136468089420021',), 1373084744: ('0.06136468089420021',), 1373084709: ('0.06136468089420021',)} args : 1373084744 depend.output_id : 0 input_args_next_step : {1373084796: ('0.06136468089420021',), 1373084788: ('0.06136468089420021',), 1373084777: ('0.06136468089420021',), 1373084760: ('0.06136468089420021',), 1373084744: ('0.06136468089420021',), 1373084709: ()} output_args : {1373084796: ('0.06136468089420021',), 1373084788: ('0.06136468089420021',), 1373084777: ('0.06136468089420021',), 1373084760: ('0.06136468089420021',), 1373084744: ('0.06136468089420021',), 1373084709: ('0.06136468089420021',)} args : 1373084709 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 : {25155194: [{'kraft': 25155197, 'Carton_brun': 25155198, 'plastique': 25155199, 'environnement': 25155200, 'Carton_gris': 25155201, 'autre_refus': 25155202, 'mal_croppe': 25155203, 'Teint_Dans_La_Masse': 25155204, 'flou': 25155205, 'cartonnette': 25155206, 'metal': 25155207, 'papier': 25155208}]} input_args_next_step : {1373084796: ('0.06136468089420021',), 1373084788: ('0.06136468089420021',), 1373084777: ('0.06136468089420021',), 1373084760: ('0.06136468089420021',), 1373084744: ('0.06136468089420021',), 1373084709: ('0.06136468089420021',), 25155194: ()} output_args : {25155194: [{'kraft': 25155197, 'Carton_brun': 25155198, 'plastique': 25155199, 'environnement': 25155200, 'Carton_gris': 25155201, 'autre_refus': 25155202, 'mal_croppe': 25155203, 'Teint_Dans_La_Masse': 25155204, 'flou': 25155205, 'cartonnette': 25155206, 'metal': 25155207, 'papier': 25155208}]} args : 25155194 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 :7, first value : ('0.06136468089420021',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25155194) 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 (1373084796,1373084788,1373084777,1373084760,1373084744,1373084709) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1373084709 begin to download photo : 1373084760 begin to download photo : 1373084788 download finish for photo 1373084760 begin to download photo : 1373084777 download finish for photo 1373084788 begin to download photo : 1373084796 download finish for photo 1373084709 begin to download photo : 1373084744 download finish for photo 1373084796 download finish for photo 1373084777 download finish for photo 1373084744 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette251551971753135980/ length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P25155194_22-07-2025_00_13_00.pdf 25155197 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=25155197 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251551971753135980 25155199 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=25155199 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373084310: '1753132766_110843_1373084252_8f63b13d95b96f6bb5a7674d67dafc20_rle_crop_3889398053_0.png', 1373084312: '1753132765_324178_1373084223_93f1428610105c9e2966eb5389b106bc_rle_crop_3889397982_0.png', 1373084313: '1753132765_324178_1373084223_93f1428610105c9e2966eb5389b106bc_rle_crop_3889397987_0.png', 1373084314: '1753132765_324178_1373084223_93f1428610105c9e2966eb5389b106bc_rle_crop_3889397984_0.png', 1373084358: '1753132887_327105_1373084278_ed7210df715e1a9bb6f7106c799d8dee_rle_crop_3889398561_0.png', 1373084359: '1753132887_327105_1373084276_64747d41e68a344e77553ac3512c1e78_rle_crop_3889398577_0.png', 1373084428: '1753133006_329874_1373084321_a9700a1b0f2df16d12abc68f25134910_rle_crop_3889399057_0.png', 1373084662: '1753133165_119685_1373084397_7a25a1cf93f337c118be9907a1020ce4_rle_crop_3889399716_0.png', 1373084767: '1753133286_124696_1373084374_32f07c2e0335d1522c75c3f12942042c_rle_crop_3889400186_0.png', 1373084768: '1753133286_124696_1373084370_a6cb3dcf0e7d6d0f795527f8e5dce9d7_rle_crop_3889400197_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/e273d6a46db6a4cebade4467a0aba809_23634795.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/3ae9e6c32f2b2b6b3ce329ca5dae3424_8219095.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/fe126b627f2ba32bcee9ad833ea7dd73_80296811.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/a48553b0561b9866f55640caeec6e985_94023411.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/a60c70d49ebb3c8f8615d768ac8e6cd2_5473149.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/03443933b708db3adcaec43faaeaff53_54569008.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/8c8728ab5b030e23083f9a4ed525edf3_47517458.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/e765043d06eccc4aa9e1529592c8b5c4_53067842.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/fd2815cac3b671b5119805724a2e723a_96018150.png change filename to text .imagette251551991753135980/ imagette251551991753135980/1753132766_110843_1373084252_8f63b13d95b96f6bb5a7674d67dafc20_rle_crop_3889398053_0.png.png imagette251551991753135980/1753133165_119685_1373084397_7a25a1cf93f337c118be9907a1020ce4_rle_crop_3889399716_0.png.png imagette251551991753135980/1753133286_124696_1373084370_a6cb3dcf0e7d6d0f795527f8e5dce9d7_rle_crop_3889400197_0.png.png imagette251551991753135980/1753132887_327105_1373084278_ed7210df715e1a9bb6f7106c799d8dee_rle_crop_3889398561_0.png.png imagette251551991753135980/1753132887_327105_1373084276_64747d41e68a344e77553ac3512c1e78_rle_crop_3889398577_0.png.png imagette251551991753135980/1753132765_324178_1373084223_93f1428610105c9e2966eb5389b106bc_rle_crop_3889397987_0.png.png imagette251551991753135980/1753132765_324178_1373084223_93f1428610105c9e2966eb5389b106bc_rle_crop_3889397984_0.png.png imagette251551991753135980/1753133286_124696_1373084374_32f07c2e0335d1522c75c3f12942042c_rle_crop_3889400186_0.png.png imagette251551991753135980/1753133006_329874_1373084321_a9700a1b0f2df16d12abc68f25134910_rle_crop_3889399057_0.png.png imagette251551991753135980/1753132765_324178_1373084223_93f1428610105c9e2966eb5389b106bc_rle_crop_3889397982_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/0a1058c7ad63394b09894c406e26532e_43557966.png imagette251551991753135980 25155202 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=25155202 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373084300: '1753132765_324178_1373084225_cedd6317185fdb67a101522e65357f6d_rle_crop_3889397973_0.png', 1373084681: '1753133245_335457_1373084509_a411b5ac1cd4ded92010c94e8cf2c79a_rle_crop_3889399929_0.png', 1373084682: '1753133245_335457_1373084506_92938aba1329f3696f7f4c3f21602de3_rle_crop_3889399952_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/bf351940499006ad2ec1703bba97bff2_55507976.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/e61336a3c7c5b11ca4ead64f8a44da4b_86185984.png change filename to text .imagette251552021753135982/ imagette251552021753135982/1753132765_324178_1373084225_cedd6317185fdb67a101522e65357f6d_rle_crop_3889397973_0.png.png imagette251552021753135982/1753133245_335457_1373084509_a411b5ac1cd4ded92010c94e8cf2c79a_rle_crop_3889399929_0.png.png imagette251552021753135982/1753133245_335457_1373084506_92938aba1329f3696f7f4c3f21602de3_rle_crop_3889399952_0.png.png imagette251552031753135982/ imagette251552051753135982/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/36ef729e5b953900bfa10bda95605805_9829625.png imagette251552021753135982 25155203 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=25155203 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251552031753135982 25155205 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=25155205 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251552051753135982 25155206 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=25155206 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373084304: '1753132766_110843_1373084255_5e2b7898f9ee56b3633338ef688f8b66_rle_crop_3889398028_0.png', 1373084305: '1753132766_110843_1373084255_5e2b7898f9ee56b3633338ef688f8b66_rle_crop_3889398030_0.png', 1373084306: '1753132765_324178_1373084221_34a28bc3d36838084c2c7c880ed97981_rle_crop_3889398013_0.png', 1373084307: '1753132765_324178_1373084217_b74378ac4724fd89e926abc1773dcbd4_rle_crop_3889398081_0.png', 1373084354: '1753132887_327105_1373084272_64f08c5bbe6c3c6c42ff14cf46cecade_rle_crop_3889398601_0.png', 1373084690: '1753133245_335457_1373084509_a411b5ac1cd4ded92010c94e8cf2c79a_rle_crop_3889399931_0.png', 1373084691: '1753133245_335457_1373084507_4130f00394f2cf8adc6b70c14b3eea64_rle_crop_3889399941_0.png', 1373084692: '1753133245_335457_1373084484_b8348f17f7fe4485160dcb2c044e285e_rle_crop_3889399973_0.png', 1373084693: '1753133245_335457_1373084481_fbd78c24858a82d3ebe3f9425b26f546_rle_crop_3889399990_0.png', 1373084748: '1753133286_124696_1373084370_a6cb3dcf0e7d6d0f795527f8e5dce9d7_rle_crop_3889400204_0.png', 1373084749: '1753133286_124696_1373084367_d471ace6c966e97446eb7b15f9434371_rle_crop_3889400226_0.png', 1373084752: '1753133286_124696_1373084367_d471ace6c966e97446eb7b15f9434371_rle_crop_3889400216_0.png', 1373084754: '1753133286_124696_1373084362_9da2b407f20cd65a374a7a5412d72bd1_rle_crop_3889400246_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/7d12abaf52aa6fe077766ef62feaa3f0_85989692.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/f86bdb13d4f537a4b0dc2a9d6e29f22e_1142327.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/be89c583476f402bd3127460905cbddc_22242980.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/80d0630fc1f2283efc24a58ba62206da_32371787.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/c2e9e5543f4e0c38dd44d75dd4bc1a0b_94431611.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/eabe0ae3e9ef5ab596e3b20f1fe4d595_90528836.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/dfd687dfade60f74e5ad972ee60b4a7f_47374561.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/b5f515a2d7c31559813557cc4d0bd4b8_85817757.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/b6a2bdfe48184e7633c9bb51692ffbad_67200514.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/5cf92351457bc59f5240c1268ca43644_12162643.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/d65e155bbcb57d4f1e377d8a9e65f2b1_23491440.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/985261ab50ea44f641c9c06c3b8f4813_34441066.png change filename to text .imagette251552061753135982/ imagette251552061753135982/1753133245_335457_1373084507_4130f00394f2cf8adc6b70c14b3eea64_rle_crop_3889399941_0.png.png imagette251552061753135982/1753133286_124696_1373084362_9da2b407f20cd65a374a7a5412d72bd1_rle_crop_3889400246_0.png.png imagette251552061753135982/1753132766_110843_1373084255_5e2b7898f9ee56b3633338ef688f8b66_rle_crop_3889398028_0.png.png imagette251552061753135982/1753133245_335457_1373084509_a411b5ac1cd4ded92010c94e8cf2c79a_rle_crop_3889399931_0.png.png imagette251552061753135982/1753133286_124696_1373084367_d471ace6c966e97446eb7b15f9434371_rle_crop_3889400226_0.png.png imagette251552061753135982/1753133286_124696_1373084367_d471ace6c966e97446eb7b15f9434371_rle_crop_3889400216_0.png.png imagette251552061753135982/1753133245_335457_1373084481_fbd78c24858a82d3ebe3f9425b26f546_rle_crop_3889399990_0.png.png imagette251552061753135982/1753132765_324178_1373084217_b74378ac4724fd89e926abc1773dcbd4_rle_crop_3889398081_0.png.png imagette251552061753135982/1753132766_110843_1373084255_5e2b7898f9ee56b3633338ef688f8b66_rle_crop_3889398030_0.png.png imagette251552061753135982/1753133286_124696_1373084370_a6cb3dcf0e7d6d0f795527f8e5dce9d7_rle_crop_3889400204_0.png.png imagette251552061753135982/1753132765_324178_1373084221_34a28bc3d36838084c2c7c880ed97981_rle_crop_3889398013_0.png.png imagette251552061753135982/1753133245_335457_1373084484_b8348f17f7fe4485160dcb2c044e285e_rle_crop_3889399973_0.png.png imagette251552061753135982/1753132887_327105_1373084272_64f08c5bbe6c3c6c42ff14cf46cecade_rle_crop_3889398601_0.png.png imagette251552071753135984/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/e909d7a5a5cedaadd06dfd8aab91be53_462295.png imagette251552061753135982 25155207 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=25155207 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251552071753135984 25155198 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=25155198 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373084308: '1753132766_110843_1373084258_0725d1637a9ef9f35ae7151c64e158c4_rle_crop_3889397997_0.png', 1373084424: '1753133006_329874_1373084326_83d7d81411b8be6a1db0fe7ee23b3b78_rle_crop_3889399029_0.png', 1373084425: '1753133006_329874_1373084324_20200e9121ff066868d866486aa3e549_rle_crop_3889399042_0.png', 1373084426: '1753133006_329874_1373084321_a9700a1b0f2df16d12abc68f25134910_rle_crop_3889399052_0.png', 1373084427: '1753133006_329874_1373084311_6a7bc96b97e8eb38f8df13ab0a2bf211_rle_crop_3889399084_0.png', 1373084649: '1753133125_332693_1373084429_8dba2fa61f32f50221a65063729c558b_rle_crop_3889399513_0.png', 1373084650: '1753133125_332693_1373084422_dfbf6d569ab92e2cbc5fb3f00b69d3ce_rle_crop_3889399532_0.png', 1373084695: '1753133245_335457_1373084509_a411b5ac1cd4ded92010c94e8cf2c79a_rle_crop_3889399926_0.png', 1373084696: '1753133245_335457_1373084506_92938aba1329f3696f7f4c3f21602de3_rle_crop_3889399956_0.png', 1373084697: '1753133245_335457_1373084484_b8348f17f7fe4485160dcb2c044e285e_rle_crop_3889399977_0.png', 1373084698: '1753133245_335457_1373084481_fbd78c24858a82d3ebe3f9425b26f546_rle_crop_3889399991_0.png', 1373084699: '1753133245_335457_1373084478_2857dfd045e028a9d51f8146b161ae65_rle_crop_3889400006_0.png', 1373084756: '1753133286_124696_1373084367_d471ace6c966e97446eb7b15f9434371_rle_crop_3889400223_0.png', 1373084757: '1753133286_124696_1373084362_9da2b407f20cd65a374a7a5412d72bd1_rle_crop_3889400245_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/9bb62d18e185584a533a0365751f5fa5_93232418.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/f0c5c04ad5668be74057b85721d33b05_63390278.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/c97a5f1cf204f5ed37ae351c8567eb26_32433255.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/2762a300a9bfac00714d9b2a82a86ab3_25507248.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/aa0fc3c566db3f4849c33a5b5b3921f3_59711226.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/b952d8475e03f06e8e23fb57e3931e8f_34895163.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/805552444233b64714d3f4c7cfb75608_48528218.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/788739c819be6fa1e326cc6cf2ac72d7_81983284.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/d8bc2a6f6d7b4f391f68b253b30aae50_16800476.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/89c32839fe0408dd376e0ed9463c3df5_69350098.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/cf08c8e4125d4b54be0f64dc90ae866a_60482576.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/68f240bec49d8e1fff935d37be38d29c_65341757.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/d30235cee8c7d760e4c3cc2a627473a6_78274.png change filename to text .imagette251551981753135984/ imagette251551981753135984/1753133286_124696_1373084362_9da2b407f20cd65a374a7a5412d72bd1_rle_crop_3889400245_0.png.png imagette251551981753135984/1753133245_335457_1373084478_2857dfd045e028a9d51f8146b161ae65_rle_crop_3889400006_0.png.png imagette251551981753135984/1753133125_332693_1373084429_8dba2fa61f32f50221a65063729c558b_rle_crop_3889399513_0.png.png imagette251551981753135984/1753133245_335457_1373084506_92938aba1329f3696f7f4c3f21602de3_rle_crop_3889399956_0.png.png imagette251551981753135984/1753133006_329874_1373084326_83d7d81411b8be6a1db0fe7ee23b3b78_rle_crop_3889399029_0.png.png imagette251551981753135984/1753133245_335457_1373084509_a411b5ac1cd4ded92010c94e8cf2c79a_rle_crop_3889399926_0.png.png imagette251551981753135984/1753133006_329874_1373084311_6a7bc96b97e8eb38f8df13ab0a2bf211_rle_crop_3889399084_0.png.png imagette251551981753135984/1753133125_332693_1373084422_dfbf6d569ab92e2cbc5fb3f00b69d3ce_rle_crop_3889399532_0.png.png imagette251551981753135984/1753133006_329874_1373084324_20200e9121ff066868d866486aa3e549_rle_crop_3889399042_0.png.png imagette251551981753135984/1753133245_335457_1373084484_b8348f17f7fe4485160dcb2c044e285e_rle_crop_3889399977_0.png.png imagette251551981753135984/1753133006_329874_1373084321_a9700a1b0f2df16d12abc68f25134910_rle_crop_3889399052_0.png.png imagette251551981753135984/1753133286_124696_1373084367_d471ace6c966e97446eb7b15f9434371_rle_crop_3889400223_0.png.png imagette251551981753135984/1753133245_335457_1373084481_fbd78c24858a82d3ebe3f9425b26f546_rle_crop_3889399991_0.png.png imagette251551981753135984/1753132766_110843_1373084258_0725d1637a9ef9f35ae7151c64e158c4_rle_crop_3889397997_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/c0cc26cff48572e1710a8907ab477fdf_87966354.png imagette251551981753135984 25155201 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=25155201 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373084303: '1753132765_324178_1373084218_c70f703649d5b74ebf1d8da805e9da1d_rle_crop_3889398062_0.png', 1373084353: '1753132887_327105_1373084274_1ca28a4e9d6ef9c2fcee3acca2fe6bc8_rle_crop_3889398587_0.png', 1373084420: '1753133006_329874_1373084311_6a7bc96b97e8eb38f8df13ab0a2bf211_rle_crop_3889399080_0.png', 1373084630: '1753133125_332693_1373084436_c920add0cf2fc724f177a6e594e9a463_rle_crop_3889399463_0.png', 1373084634: '1753133125_332693_1373084432_ac41f9023532e8a9b3fd7202dfbc52a8_rle_crop_3889399496_0.png', 1373084638: '1753133125_332693_1373084429_8dba2fa61f32f50221a65063729c558b_rle_crop_3889399516_0.png', 1373084643: '1753133125_332693_1373084429_8dba2fa61f32f50221a65063729c558b_rle_crop_3889399512_0.png', 1373084647: '1753133125_332693_1373084422_dfbf6d569ab92e2cbc5fb3f00b69d3ce_rle_crop_3889399528_0.png', 1373084657: '1753133165_119685_1373084393_1ddb1cbf02ae52f94aae17448f5cc380_rle_crop_3889399719_0.png', 1373084659: '1753133165_119685_1373084388_c91549a093754eb9b1cca2b66e4d4e35_rle_crop_3889399733_0.png', 1373084660: '1753133165_119685_1373084388_c91549a093754eb9b1cca2b66e4d4e35_rle_crop_3889399731_0.png', 1373084683: '1753133245_335457_1373084509_a411b5ac1cd4ded92010c94e8cf2c79a_rle_crop_3889399932_0.png', 1373084686: '1753133245_335457_1373084509_a411b5ac1cd4ded92010c94e8cf2c79a_rle_crop_3889399925_0.png', 1373084687: '1753133245_335457_1373084509_a411b5ac1cd4ded92010c94e8cf2c79a_rle_crop_3889399921_0.png', 1373084745: '1753133286_124696_1373084362_9da2b407f20cd65a374a7a5412d72bd1_rle_crop_3889400241_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/945f793a85c91cf3b7eaf597abc34474_95417898.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/50f3d5d0c7c1cf6eec9ef14a6159e721_37714426.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/3e33bd312d14906794a892cdf3485640_35987718.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/b056713107edf1f3b29dac2ffd0aa4bb_67485977.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/26c9363fb070ed234fd23705c5b5ca84_56742819.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/3a723ed6683e969083cef090716ac685_28501335.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/d298bf996370935e14bdb5fa95ad4105_32469697.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/5019c9e42924dbb4398a4cf76aae51de_72763610.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/1e09424ca9b7d3053dc77c6ce64f3fb6_84015222.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/e927afacba3c09e439c2d411ba9979e4_6257408.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/4e3c32b803ee63b51b1d2ce15c201492_26219290.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/f01a75e28706ff909f6d0808708af283_14761475.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/c45c50083df8886d85ef2f0d40995c6a_36163400.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/4b35233887441597dfc1e2d6e3b55356_70899878.png change filename to text .imagette251552011753135985/ imagette251552011753135985/1753133165_119685_1373084388_c91549a093754eb9b1cca2b66e4d4e35_rle_crop_3889399733_0.png.png imagette251552011753135985/1753133165_119685_1373084393_1ddb1cbf02ae52f94aae17448f5cc380_rle_crop_3889399719_0.png.png imagette251552011753135985/1753133125_332693_1373084422_dfbf6d569ab92e2cbc5fb3f00b69d3ce_rle_crop_3889399528_0.png.png imagette251552011753135985/1753133125_332693_1373084429_8dba2fa61f32f50221a65063729c558b_rle_crop_3889399516_0.png.png imagette251552011753135985/1753133165_119685_1373084388_c91549a093754eb9b1cca2b66e4d4e35_rle_crop_3889399731_0.png.png imagette251552011753135985/1753133125_332693_1373084429_8dba2fa61f32f50221a65063729c558b_rle_crop_3889399512_0.png.png imagette251552011753135985/1753133286_124696_1373084362_9da2b407f20cd65a374a7a5412d72bd1_rle_crop_3889400241_0.png.png imagette251552011753135985/1753132765_324178_1373084218_c70f703649d5b74ebf1d8da805e9da1d_rle_crop_3889398062_0.png.png imagette251552011753135985/1753133245_335457_1373084509_a411b5ac1cd4ded92010c94e8cf2c79a_rle_crop_3889399925_0.png.png imagette251552011753135985/1753133125_332693_1373084432_ac41f9023532e8a9b3fd7202dfbc52a8_rle_crop_3889399496_0.png.png imagette251552011753135985/1753132887_327105_1373084274_1ca28a4e9d6ef9c2fcee3acca2fe6bc8_rle_crop_3889398587_0.png.png imagette251552011753135985/1753133245_335457_1373084509_a411b5ac1cd4ded92010c94e8cf2c79a_rle_crop_3889399921_0.png.png imagette251552011753135985/1753133245_335457_1373084509_a411b5ac1cd4ded92010c94e8cf2c79a_rle_crop_3889399932_0.png.png imagette251552011753135985/1753133006_329874_1373084311_6a7bc96b97e8eb38f8df13ab0a2bf211_rle_crop_3889399080_0.png.png imagette251552011753135985/1753133125_332693_1373084436_c920add0cf2fc724f177a6e594e9a463_rle_crop_3889399463_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/511576cdb332b6e8a8ae87202810e9b2_14537989.png imagette251552011753135985 25155204 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=25155204 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373084298: '1753132765_324178_1373084218_c70f703649d5b74ebf1d8da805e9da1d_rle_crop_3889398067_0.png', 1373084301: '1753132766_110843_1373084255_5e2b7898f9ee56b3633338ef688f8b66_rle_crop_3889398033_0.png', 1373084302: '1753132766_110843_1373084252_8f63b13d95b96f6bb5a7674d67dafc20_rle_crop_3889398055_0.png', 1373084349: '1753132887_327105_1373084278_ed7210df715e1a9bb6f7106c799d8dee_rle_crop_3889398550_0.png', 1373084416: '1753133006_329874_1373084324_20200e9121ff066868d866486aa3e549_rle_crop_3889399041_0.png', 1373084417: '1753133006_329874_1373084324_20200e9121ff066868d866486aa3e549_rle_crop_3889399043_0.png', 1373084418: '1753133006_329874_1373084321_a9700a1b0f2df16d12abc68f25134910_rle_crop_3889399053_0.png', 1373084419: '1753133006_329874_1373084311_6a7bc96b97e8eb38f8df13ab0a2bf211_rle_crop_3889399082_0.png', 1373084583: '1753133125_332693_1373084438_e13877bc26c08b638a69916726c08819_rle_crop_3889399451_0.png', 1373084587: '1753133125_332693_1373084432_ac41f9023532e8a9b3fd7202dfbc52a8_rle_crop_3889399499_0.png', 1373084591: '1753133125_332693_1373084429_8dba2fa61f32f50221a65063729c558b_rle_crop_3889399515_0.png', 1373084708: '1753133286_124696_1373084374_32f07c2e0335d1522c75c3f12942042c_rle_crop_3889400188_0.png', 1373084722: '1753133286_124696_1373084374_32f07c2e0335d1522c75c3f12942042c_rle_crop_3889400189_0.png', 1373084734: '1753133286_124696_1373084370_a6cb3dcf0e7d6d0f795527f8e5dce9d7_rle_crop_3889400203_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/90a25553798b4fc6e74f10bdc5a621cd_53689442.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/dff8d89fb35d770d2ee59c386228769e_67187194.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/c5f3cec10d58114b73723bbbe0376888_65527275.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/a1e71558489c4877888046dfd04ace30_20178301.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/abe08a0c213ce0d2875fdf78a237e823_16178654.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/f58e12958887201819a6bfc09ff8fda2_69510683.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/38039fd5e01d9483d032d0349cc51bc5_70895812.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/9e15a8af8846198b1cb1ae94240ff06d_78830223.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/7cfef8f84c501c57c32cc18e511a0f2d_13998793.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/9373d6259440d3d300df9e519cc92a48_75730737.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/6ff2cbb2b52e2a2b9a049e246c95bdcc_29158120.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/504136c82c209795ed2c88f9e24d6a8b_38346198.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/77c5047dbf2293cd2b3c44d390494242_76434670.png change filename to text .imagette251552041753135986/ imagette251552041753135986/1753133006_329874_1373084324_20200e9121ff066868d866486aa3e549_rle_crop_3889399043_0.png.png imagette251552041753135986/1753133286_124696_1373084374_32f07c2e0335d1522c75c3f12942042c_rle_crop_3889400189_0.png.png imagette251552041753135986/1753133125_332693_1373084429_8dba2fa61f32f50221a65063729c558b_rle_crop_3889399515_0.png.png imagette251552041753135986/1753133286_124696_1373084374_32f07c2e0335d1522c75c3f12942042c_rle_crop_3889400188_0.png.png imagette251552041753135986/1753132765_324178_1373084218_c70f703649d5b74ebf1d8da805e9da1d_rle_crop_3889398067_0.png.png imagette251552041753135986/1753132766_110843_1373084252_8f63b13d95b96f6bb5a7674d67dafc20_rle_crop_3889398055_0.png.png imagette251552041753135986/1753132887_327105_1373084278_ed7210df715e1a9bb6f7106c799d8dee_rle_crop_3889398550_0.png.png imagette251552041753135986/1753133286_124696_1373084370_a6cb3dcf0e7d6d0f795527f8e5dce9d7_rle_crop_3889400203_0.png.png imagette251552041753135986/1753133006_329874_1373084311_6a7bc96b97e8eb38f8df13ab0a2bf211_rle_crop_3889399082_0.png.png imagette251552041753135986/1753133125_332693_1373084438_e13877bc26c08b638a69916726c08819_rle_crop_3889399451_0.png.png imagette251552041753135986/1753133125_332693_1373084432_ac41f9023532e8a9b3fd7202dfbc52a8_rle_crop_3889399499_0.png.png imagette251552041753135986/1753132766_110843_1373084255_5e2b7898f9ee56b3633338ef688f8b66_rle_crop_3889398033_0.png.png imagette251552041753135986/1753133006_329874_1373084324_20200e9121ff066868d866486aa3e549_rle_crop_3889399041_0.png.png imagette251552041753135986/1753133006_329874_1373084321_a9700a1b0f2df16d12abc68f25134910_rle_crop_3889399053_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/e84bcd24ca9e63ab7e8694774b7474df_46827324.png imagette251552041753135986 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25155194 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25155209,25155210,25155211,25155212,25155213,25155214,25155215,25155216,25155217,25155218,25155219,25155220?tags=kraft,Carton_brun,plastique,environnement,Carton_gris,autre_refus,mal_croppe,Teint_Dans_La_Masse,flou,cartonnette,metal,papier your option no_mail is active, we will not send the real mail to your client args[1373084796] : ('0.06136468089420021',) no score found for photo 1373084796 We are sending mail with results at report@fotonower.com args[1373084788] : ('0.06136468089420021',) no score found for photo 1373084788 We are sending mail with results at report@fotonower.com args[1373084777] : ('0.06136468089420021',) no score found for photo 1373084777 We are sending mail with results at report@fotonower.com args[1373084760] : ('0.06136468089420021',) no score found for photo 1373084760 We are sending mail with results at report@fotonower.com args[1373084744] : ('0.06136468089420021',) no score found for photo 1373084744 We are sending mail with results at report@fotonower.com args[1373084709] : ('0.06136468089420021',) no score found for photo 1373084709 We are sending mail with results at report@fotonower.com refus_total : 0.06136468089420021 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=25155194 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_P25155194_22-07-2025_00_13_00.pdf results_Auto_P25155194_22-07-2025_00_13_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25155194_22-07-2025_00_13_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','25155194','results_Auto_P25155194_22-07-2025_00_13_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25155194_22-07-2025_00_13_00.pdf','pdf','','0.25','0.06136468089420021') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25155194]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1373084796, 1373084788, 1373084777, 1373084760, 1373084744, 1373084709] map_info['map_portfolio_photo'] : {25155194: [1373084796, 1373084788, 1373084777, 1373084760, 1373084744, 1373084712, 1373084709, 1373084685, 1373084676, 1373084674, 1373084671, 1373084669, 1373084667, 1373084666, 1373084584, 1373084509, 1373084507, 1373084506, 1373084484, 1373084481, 1373084478, 1373084438, 1373084436, 1373084434, 1373084432, 1373084429, 1373084422, 1373084402, 1373084401, 1373084399, 1373084397, 1373084393, 1373084388, 1373084374, 1373084370, 1373084367, 1373084362, 1373084355, 1373084350, 1373084345, 1373084326, 1373084324, 1373084321, 1373084318, 1373084315, 1373084311, 1373084283, 1373084280, 1373084278, 1373084276, 1373084274, 1373084272, 1373084258, 1373084255, 1373084252, 1373084250, 1373084249, 1373084244, 1373084225, 1373084223, 1373084221, 1373084220, 1373084218, 1373084217, 1373084197]} final : False mtd_id 4302 list_pids : [1373084796, 1373084788, 1373084777, 1373084760, 1373084744, 1373084709] 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, '3316268') ('4302', '25155194', '1373084796', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084788', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084777', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084760', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084744', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084709', None, None, None, None, None, '3316268') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '25155194', '1373084796', None, None, None, None, None, '3316268'), ('4302', '25155194', '1373084788', None, None, None, None, None, '3316268'), ('4302', '25155194', '1373084777', None, None, None, None, None, '3316268'), ('4302', '25155194', '1373084760', None, None, None, None, None, '3316268'), ('4302', '25155194', '1373084744', None, None, None, None, None, '3316268'), ('4302', '25155194', '1373084709', None, None, None, None, None, '3316268')] time used for this insertion : 0.012089014053344727 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.8882362842559814 time spend to save output : 0.01226663589477539 total time spend for step 4 : 7.900502920150757 step5:split_time_score Tue Jul 22 00:13:08 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25155194'] 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 : [('25155194',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25155194) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1373084788: {'path': 'temp/1753135980_3613034_1373084788_4d353ea8a17c289ac391b10c479437f4.jpg', 'extension': 'jpg'}, 1373084796: {'path': 'temp/1753135980_3613034_1373084796_a5b40d7838871200f37170e9e3d632da.jpg', 'extension': 'jpg'}, 1373084760: {'path': 'temp/1753135980_3613034_1373084760_695a389c27a5d28a3cebc116c3fb3005.jpg', 'extension': 'jpg'}, 1373084777: {'path': 'temp/1753135980_3613034_1373084777_8e8ecb31959194af51c17af7826d6465.jpg', 'extension': 'jpg'}, 1373084709: {'path': 'temp/1753135980_3613034_1373084709_3cc6eb206246a4e4c60557807dde5d87.jpg', 'extension': 'jpg'}, 1373084744: {'path': 'temp/1753135980_3613034_1373084744_4825f602298352c3eeb263f113199e4b.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 = 25155194; (('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 = 25155194 group by h (('23', 65),) 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=25155194 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 (25155194) 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 (25155194) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 21072025 25155194 Nombre de photos uploadées : 65 / 23040 (0%) 21072025 25155194 Nombre de photos taguées (types de déchets): 0 / 65 (0%) 21072025 25155194 Nombre de photos taguées (volume) : 0 / 65 (0%) [{'photo_id': 1373084197, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/5f2adc77f96011d388c86428768e8ef5.jpg', 'username': None, 'uploaded_at': 1753132567, 'text': 'image_21072025_23_15_54_10134.jpg'}, {'photo_id': 1373084225, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/cedd6317185fdb67a101522e65357f6d.jpg', 'username': None, 'uploaded_at': 1753132623, 'text': 'image_21072025_23_16_04_010152m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1373084223, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/93f1428610105c9e2966eb5389b106bc.jpg', 'username': None, 'uploaded_at': 1753132623, 'text': 'image_21072025_23_16_14_010147m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1373084221, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/34a28bc3d36838084c2c7c880ed97981.jpg', 'username': None, 'uploaded_at': 1753132623, 'text': 'image_21072025_23_16_24_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029065608978271484 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25155194, '2025-07-21' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1992378,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02310013771057129 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= 1992378 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25117802, 'dashboard_result_id': 12833124, '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_P25117802_21-07-2025_09_03_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25117803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25117804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25117805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25117806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25117807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25117808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25117809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25117810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25117811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25117812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25117813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25117814, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25118162, 'dashboard_result_id': 12833125, '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_P25118162_21-07-2025_05_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25118183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118188, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25118583, 'dashboard_result_id': 12833126, '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_P25118583_21-07-2025_05_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25118616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118621, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25118867, 'dashboard_result_id': 12833127, '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_P25118867_21-07-2025_06_00_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25118870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118881, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25119309, 'dashboard_result_id': 12833128, '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_P25119309_21-07-2025_06_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25119362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25119364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25119365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25119366, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25119368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25119369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25119370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25119372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25119373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25119374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25119376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25119377, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25119655, 'dashboard_result_id': 12833129, '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_P25119655_21-07-2025_06_33_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25119661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25119662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25119663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25119664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25119665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25119666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25119667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25119668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25119669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25119670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25119671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25119672, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25120043, 'dashboard_result_id': 12833130, '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_P25120043_21-07-2025_06_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25120070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25120071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25120072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25120073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25120074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25120075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25120076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25120077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25120078, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25120079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25120080, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25120081, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25120433, 'dashboard_result_id': 12833131, '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_P25120433_21-07-2025_07_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25120459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25120460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25120461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25120462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25120463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25120464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25120465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25120466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25120467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25120468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25120469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25120470, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25120849, 'dashboard_result_id': 12833132, '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_P25120849_21-07-2025_07_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25120858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25120859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25120860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25120861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25120862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25120863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25120864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25120865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25120866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25120867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25120868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25120869, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25121295, 'dashboard_result_id': 12833133, '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_P25121295_21-07-2025_07_30_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25121311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25121312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25121313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25121314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25121315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25121316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25121317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25121318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25121319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25121320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25121321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25121322, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25121721, 'dashboard_result_id': 12833134, '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_P25121721_21-07-2025_07_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25121736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25121737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25121738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25121739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25121740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25121741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25121742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25121743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25121744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25121745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25121746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25121747, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25122196, 'dashboard_result_id': 12833135, '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_P25122196_21-07-2025_08_00_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25122199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25122200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25122201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25122202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25122203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25122204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25122205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25122206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25122207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25122208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25122209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25122210, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25122572, 'dashboard_result_id': 12833136, '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_P25122572_21-07-2025_08_17_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25122611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25122612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25122613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25122614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25122615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25122616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25122617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25122618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25122619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25122620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25122621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25122622, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25123001, 'dashboard_result_id': 12833137, '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_P25123001_21-07-2025_08_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25123005, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25123006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25123007, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25123008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25123009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25123010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25123011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25123012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25123013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25123014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25123015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25123016, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25123435, 'dashboard_result_id': 12833138, '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_P25123435_21-07-2025_08_46_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25123460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25123461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25123462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25123463, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25123464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25123465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25123466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25123467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25123468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25123469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25123470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25123471, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25124003, 'dashboard_result_id': 12833139, '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_P25124003_21-07-2025_09_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25124065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25124067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25124068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25124069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25124070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25124071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25124072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25124073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25124074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25124075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25124076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25124077, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25124692, 'dashboard_result_id': 12833140, '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_P25124692_21-07-2025_09_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25124729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25124730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25124731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25124732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25124733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25124734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25124735, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25124736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25124737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25124738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25124739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25124740, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25125169, 'dashboard_result_id': 12833141, '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_P25125169_21-07-2025_09_31_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25125195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25125196, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25125197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25125198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25125199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25125200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25125201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25125202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25125203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25125204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25125205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25125206, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25125720, 'dashboard_result_id': 12833142, '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_P25125720_21-07-2025_09_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25125748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25125749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25125750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25125751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25125752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25125753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25125754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25125755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25125756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25125757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25125758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25125759, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25126214, 'dashboard_result_id': 12833143, '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_P25126214_21-07-2025_10_00_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25126220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25126221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25126222, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25126223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25126224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25126225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25126226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25126227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25126228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25126229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25126230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25126231, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25126652, 'dashboard_result_id': 12833144, '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_P25126652_21-07-2025_10_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25126655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25126656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25126657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25126658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25126659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25126660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25126661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25126662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25126663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25126664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25126665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25126666, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25127139, 'dashboard_result_id': 12833145, '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_P25127139_21-07-2025_10_31_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25127143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25127144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25127145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25127146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25127147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25127148, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25127149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25127150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25127151, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25127152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25127153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25127154, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25127580, 'dashboard_result_id': 12833146, '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_P25127580_21-07-2025_10_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25127616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25127617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25127618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25127619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25127620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25127621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25127622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25127623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25127624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25127625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25127626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25127627, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25128535, 'dashboard_result_id': 12833147, '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_P25128535_21-07-2025_16_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25128542, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25128543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25128544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25128545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25128546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25128547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25128548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25128549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25128550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25128551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25128552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25128553, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25129258, 'dashboard_result_id': 12833148, '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_P25129258_21-07-2025_11_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25129260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25129261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25129262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25129263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25129264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25129265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25129266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25129267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25129268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25129269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25129270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25129271, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25129821, 'dashboard_result_id': 12833149, '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_P25129821_21-07-2025_11_31_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25129853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25129854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25129855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25129856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25129857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25129858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25129859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25129860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25129861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25129862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25129863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25129864, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25130289, 'dashboard_result_id': 12833150, '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_P25130289_21-07-2025_11_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25130332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25130333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25130334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25130335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25130336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25130337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25130338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25130339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25130340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25130341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25130342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25130343, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25131061, 'dashboard_result_id': 12833151, '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_P25131061_21-07-2025_12_00_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25131070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25131071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25131072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25131073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25131074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25131075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25131076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25131077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25131078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25131079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25131080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25131081, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25131481, 'dashboard_result_id': 12833152, '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_P25131481_21-07-2025_12_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25131489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25131490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25131491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25131492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25131493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25131494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25131495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25131496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25131497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25131498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25131499, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25131500, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25132070, 'dashboard_result_id': 12833153, '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_P25132070_21-07-2025_16_01_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25132103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25132104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25132105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25132106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25132107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25132108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25132109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25132110, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25132111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25132112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25132113, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25132114, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25132499, 'dashboard_result_id': 12833154, '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_P25132499_21-07-2025_12_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25132530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25132531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25132532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25132533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25132534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25132535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25132536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25132537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25132538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25132539, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25132540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25132541, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25132898, 'dashboard_result_id': 12833155, '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_P25132898_21-07-2025_13_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25132963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25132964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25132966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25132967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25132968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25132970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25132971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25132972, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25132973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25132974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25132975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25132976, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25133338, 'dashboard_result_id': 12833156, '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_P25133338_21-07-2025_13_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25133351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25133352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25133353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25133354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25133355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25133356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25133357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25133358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25133359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25133360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25133361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25133362, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25133913, 'dashboard_result_id': 12833157, '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_P25133913_21-07-2025_13_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25133916, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25133917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25133918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25133919, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25133920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25133921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25133922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25133923, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25133924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25133925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25133926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25133927, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25134286, 'dashboard_result_id': 12833158, '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_P25134286_21-07-2025_16_01_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25134317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25134318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25134319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25134320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25134321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25134322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25134323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25134324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25134325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25134326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25134327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25134328, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25134727, 'dashboard_result_id': 12833159, '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_P25134727_21-07-2025_14_00_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25134746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25134747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25134748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25134749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25134750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25134751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25134752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25134753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25134754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25134755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25134756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25134757, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25135141, 'dashboard_result_id': 12833160, '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_P25135141_21-07-2025_14_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25135145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25135146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25135147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25135148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25135149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25135150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25135151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25135152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25135153, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25135154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25135155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25135156, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25135682, 'dashboard_result_id': 12833161, '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_P25135682_21-07-2025_14_30_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25135684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25135685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25135686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25135687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25135688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25135689, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25135690, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25135691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25135692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25135693, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25135694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25135695, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25136053, 'dashboard_result_id': 12833162, '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_P25136053_21-07-2025_14_46_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25136083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25136084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25136085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25136086, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25136087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25136088, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25136089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25136090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25136091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25136092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25136093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25136094, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25136510, 'dashboard_result_id': 12833163, '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_P25136510_21-07-2025_15_00_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25136537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25136538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25136539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25136540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25136541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25136542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25136543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25136544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25136545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25136546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25136547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25136548, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25137022, 'dashboard_result_id': 12833164, '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_P25137022_21-07-2025_15_16_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25137051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25137052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25137053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25137054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25137055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25137056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25137057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25137058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25137059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25137060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25137061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25137062, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25137479, 'dashboard_result_id': 12833165, '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_P25137479_21-07-2025_16_02_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25137505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25137506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25137507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25137508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25137509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25137510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25137511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25137512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25137513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25137514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25137515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25137516, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25137895, 'dashboard_result_id': 12833166, '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_P25137895_21-07-2025_15_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25137927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25137928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25137929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25137930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25137931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25137932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25137933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25137934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25137935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25137936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25137937, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25137938, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25138379, 'dashboard_result_id': 12833167, '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_P25138379_21-07-2025_16_03_26.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25138405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25138406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25138407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25138408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25138409, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25138410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25138411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25138412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25138413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25138414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25138415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25138416, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25138848, 'dashboard_result_id': 12833168, '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_P25138848_21-07-2025_18_00_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25138856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25138857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25138858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25138859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25138860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25138861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25138862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25138863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25138864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25138865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25138866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25138867, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25139414, 'dashboard_result_id': 12833169, '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_P25139414_21-07-2025_16_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25139421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25139422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25139423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25139424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25139425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25139426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25139427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25139428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25139429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25139430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25139431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25139432, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25139792, 'dashboard_result_id': 12833170, '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_P25139792_21-07-2025_16_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25139831, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25139832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25139833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25139834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25139835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25139836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25139837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25139838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25139839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25139840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25139841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25139842, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25140170, 'dashboard_result_id': 12833171, '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_P25140170_21-07-2025_17_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25140176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25140177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25140178, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25140179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25140180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25140181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25140182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25140183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25140184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25140185, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25140186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25140187, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25140612, 'dashboard_result_id': 12833172, '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_P25140612_21-07-2025_19_59_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25140637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25140638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25140639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25140640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25140641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25140642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25140643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25140644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25140645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25140646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25140647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25140648, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25141045, 'dashboard_result_id': 12833173, '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_P25141045_21-07-2025_17_30_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25141072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25141073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25141074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25141075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25141076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25141077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25141078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25141079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25141080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25141081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25141082, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25141083, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25141405, 'dashboard_result_id': 12833174, '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_P25141405_21-07-2025_17_47_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25141437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25141438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25141439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25141440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25141441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25141442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25141443, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25141444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25141445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25141446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25141447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25141448, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25141984, 'dashboard_result_id': 12833175, '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_P25141984_21-07-2025_18_01_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25141987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25141988, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25141989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25141990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25141991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25141992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25141993, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25141994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25141995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25141996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25141997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25141998, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25142615, 'dashboard_result_id': 12833176, '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_P25142615_21-07-2025_18_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25142623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25142624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25142625, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25142626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25142627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25142628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25142629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25142630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25142631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25142632, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25142633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25142634, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25143015, 'dashboard_result_id': 12833177, '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_P25143015_21-07-2025_18_30_38.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25143041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25143042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25143043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25143044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25143045, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25143046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25143047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25143048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25143049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25143050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25143051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25143052, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25143430, 'dashboard_result_id': 12833178, '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_P25143430_21-07-2025_18_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25143463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25143464, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25143465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25143466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25143467, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25143468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25143469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25143470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25143471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25143472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25143473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25143474, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25143985, 'dashboard_result_id': 12833179, '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_P25143985_21-07-2025_19_00_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25143994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25143995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25143996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25143997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25143998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25143999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25144000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25144001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25144002, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25144003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25144004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25144005, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25144457, 'dashboard_result_id': 12833180, '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_P25144457_21-07-2025_21_00_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25144464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25144465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25144466, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25144467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25144468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25144469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25144470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25144471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25144472, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25144473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25144474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25144475, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25145029, 'dashboard_result_id': 12833181, '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_P25145029_21-07-2025_19_30_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25145031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25145032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25145033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25145034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25145035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25145036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25145037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25145038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25145039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25145040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25145041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25145042, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25145449, 'dashboard_result_id': 12833182, '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_P25145449_21-07-2025_19_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25145481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25145482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25145483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25145484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25145485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25145486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25145487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25145488, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25145489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25145490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25145491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25145492, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25145980, 'dashboard_result_id': 12833183, '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_P25145980_21-07-2025_20_00_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25145984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25145985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25145986, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25145987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25145988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25145989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25145990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25145991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25145992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25145993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25145994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25145995, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25146411, 'dashboard_result_id': 12833184, '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_P25146411_21-07-2025_20_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25146417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25146418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25146419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25146420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25146421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25146422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25146423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25146424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25146425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25146427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25146428, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25146429, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25147047, 'dashboard_result_id': 12833185, '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_P25147047_21-07-2025_20_30_39.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25147074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25147075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25147076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25147077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25147078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25147079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25147080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25147081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25147082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25147083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25147084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25147085, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25147481, 'dashboard_result_id': 12833186, '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_P25147481_21-07-2025_20_47_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25147513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25147514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25147515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25147516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25147517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25147518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25147519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25147520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25147521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25147522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25147523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25147524, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25147990, 'dashboard_result_id': 12833187, '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_P25147990_21-07-2025_21_01_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25148022, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25148023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25148024, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25148025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25148026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25148027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25148028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25148029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25148030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25148031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25148032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25148033, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25148440, 'dashboard_result_id': 12833188, '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_P25148440_21-07-2025_21_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25148470, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25148471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25148472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25148473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25148474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25148475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25148476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25148477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25148478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25148479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25148480, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25148481, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25148954, 'dashboard_result_id': 12833189, '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_P25148954_21-07-2025_21_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25148956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25148957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25148958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25148959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25148960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25148961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25148962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25148963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25148964, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25148965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25148966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25148967, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25149403, 'dashboard_result_id': 12833190, '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_P25149403_21-07-2025_21_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25149445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25149446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25149447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25149448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25149449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25149450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25149451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25149452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25149453, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25149454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25149455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25149456, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25149915, 'dashboard_result_id': 12833191, '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_P25149915_21-07-2025_22_00_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25149937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25149939, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25149940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25149942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25149943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25149944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25149946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25149947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25149948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25149949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25149950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25149951, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25150496, 'dashboard_result_id': 12833192, '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_P25150496_21-07-2025_22_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25150505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25150506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25150507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25150508, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25150509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25150510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25150511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25150512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25150513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25150514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25150515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25150516, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25151692, 'dashboard_result_id': 12833193, '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_P25151692_21-07-2025_22_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25151695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25151696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25151697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25151698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25151699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25151700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25151701, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25151702, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25151703, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25151704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25151705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25151706, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25152653, 'dashboard_result_id': 12833194, '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_P25152653_21-07-2025_22_46_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25152672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25152673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25152674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25152675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25152676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25152677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25152678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25152679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25152680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25152681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25152682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25152683, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25153573, 'dashboard_result_id': 12833195, '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_P25153573_21-07-2025_23_02_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25153607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25153608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25153609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25153610, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25153611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25153612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25153613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25153614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25153615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25153616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25153617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25153618, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25155194, 'dashboard_result_id': 12833196, '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_P25155194_21-07-2025_23_39_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25155197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25155198, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25155199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25155200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25155201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25155202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25155203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25155204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25155205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25155206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25155207, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25155208, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25155465, 'dashboard_result_id': 12833197, '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_P25155465_22-07-2025_00_09_44.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25155467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25155468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25155469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25155470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25155471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25155472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25155473, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25155474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25155475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25155476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25155477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25155478, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2003013, 'mtr_portfolio_id': 25155535, 'dashboard_result_id': 12833198, '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_P25155535_22-07-2025_00_09_44.pdf'}"}] 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 = 25117802 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': 3312464, 'mtr_portfolio_id': 25117802, 'created_at': datetime.datetime(2025, 7, 21, 9, 3, 58), 'result': '0.03440997870746703', 'result_long': None, 'result_double': None}] Qualite : 0.03440997870746703 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25117802 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25117802_21-07-2025_09_03_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25117802 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_P25117802_21-07-2025_09_03_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25117803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25117804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25117805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25117806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25117807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25117808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25117809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25117810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25117811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25117812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25117813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25117814, 'pht': 3726}}" where mtr_portfolio_id = 25117802 and dashboard_run_id = 2003013 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`=25117802 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833124, 0.03440997870746703, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25117802_21-07-2025_09_03_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25117803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25117804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25117805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25117806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25117807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25117808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25117809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25117810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25117811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25117812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25117813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25117814, '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 = 25118162 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': 3312503, 'mtr_portfolio_id': 25118162, 'created_at': datetime.datetime(2025, 7, 21, 5, 32, 58), 'result': '0.032502647683057155', 'result_long': None, 'result_double': None}] Qualite : 0.032502647683057155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25118162 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25118162_21-07-2025_05_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25118162 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_P25118162_21-07-2025_05_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25118183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118188, 'pht': 3726}}" where mtr_portfolio_id = 25118162 and dashboard_run_id = 2003013 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`=25118162 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833125, 0.032502647683057155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25118162_21-07-2025_05_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25118183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118188, '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 = 25118583 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': 3312548, 'mtr_portfolio_id': 25118583, 'created_at': datetime.datetime(2025, 7, 21, 5, 46, 57), 'result': '0.03308538033732772', 'result_long': None, 'result_double': None}] Qualite : 0.03308538033732772 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25118583 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25118583_21-07-2025_05_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25118583 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_P25118583_21-07-2025_05_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25118616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118621, 'pht': 3726}}" where mtr_portfolio_id = 25118583 and dashboard_run_id = 2003013 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`=25118583 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833126, 0.03308538033732772, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25118583_21-07-2025_05_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25118616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118621, '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 = 25118867 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': 3312576, 'mtr_portfolio_id': 25118867, 'created_at': datetime.datetime(2025, 7, 21, 6, 0, 30), 'result': '0.037794704530617076', 'result_long': None, 'result_double': None}] Qualite : 0.037794704530617076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25118867 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25118867_21-07-2025_06_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25118867 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_P25118867_21-07-2025_06_00_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25118870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118881, 'pht': 3726}}" where mtr_portfolio_id = 25118867 and dashboard_run_id = 2003013 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`=25118867 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833127, 0.037794704530617076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25118867_21-07-2025_06_00_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25118870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118881, '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 = 25119309 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': 3312628, 'mtr_portfolio_id': 25119309, 'created_at': datetime.datetime(2025, 7, 21, 6, 16, 58), 'result': '0.027272049655271604', 'result_long': None, 'result_double': None}] Qualite : 0.027272049655271604 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25119309 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25119309_21-07-2025_06_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25119309 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_P25119309_21-07-2025_06_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25119362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25119364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25119365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25119366, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25119368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25119369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25119370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25119372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25119373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25119374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25119376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25119377, 'pht': 3726}}" where mtr_portfolio_id = 25119309 and dashboard_run_id = 2003013 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`=25119309 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833128, 0.027272049655271604, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25119309_21-07-2025_06_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25119362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25119364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25119365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25119366, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25119368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25119369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25119370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25119372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25119373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25119374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25119376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25119377, '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 = 25119655 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': 3312661, 'mtr_portfolio_id': 25119655, 'created_at': datetime.datetime(2025, 7, 21, 6, 33, 2), 'result': '0.0418259510549791', 'result_long': None, 'result_double': None}] Qualite : 0.0418259510549791 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25119655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25119655_21-07-2025_06_33_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25119655 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_P25119655_21-07-2025_06_33_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25119661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25119662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25119663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25119664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25119665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25119666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25119667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25119668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25119669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25119670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25119671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25119672, 'pht': 3726}}" where mtr_portfolio_id = 25119655 and dashboard_run_id = 2003013 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`=25119655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833129, 0.0418259510549791, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25119655_21-07-2025_06_33_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25119661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25119662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25119663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25119664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25119665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25119666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25119667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25119668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25119669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25119670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25119671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25119672, '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 = 25120043 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': 3312702, 'mtr_portfolio_id': 25120043, 'created_at': datetime.datetime(2025, 7, 21, 6, 46, 58), 'result': '0.03280485849518129', 'result_long': None, 'result_double': None}] Qualite : 0.03280485849518129 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25120043 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25120043_21-07-2025_06_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25120043 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_P25120043_21-07-2025_06_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25120070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25120071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25120072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25120073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25120074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25120075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25120076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25120077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25120078, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25120079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25120080, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25120081, 'pht': 3726}}" where mtr_portfolio_id = 25120043 and dashboard_run_id = 2003013 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`=25120043 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833130, 0.03280485849518129, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25120043_21-07-2025_06_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25120070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25120071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25120072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25120073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25120074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25120075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25120076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25120077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25120078, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25120079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25120080, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25120081, '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 = 25120433 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': 3312741, 'mtr_portfolio_id': 25120433, 'created_at': datetime.datetime(2025, 7, 21, 7, 2, 58), 'result': '0.028303493940871647', 'result_long': None, 'result_double': None}] Qualite : 0.028303493940871647 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25120433 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25120433_21-07-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25120433 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_P25120433_21-07-2025_07_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25120459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25120460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25120461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25120462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25120463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25120464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25120465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25120466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25120467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25120468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25120469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25120470, 'pht': 3726}}" where mtr_portfolio_id = 25120433 and dashboard_run_id = 2003013 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`=25120433 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833131, 0.028303493940871647, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25120433_21-07-2025_07_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25120459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25120460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25120461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25120462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25120463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25120464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25120465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25120466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25120467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25120468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25120469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25120470, '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 = 25120849 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': 3312791, 'mtr_portfolio_id': 25120849, 'created_at': datetime.datetime(2025, 7, 21, 7, 16, 57), 'result': '0.03741647880597789', 'result_long': None, 'result_double': None}] Qualite : 0.03741647880597789 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25120849 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25120849_21-07-2025_07_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25120849 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_P25120849_21-07-2025_07_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25120858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25120859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25120860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25120861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25120862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25120863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25120864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25120865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25120866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25120867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25120868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25120869, 'pht': 3726}}" where mtr_portfolio_id = 25120849 and dashboard_run_id = 2003013 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`=25120849 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833132, 0.03741647880597789, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25120849_21-07-2025_07_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25120858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25120859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25120860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25120861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25120862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25120863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25120864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25120865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25120866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25120867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25120868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25120869, '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 = 25121295 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': 3312846, 'mtr_portfolio_id': 25121295, 'created_at': datetime.datetime(2025, 7, 21, 7, 30, 31), 'result': '0.057913604656304775', 'result_long': None, 'result_double': None}] Qualite : 0.057913604656304775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25121295 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25121295_21-07-2025_07_30_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25121295 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_P25121295_21-07-2025_07_30_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25121311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25121312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25121313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25121314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25121315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25121316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25121317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25121318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25121319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25121320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25121321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25121322, 'pht': 3726}}" where mtr_portfolio_id = 25121295 and dashboard_run_id = 2003013 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`=25121295 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833133, 0.057913604656304775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25121295_21-07-2025_07_30_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25121311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25121312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25121313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25121314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25121315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25121316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25121317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25121318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25121319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25121320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25121321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25121322, '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 = 25121721 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': 3312901, 'mtr_portfolio_id': 25121721, 'created_at': datetime.datetime(2025, 7, 21, 7, 46, 57), 'result': '0.04469200651161689', 'result_long': None, 'result_double': None}] Qualite : 0.04469200651161689 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25121721 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25121721_21-07-2025_07_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25121721 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_P25121721_21-07-2025_07_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25121736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25121737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25121738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25121739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25121740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25121741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25121742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25121743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25121744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25121745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25121746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25121747, 'pht': 3726}}" where mtr_portfolio_id = 25121721 and dashboard_run_id = 2003013 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`=25121721 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833134, 0.04469200651161689, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25121721_21-07-2025_07_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25121736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25121737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25121738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25121739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25121740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25121741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25121742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25121743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25121744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25121745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25121746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25121747, '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 = 25122196 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': 3312950, 'mtr_portfolio_id': 25122196, 'created_at': datetime.datetime(2025, 7, 21, 8, 0, 58), 'result': '0.05153012025318089', 'result_long': None, 'result_double': None}] Qualite : 0.05153012025318089 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25122196 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25122196_21-07-2025_08_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25122196 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_P25122196_21-07-2025_08_00_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25122199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25122200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25122201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25122202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25122203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25122204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25122205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25122206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25122207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25122208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25122209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25122210, 'pht': 3726}}" where mtr_portfolio_id = 25122196 and dashboard_run_id = 2003013 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`=25122196 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833135, 0.05153012025318089, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25122196_21-07-2025_08_00_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25122199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25122200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25122201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25122202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25122203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25122204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25122205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25122206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25122207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25122208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25122209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25122210, '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 = 25122572 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': 3313014, 'mtr_portfolio_id': 25122572, 'created_at': datetime.datetime(2025, 7, 21, 8, 17, 27), 'result': '0.04399297328570406', 'result_long': None, 'result_double': None}] Qualite : 0.04399297328570406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25122572 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25122572_21-07-2025_08_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25122572 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_P25122572_21-07-2025_08_17_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25122611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25122612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25122613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25122614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25122615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25122616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25122617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25122618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25122619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25122620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25122621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25122622, 'pht': 3726}}" where mtr_portfolio_id = 25122572 and dashboard_run_id = 2003013 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`=25122572 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833136, 0.04399297328570406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25122572_21-07-2025_08_17_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25122611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25122612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25122613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25122614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25122615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25122616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25122617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25122618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25122619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25122620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25122621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25122622, '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 = 25123001 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': 3313061, 'mtr_portfolio_id': 25123001, 'created_at': datetime.datetime(2025, 7, 21, 8, 30, 58), 'result': '0.04563874605983177', 'result_long': None, 'result_double': None}] Qualite : 0.04563874605983177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25123001 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25123001_21-07-2025_08_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25123001 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_P25123001_21-07-2025_08_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25123005, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25123006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25123007, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25123008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25123009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25123010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25123011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25123012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25123013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25123014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25123015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25123016, 'pht': 3726}}" where mtr_portfolio_id = 25123001 and dashboard_run_id = 2003013 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`=25123001 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833137, 0.04563874605983177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25123001_21-07-2025_08_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25123005, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25123006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25123007, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25123008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25123009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25123010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25123011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25123012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25123013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25123014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25123015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25123016, '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 = 25123435 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': 3313122, 'mtr_portfolio_id': 25123435, 'created_at': datetime.datetime(2025, 7, 21, 8, 46, 57), 'result': '0.021387470139719648', 'result_long': None, 'result_double': None}] Qualite : 0.021387470139719648 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25123435 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25123435_21-07-2025_08_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25123435 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_P25123435_21-07-2025_08_46_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25123460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25123461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25123462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25123463, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25123464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25123465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25123466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25123467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25123468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25123469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25123470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25123471, 'pht': 3726}}" where mtr_portfolio_id = 25123435 and dashboard_run_id = 2003013 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`=25123435 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833138, 0.021387470139719648, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25123435_21-07-2025_08_46_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25123460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25123461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25123462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25123463, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25123464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25123465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25123466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25123467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25123468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25123469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25123470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25123471, '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 = 25124003 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': 3313190, 'mtr_portfolio_id': 25124003, 'created_at': datetime.datetime(2025, 7, 21, 9, 0, 58), 'result': '0.024790441340515283', 'result_long': None, 'result_double': None}] Qualite : 0.024790441340515283 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25124003 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25124003_21-07-2025_09_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25124003 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_P25124003_21-07-2025_09_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25124065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25124067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25124068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25124069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25124070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25124071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25124072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25124073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25124074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25124075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25124076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25124077, 'pht': 3726}}" where mtr_portfolio_id = 25124003 and dashboard_run_id = 2003013 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`=25124003 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833139, 0.024790441340515283, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25124003_21-07-2025_09_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25124065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25124067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25124068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25124069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25124070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25124071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25124072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25124073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25124074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25124075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25124076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25124077, '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 = 25124692 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': 3313259, 'mtr_portfolio_id': 25124692, 'created_at': datetime.datetime(2025, 7, 21, 9, 17), 'result': '0.02335231198383595', 'result_long': None, 'result_double': None}] Qualite : 0.02335231198383595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25124692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25124692_21-07-2025_09_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25124692 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_P25124692_21-07-2025_09_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25124729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25124730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25124731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25124732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25124733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25124734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25124735, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25124736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25124737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25124738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25124739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25124740, 'pht': 3726}}" where mtr_portfolio_id = 25124692 and dashboard_run_id = 2003013 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`=25124692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833140, 0.02335231198383595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25124692_21-07-2025_09_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25124729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25124730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25124731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25124732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25124733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25124734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25124735, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25124736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25124737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25124738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25124739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25124740, '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 = 25125169 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': 3313309, 'mtr_portfolio_id': 25125169, 'created_at': datetime.datetime(2025, 7, 21, 9, 31, 1), 'result': '0.0257918562791543', 'result_long': None, 'result_double': None}] Qualite : 0.0257918562791543 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25125169 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25125169_21-07-2025_09_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25125169 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_P25125169_21-07-2025_09_31_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25125195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25125196, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25125197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25125198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25125199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25125200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25125201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25125202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25125203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25125204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25125205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25125206, 'pht': 3726}}" where mtr_portfolio_id = 25125169 and dashboard_run_id = 2003013 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`=25125169 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833141, 0.0257918562791543, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25125169_21-07-2025_09_31_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25125195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25125196, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25125197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25125198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25125199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25125200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25125201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25125202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25125203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25125204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25125205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25125206, '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 = 25125720 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': 3313373, 'mtr_portfolio_id': 25125720, 'created_at': datetime.datetime(2025, 7, 21, 9, 46, 59), 'result': '0.026644239679640976', 'result_long': None, 'result_double': None}] Qualite : 0.026644239679640976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25125720 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25125720_21-07-2025_09_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25125720 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_P25125720_21-07-2025_09_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25125748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25125749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25125750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25125751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25125752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25125753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25125754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25125755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25125756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25125757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25125758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25125759, 'pht': 3726}}" where mtr_portfolio_id = 25125720 and dashboard_run_id = 2003013 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`=25125720 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833142, 0.026644239679640976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25125720_21-07-2025_09_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25125748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25125749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25125750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25125751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25125752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25125753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25125754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25125755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25125756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25125757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25125758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25125759, '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 = 25126214 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': 3313425, 'mtr_portfolio_id': 25126214, 'created_at': datetime.datetime(2025, 7, 21, 10, 0, 30), 'result': '0.03345729665676193', 'result_long': None, 'result_double': None}] Qualite : 0.03345729665676193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25126214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25126214_21-07-2025_10_00_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25126214 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_P25126214_21-07-2025_10_00_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25126220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25126221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25126222, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25126223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25126224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25126225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25126226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25126227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25126228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25126229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25126230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25126231, 'pht': 3726}}" where mtr_portfolio_id = 25126214 and dashboard_run_id = 2003013 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`=25126214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833143, 0.03345729665676193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25126214_21-07-2025_10_00_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25126220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25126221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25126222, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25126223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25126224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25126225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25126226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25126227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25126228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25126229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25126230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25126231, '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 = 25126652 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': 3313479, 'mtr_portfolio_id': 25126652, 'created_at': datetime.datetime(2025, 7, 21, 10, 17), 'result': '0.04178154327730026', 'result_long': None, 'result_double': None}] Qualite : 0.04178154327730026 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25126652 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25126652_21-07-2025_10_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25126652 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_P25126652_21-07-2025_10_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25126655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25126656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25126657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25126658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25126659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25126660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25126661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25126662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25126663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25126664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25126665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25126666, 'pht': 3726}}" where mtr_portfolio_id = 25126652 and dashboard_run_id = 2003013 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`=25126652 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833144, 0.04178154327730026, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25126652_21-07-2025_10_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25126655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25126656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25126657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25126658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25126659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25126660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25126661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25126662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25126663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25126664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25126665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25126666, '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 = 25127139 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': 3313524, 'mtr_portfolio_id': 25127139, 'created_at': datetime.datetime(2025, 7, 21, 10, 31), 'result': '0.043950352534047804', 'result_long': None, 'result_double': None}] Qualite : 0.043950352534047804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25127139 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25127139_21-07-2025_10_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25127139 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_P25127139_21-07-2025_10_31_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25127143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25127144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25127145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25127146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25127147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25127148, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25127149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25127150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25127151, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25127152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25127153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25127154, 'pht': 3726}}" where mtr_portfolio_id = 25127139 and dashboard_run_id = 2003013 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`=25127139 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833145, 0.043950352534047804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25127139_21-07-2025_10_31_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25127143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25127144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25127145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25127146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25127147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25127148, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25127149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25127150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25127151, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25127152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25127153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25127154, '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 = 25127580 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': 3313594, 'mtr_portfolio_id': 25127580, 'created_at': datetime.datetime(2025, 7, 21, 10, 47), 'result': '0.03339850728285444', 'result_long': None, 'result_double': None}] Qualite : 0.03339850728285444 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25127580 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25127580_21-07-2025_10_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25127580 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_P25127580_21-07-2025_10_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25127616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25127617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25127618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25127619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25127620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25127621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25127622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25127623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25127624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25127625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25127626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25127627, 'pht': 3726}}" where mtr_portfolio_id = 25127580 and dashboard_run_id = 2003013 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`=25127580 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833146, 0.03339850728285444, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25127580_21-07-2025_10_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25127616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25127617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25127618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25127619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25127620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25127621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25127622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25127623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25127624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25127625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25127626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25127627, '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 = 25128535 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': 3313690, 'mtr_portfolio_id': 25128535, 'created_at': datetime.datetime(2025, 7, 21, 16, 1), 'result': '0.05392214152734392', 'result_long': None, 'result_double': None}] Qualite : 0.05392214152734392 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25128535 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25128535_21-07-2025_16_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25128535 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_P25128535_21-07-2025_16_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25128542, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25128543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25128544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25128545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25128546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25128547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25128548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25128549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25128550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25128551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25128552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25128553, 'pht': 3726}}" where mtr_portfolio_id = 25128535 and dashboard_run_id = 2003013 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`=25128535 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833147, 0.05392214152734392, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25128535_21-07-2025_16_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25128542, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25128543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25128544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25128545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25128546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25128547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25128548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25128549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25128550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25128551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25128552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25128553, '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 = 25129258 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': 3313740, 'mtr_portfolio_id': 25129258, 'created_at': datetime.datetime(2025, 7, 21, 11, 16, 58), 'result': '0.0581431344604299', 'result_long': None, 'result_double': None}] Qualite : 0.0581431344604299 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25129258 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25129258_21-07-2025_11_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25129258 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_P25129258_21-07-2025_11_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25129260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25129261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25129262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25129263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25129264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25129265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25129266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25129267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25129268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25129269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25129270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25129271, 'pht': 3726}}" where mtr_portfolio_id = 25129258 and dashboard_run_id = 2003013 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`=25129258 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833148, 0.0581431344604299, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25129258_21-07-2025_11_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25129260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25129261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25129262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25129263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25129264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25129265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25129266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25129267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25129268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25129269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25129270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25129271, '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 = 25129821 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': 3313786, 'mtr_portfolio_id': 25129821, 'created_at': datetime.datetime(2025, 7, 21, 11, 30, 59), 'result': '0.041976442848285736', 'result_long': None, 'result_double': None}] Qualite : 0.041976442848285736 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25129821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25129821_21-07-2025_11_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25129821 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_P25129821_21-07-2025_11_31_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25129853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25129854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25129855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25129856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25129857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25129858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25129859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25129860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25129861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25129862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25129863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25129864, 'pht': 3726}}" where mtr_portfolio_id = 25129821 and dashboard_run_id = 2003013 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`=25129821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833149, 0.041976442848285736, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25129821_21-07-2025_11_31_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25129853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25129854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25129855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25129856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25129857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25129858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25129859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25129860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25129861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25129862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25129863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25129864, '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 = 25130289 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': 3313843, 'mtr_portfolio_id': 25130289, 'created_at': datetime.datetime(2025, 7, 21, 11, 46, 58), 'result': '0.04854925222443973', 'result_long': None, 'result_double': None}] Qualite : 0.04854925222443973 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25130289 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25130289_21-07-2025_11_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25130289 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_P25130289_21-07-2025_11_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25130332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25130333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25130334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25130335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25130336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25130337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25130338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25130339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25130340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25130341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25130342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25130343, 'pht': 3726}}" where mtr_portfolio_id = 25130289 and dashboard_run_id = 2003013 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`=25130289 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833150, 0.04854925222443973, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25130289_21-07-2025_11_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25130332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25130333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25130334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25130335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25130336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25130337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25130338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25130339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25130340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25130341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25130342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25130343, '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 = 25131061 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': 3313897, 'mtr_portfolio_id': 25131061, 'created_at': datetime.datetime(2025, 7, 21, 12, 0, 58), 'result': '0.053016262676952225', 'result_long': None, 'result_double': None}] Qualite : 0.053016262676952225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25131061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25131061_21-07-2025_12_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25131061 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_P25131061_21-07-2025_12_00_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25131070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25131071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25131072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25131073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25131074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25131075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25131076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25131077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25131078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25131079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25131080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25131081, 'pht': 3726}}" where mtr_portfolio_id = 25131061 and dashboard_run_id = 2003013 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`=25131061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833151, 0.053016262676952225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25131061_21-07-2025_12_00_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25131070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25131071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25131072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25131073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25131074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25131075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25131076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25131077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25131078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25131079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25131080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25131081, '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 = 25131481 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': 3313945, 'mtr_portfolio_id': 25131481, 'created_at': datetime.datetime(2025, 7, 21, 12, 16, 59), 'result': '0.05295742016892777', 'result_long': None, 'result_double': None}] Qualite : 0.05295742016892777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25131481 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25131481_21-07-2025_12_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25131481 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_P25131481_21-07-2025_12_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25131489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25131490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25131491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25131492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25131493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25131494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25131495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25131496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25131497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25131498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25131499, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25131500, 'pht': 3726}}" where mtr_portfolio_id = 25131481 and dashboard_run_id = 2003013 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`=25131481 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833152, 0.05295742016892777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25131481_21-07-2025_12_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25131489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25131490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25131491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25131492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25131493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25131494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25131495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25131496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25131497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25131498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25131499, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25131500, '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 = 25132070 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': 3313990, 'mtr_portfolio_id': 25132070, 'created_at': datetime.datetime(2025, 7, 21, 16, 1, 29), 'result': '0.030822179816617112', 'result_long': None, 'result_double': None}] Qualite : 0.030822179816617112 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25132070 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25132070_21-07-2025_16_01_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25132070 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_P25132070_21-07-2025_16_01_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25132103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25132104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25132105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25132106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25132107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25132108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25132109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25132110, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25132111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25132112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25132113, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25132114, 'pht': 3726}}" where mtr_portfolio_id = 25132070 and dashboard_run_id = 2003013 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`=25132070 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833153, 0.030822179816617112, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25132070_21-07-2025_16_01_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25132103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25132104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25132105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25132106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25132107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25132108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25132109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25132110, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25132111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25132112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25132113, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25132114, '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 = 25132499 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': 3314034, 'mtr_portfolio_id': 25132499, 'created_at': datetime.datetime(2025, 7, 21, 12, 46, 57), 'result': '0.02691625939005377', 'result_long': None, 'result_double': None}] Qualite : 0.02691625939005377 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25132499 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25132499_21-07-2025_12_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25132499 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_P25132499_21-07-2025_12_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25132530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25132531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25132532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25132533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25132534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25132535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25132536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25132537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25132538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25132539, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25132540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25132541, 'pht': 3726}}" where mtr_portfolio_id = 25132499 and dashboard_run_id = 2003013 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`=25132499 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833154, 0.02691625939005377, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25132499_21-07-2025_12_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25132530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25132531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25132532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25132533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25132534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25132535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25132536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25132537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25132538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25132539, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25132540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25132541, '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 = 25132898 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': 3314082, 'mtr_portfolio_id': 25132898, 'created_at': datetime.datetime(2025, 7, 21, 13, 2, 59), 'result': '0.057058594233041826', 'result_long': None, 'result_double': None}] Qualite : 0.057058594233041826 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25132898 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25132898_21-07-2025_13_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25132898 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_P25132898_21-07-2025_13_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25132963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25132964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25132966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25132967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25132968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25132970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25132971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25132972, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25132973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25132974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25132975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25132976, 'pht': 3726}}" where mtr_portfolio_id = 25132898 and dashboard_run_id = 2003013 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`=25132898 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833155, 0.057058594233041826, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25132898_21-07-2025_13_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25132963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25132964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25132966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25132967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25132968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25132970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25132971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25132972, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25132973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25132974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25132975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25132976, '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 = 25133338 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': 3314132, 'mtr_portfolio_id': 25133338, 'created_at': datetime.datetime(2025, 7, 21, 13, 16, 59), 'result': '0.03731463994155576', 'result_long': None, 'result_double': None}] Qualite : 0.03731463994155576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25133338 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25133338_21-07-2025_13_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25133338 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_P25133338_21-07-2025_13_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25133351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25133352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25133353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25133354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25133355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25133356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25133357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25133358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25133359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25133360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25133361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25133362, 'pht': 3726}}" where mtr_portfolio_id = 25133338 and dashboard_run_id = 2003013 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`=25133338 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833156, 0.03731463994155576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25133338_21-07-2025_13_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25133351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25133352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25133353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25133354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25133355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25133356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25133357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25133358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25133359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25133360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25133361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25133362, '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 = 25133913 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': 3314177, 'mtr_portfolio_id': 25133913, 'created_at': datetime.datetime(2025, 7, 21, 13, 30, 58), 'result': '0.04157485073811501', 'result_long': None, 'result_double': None}] Qualite : 0.04157485073811501 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25133913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25133913_21-07-2025_13_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25133913 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_P25133913_21-07-2025_13_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25133916, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25133917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25133918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25133919, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25133920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25133921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25133922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25133923, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25133924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25133925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25133926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25133927, 'pht': 3726}}" where mtr_portfolio_id = 25133913 and dashboard_run_id = 2003013 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`=25133913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833157, 0.04157485073811501, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25133913_21-07-2025_13_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25133916, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25133917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25133918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25133919, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25133920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25133921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25133922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25133923, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25133924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25133925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25133926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25133927, '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 = 25134286 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': 3314219, 'mtr_portfolio_id': 25134286, 'created_at': datetime.datetime(2025, 7, 21, 16, 1, 58), 'result': '0.08458391961813769', 'result_long': None, 'result_double': None}] Qualite : 0.08458391961813769 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25134286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25134286_21-07-2025_16_01_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25134286 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_P25134286_21-07-2025_16_01_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25134317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25134318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25134319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25134320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25134321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25134322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25134323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25134324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25134325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25134326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25134327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25134328, 'pht': 3726}}" where mtr_portfolio_id = 25134286 and dashboard_run_id = 2003013 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`=25134286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833158, 0.08458391961813769, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25134286_21-07-2025_16_01_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25134317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25134318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25134319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25134320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25134321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25134322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25134323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25134324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25134325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25134326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25134327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25134328, '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 = 25134727 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': 3314264, 'mtr_portfolio_id': 25134727, 'created_at': datetime.datetime(2025, 7, 21, 14, 0, 58), 'result': '0.054323624469430086', 'result_long': None, 'result_double': None}] Qualite : 0.054323624469430086 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25134727 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25134727_21-07-2025_14_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25134727 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_P25134727_21-07-2025_14_00_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25134746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25134747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25134748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25134749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25134750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25134751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25134752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25134753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25134754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25134755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25134756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25134757, 'pht': 3726}}" where mtr_portfolio_id = 25134727 and dashboard_run_id = 2003013 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`=25134727 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833159, 0.054323624469430086, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25134727_21-07-2025_14_00_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25134746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25134747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25134748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25134749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25134750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25134751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25134752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25134753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25134754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25134755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25134756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25134757, '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 = 25135141 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': 3314309, 'mtr_portfolio_id': 25135141, 'created_at': datetime.datetime(2025, 7, 21, 14, 16, 59), 'result': '0.054452306079146945', 'result_long': None, 'result_double': None}] Qualite : 0.054452306079146945 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25135141 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25135141_21-07-2025_14_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25135141 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_P25135141_21-07-2025_14_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25135145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25135146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25135147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25135148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25135149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25135150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25135151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25135152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25135153, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25135154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25135155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25135156, 'pht': 3726}}" where mtr_portfolio_id = 25135141 and dashboard_run_id = 2003013 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`=25135141 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833160, 0.054452306079146945, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25135141_21-07-2025_14_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25135145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25135146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25135147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25135148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25135149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25135150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25135151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25135152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25135153, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25135154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25135155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25135156, '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 = 25135682 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': 3314360, 'mtr_portfolio_id': 25135682, 'created_at': datetime.datetime(2025, 7, 21, 14, 30, 58), 'result': '0.04632018328816097', 'result_long': None, 'result_double': None}] Qualite : 0.04632018328816097 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25135682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25135682_21-07-2025_14_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25135682 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_P25135682_21-07-2025_14_30_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25135684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25135685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25135686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25135687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25135688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25135689, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25135690, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25135691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25135692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25135693, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25135694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25135695, 'pht': 3726}}" where mtr_portfolio_id = 25135682 and dashboard_run_id = 2003013 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`=25135682 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833161, 0.04632018328816097, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25135682_21-07-2025_14_30_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25135684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25135685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25135686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25135687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25135688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25135689, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25135690, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25135691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25135692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25135693, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25135694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25135695, '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 = 25136053 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': 3314530, 'mtr_portfolio_id': 25136053, 'created_at': datetime.datetime(2025, 7, 21, 14, 46, 29), 'result': '0.04659910669888366', 'result_long': None, 'result_double': None}] Qualite : 0.04659910669888366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25136053 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25136053_21-07-2025_14_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25136053 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_P25136053_21-07-2025_14_46_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25136083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25136084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25136085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25136086, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25136087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25136088, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25136089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25136090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25136091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25136092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25136093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25136094, 'pht': 3726}}" where mtr_portfolio_id = 25136053 and dashboard_run_id = 2003013 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`=25136053 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833162, 0.04659910669888366, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25136053_21-07-2025_14_46_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25136083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25136084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25136085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25136086, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25136087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25136088, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25136089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25136090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25136091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25136092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25136093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25136094, '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 = 25136510 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': 3314575, 'mtr_portfolio_id': 25136510, 'created_at': datetime.datetime(2025, 7, 21, 15, 0, 57), 'result': '0.05418617479584796', 'result_long': None, 'result_double': None}] Qualite : 0.05418617479584796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25136510 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25136510_21-07-2025_15_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25136510 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_P25136510_21-07-2025_15_00_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25136537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25136538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25136539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25136540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25136541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25136542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25136543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25136544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25136545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25136546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25136547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25136548, 'pht': 3726}}" where mtr_portfolio_id = 25136510 and dashboard_run_id = 2003013 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`=25136510 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833163, 0.05418617479584796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25136510_21-07-2025_15_00_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25136537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25136538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25136539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25136540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25136541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25136542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25136543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25136544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25136545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25136546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25136547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25136548, '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 = 25137022 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': 3314630, 'mtr_portfolio_id': 25137022, 'created_at': datetime.datetime(2025, 7, 21, 15, 16, 28), 'result': '0.03892267179328861', 'result_long': None, 'result_double': None}] Qualite : 0.03892267179328861 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25137022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25137022_21-07-2025_15_16_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25137022 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_P25137022_21-07-2025_15_16_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25137051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25137052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25137053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25137054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25137055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25137056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25137057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25137058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25137059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25137060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25137061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25137062, 'pht': 3726}}" where mtr_portfolio_id = 25137022 and dashboard_run_id = 2003013 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`=25137022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833164, 0.03892267179328861, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25137022_21-07-2025_15_16_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25137051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25137052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25137053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25137054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25137055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25137056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25137057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25137058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25137059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25137060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25137061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25137062, '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 = 25137479 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': 3314674, 'mtr_portfolio_id': 25137479, 'created_at': datetime.datetime(2025, 7, 21, 16, 2, 28), 'result': '0.030588843023074217', 'result_long': None, 'result_double': None}] Qualite : 0.030588843023074217 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25137479 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25137479_21-07-2025_16_02_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25137479 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_P25137479_21-07-2025_16_02_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25137505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25137506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25137507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25137508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25137509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25137510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25137511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25137512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25137513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25137514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25137515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25137516, 'pht': 3726}}" where mtr_portfolio_id = 25137479 and dashboard_run_id = 2003013 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`=25137479 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833165, 0.030588843023074217, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25137479_21-07-2025_16_02_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25137505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25137506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25137507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25137508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25137509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25137510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25137511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25137512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25137513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25137514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25137515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25137516, '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 = 25137895 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': 3314717, 'mtr_portfolio_id': 25137895, 'created_at': datetime.datetime(2025, 7, 21, 15, 46, 58), 'result': '0.03914740954056118', 'result_long': None, 'result_double': None}] Qualite : 0.03914740954056118 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25137895 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25137895_21-07-2025_15_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25137895 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_P25137895_21-07-2025_15_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25137927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25137928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25137929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25137930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25137931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25137932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25137933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25137934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25137935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25137936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25137937, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25137938, 'pht': 3726}}" where mtr_portfolio_id = 25137895 and dashboard_run_id = 2003013 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`=25137895 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833166, 0.03914740954056118, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25137895_21-07-2025_15_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25137927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25137928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25137929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25137930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25137931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25137932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25137933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25137934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25137935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25137936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25137937, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25137938, '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 = 25138379 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': 3314762, 'mtr_portfolio_id': 25138379, 'created_at': datetime.datetime(2025, 7, 21, 16, 3, 26), 'result': '0.048760080877110035', 'result_long': None, 'result_double': None}] Qualite : 0.048760080877110035 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25138379 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25138379_21-07-2025_16_03_26.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25138379 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_P25138379_21-07-2025_16_03_26.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25138405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25138406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25138407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25138408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25138409, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25138410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25138411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25138412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25138413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25138414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25138415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25138416, 'pht': 3726}}" where mtr_portfolio_id = 25138379 and dashboard_run_id = 2003013 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`=25138379 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833167, 0.048760080877110035, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25138379_21-07-2025_16_03_26.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25138405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25138406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25138407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25138408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25138409, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25138410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25138411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25138412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25138413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25138414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25138415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25138416, '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 = 25138848 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': 3314818, 'mtr_portfolio_id': 25138848, 'created_at': datetime.datetime(2025, 7, 21, 18, 0, 57), 'result': '0.05202198013546802', 'result_long': None, 'result_double': None}] Qualite : 0.05202198013546802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25138848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25138848_21-07-2025_18_00_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25138848 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_P25138848_21-07-2025_18_00_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25138856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25138857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25138858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25138859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25138860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25138861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25138862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25138863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25138864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25138865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25138866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25138867, 'pht': 3726}}" where mtr_portfolio_id = 25138848 and dashboard_run_id = 2003013 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`=25138848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833168, 0.05202198013546802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25138848_21-07-2025_18_00_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25138856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25138857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25138858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25138859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25138860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25138861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25138862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25138863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25138864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25138865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25138866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25138867, '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 = 25139414 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': 3314865, 'mtr_portfolio_id': 25139414, 'created_at': datetime.datetime(2025, 7, 21, 16, 32, 57), 'result': '0.04466248487050513', 'result_long': None, 'result_double': None}] Qualite : 0.04466248487050513 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25139414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25139414_21-07-2025_16_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25139414 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_P25139414_21-07-2025_16_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25139421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25139422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25139423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25139424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25139425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25139426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25139427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25139428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25139429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25139430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25139431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25139432, 'pht': 3726}}" where mtr_portfolio_id = 25139414 and dashboard_run_id = 2003013 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`=25139414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833169, 0.04466248487050513, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25139414_21-07-2025_16_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25139421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25139422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25139423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25139424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25139425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25139426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25139427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25139428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25139429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25139430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25139431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25139432, '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 = 25139792 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': 3314909, 'mtr_portfolio_id': 25139792, 'created_at': datetime.datetime(2025, 7, 21, 16, 46, 58), 'result': '0.04644522981780896', 'result_long': None, 'result_double': None}] Qualite : 0.04644522981780896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25139792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25139792_21-07-2025_16_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25139792 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_P25139792_21-07-2025_16_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25139831, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25139832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25139833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25139834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25139835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25139836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25139837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25139838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25139839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25139840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25139841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25139842, 'pht': 3726}}" where mtr_portfolio_id = 25139792 and dashboard_run_id = 2003013 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`=25139792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833170, 0.04644522981780896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25139792_21-07-2025_16_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25139831, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25139832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25139833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25139834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25139835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25139836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25139837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25139838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25139839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25139840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25139841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25139842, '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 = 25140170 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': 3314949, 'mtr_portfolio_id': 25140170, 'created_at': datetime.datetime(2025, 7, 21, 17, 0, 59), 'result': '0.0531006373155935', 'result_long': None, 'result_double': None}] Qualite : 0.0531006373155935 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25140170 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25140170_21-07-2025_17_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25140170 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_P25140170_21-07-2025_17_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25140176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25140177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25140178, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25140179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25140180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25140181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25140182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25140183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25140184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25140185, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25140186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25140187, 'pht': 3726}}" where mtr_portfolio_id = 25140170 and dashboard_run_id = 2003013 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`=25140170 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833171, 0.0531006373155935, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25140170_21-07-2025_17_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25140176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25140177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25140178, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25140179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25140180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25140181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25140182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25140183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25140184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25140185, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25140186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25140187, '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 = 25140612 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': 3315004, 'mtr_portfolio_id': 25140612, 'created_at': datetime.datetime(2025, 7, 21, 19, 59, 59), 'result': '0.04689354467905509', 'result_long': None, 'result_double': None}] Qualite : 0.04689354467905509 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25140612 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25140612_21-07-2025_19_59_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25140612 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_P25140612_21-07-2025_19_59_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25140637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25140638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25140639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25140640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25140641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25140642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25140643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25140644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25140645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25140646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25140647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25140648, 'pht': 3726}}" where mtr_portfolio_id = 25140612 and dashboard_run_id = 2003013 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`=25140612 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833172, 0.04689354467905509, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25140612_21-07-2025_19_59_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25140637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25140638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25140639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25140640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25140641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25140642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25140643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25140644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25140645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25140646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25140647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25140648, '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 = 25141045 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': 3315050, 'mtr_portfolio_id': 25141045, 'created_at': datetime.datetime(2025, 7, 21, 17, 30, 58), 'result': '0.03965758904472073', 'result_long': None, 'result_double': None}] Qualite : 0.03965758904472073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25141045 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25141045_21-07-2025_17_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25141045 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_P25141045_21-07-2025_17_30_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25141072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25141073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25141074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25141075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25141076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25141077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25141078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25141079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25141080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25141081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25141082, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25141083, 'pht': 3726}}" where mtr_portfolio_id = 25141045 and dashboard_run_id = 2003013 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`=25141045 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833173, 0.03965758904472073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25141045_21-07-2025_17_30_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25141072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25141073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25141074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25141075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25141076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25141077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25141078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25141079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25141080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25141081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25141082, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25141083, '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 = 25141405 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': 3315098, 'mtr_portfolio_id': 25141405, 'created_at': datetime.datetime(2025, 7, 21, 17, 47, 1), 'result': '0.050408776502610185', 'result_long': None, 'result_double': None}] Qualite : 0.050408776502610185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25141405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25141405_21-07-2025_17_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25141405 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_P25141405_21-07-2025_17_47_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25141437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25141438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25141439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25141440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25141441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25141442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25141443, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25141444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25141445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25141446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25141447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25141448, 'pht': 3726}}" where mtr_portfolio_id = 25141405 and dashboard_run_id = 2003013 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`=25141405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833174, 0.050408776502610185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25141405_21-07-2025_17_47_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25141437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25141438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25141439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25141440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25141441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25141442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25141443, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25141444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25141445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25141446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25141447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25141448, '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 = 25141984 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': 3315144, 'mtr_portfolio_id': 25141984, 'created_at': datetime.datetime(2025, 7, 21, 18, 1, 28), 'result': '0.05737196716931191', 'result_long': None, 'result_double': None}] Qualite : 0.05737196716931191 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25141984 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25141984_21-07-2025_18_01_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25141984 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_P25141984_21-07-2025_18_01_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25141987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25141988, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25141989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25141990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25141991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25141992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25141993, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25141994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25141995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25141996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25141997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25141998, 'pht': 3726}}" where mtr_portfolio_id = 25141984 and dashboard_run_id = 2003013 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`=25141984 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833175, 0.05737196716931191, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25141984_21-07-2025_18_01_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25141987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25141988, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25141989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25141990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25141991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25141992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25141993, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25141994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25141995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25141996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25141997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25141998, '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 = 25142615 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': 3315195, 'mtr_portfolio_id': 25142615, 'created_at': datetime.datetime(2025, 7, 21, 18, 16, 59), 'result': '0.0365449290066929', 'result_long': None, 'result_double': None}] Qualite : 0.0365449290066929 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25142615 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25142615_21-07-2025_18_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25142615 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_P25142615_21-07-2025_18_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25142623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25142624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25142625, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25142626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25142627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25142628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25142629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25142630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25142631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25142632, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25142633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25142634, 'pht': 3726}}" where mtr_portfolio_id = 25142615 and dashboard_run_id = 2003013 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`=25142615 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833176, 0.0365449290066929, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25142615_21-07-2025_18_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25142623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25142624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25142625, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25142626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25142627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25142628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25142629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25142630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25142631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25142632, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25142633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25142634, '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 = 25143015 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': 3315238, 'mtr_portfolio_id': 25143015, 'created_at': datetime.datetime(2025, 7, 21, 18, 30, 37), 'result': '0.06641205684904476', 'result_long': None, 'result_double': None}] Qualite : 0.06641205684904476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25143015 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25143015_21-07-2025_18_30_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25143015 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_P25143015_21-07-2025_18_30_38.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25143041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25143042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25143043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25143044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25143045, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25143046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25143047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25143048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25143049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25143050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25143051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25143052, 'pht': 3726}}" where mtr_portfolio_id = 25143015 and dashboard_run_id = 2003013 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`=25143015 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833177, 0.06641205684904476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25143015_21-07-2025_18_30_38.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25143041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25143042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25143043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25143044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25143045, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25143046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25143047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25143048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25143049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25143050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25143051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25143052, '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 = 25143430 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': 3315287, 'mtr_portfolio_id': 25143430, 'created_at': datetime.datetime(2025, 7, 21, 18, 46, 59), 'result': '0.0425198054633183', 'result_long': None, 'result_double': None}] Qualite : 0.0425198054633183 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25143430 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25143430_21-07-2025_18_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25143430 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_P25143430_21-07-2025_18_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25143463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25143464, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25143465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25143466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25143467, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25143468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25143469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25143470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25143471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25143472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25143473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25143474, 'pht': 3726}}" where mtr_portfolio_id = 25143430 and dashboard_run_id = 2003013 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`=25143430 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833178, 0.0425198054633183, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25143430_21-07-2025_18_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25143463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25143464, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25143465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25143466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25143467, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25143468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25143469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25143470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25143471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25143472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25143473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25143474, '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 = 25143985 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': 3315334, 'mtr_portfolio_id': 25143985, 'created_at': datetime.datetime(2025, 7, 21, 19, 0, 32), 'result': '0.057789262385623846', 'result_long': None, 'result_double': None}] Qualite : 0.057789262385623846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25143985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25143985_21-07-2025_19_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25143985 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_P25143985_21-07-2025_19_00_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25143994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25143995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25143996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25143997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25143998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25143999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25144000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25144001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25144002, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25144003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25144004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25144005, 'pht': 3726}}" where mtr_portfolio_id = 25143985 and dashboard_run_id = 2003013 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`=25143985 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833179, 0.057789262385623846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25143985_21-07-2025_19_00_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25143994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25143995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25143996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25143997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25143998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25143999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25144000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25144001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25144002, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25144003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25144004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25144005, '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 = 25144457 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': 3315383, 'mtr_portfolio_id': 25144457, 'created_at': datetime.datetime(2025, 7, 21, 21, 0, 58), 'result': '0.03280553020115557', 'result_long': None, 'result_double': None}] Qualite : 0.03280553020115557 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25144457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25144457_21-07-2025_21_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25144457 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_P25144457_21-07-2025_21_00_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25144464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25144465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25144466, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25144467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25144468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25144469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25144470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25144471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25144472, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25144473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25144474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25144475, 'pht': 3726}}" where mtr_portfolio_id = 25144457 and dashboard_run_id = 2003013 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`=25144457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833180, 0.03280553020115557, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25144457_21-07-2025_21_00_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25144464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25144465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25144466, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25144467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25144468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25144469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25144470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25144471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25144472, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25144473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25144474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25144475, '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 = 25145029 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': 3315428, 'mtr_portfolio_id': 25145029, 'created_at': datetime.datetime(2025, 7, 21, 19, 30, 31), 'result': '0.04321829705013844', 'result_long': None, 'result_double': None}] Qualite : 0.04321829705013844 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25145029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25145029_21-07-2025_19_30_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25145029 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_P25145029_21-07-2025_19_30_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25145031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25145032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25145033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25145034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25145035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25145036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25145037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25145038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25145039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25145040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25145041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25145042, 'pht': 3726}}" where mtr_portfolio_id = 25145029 and dashboard_run_id = 2003013 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`=25145029 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833181, 0.04321829705013844, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25145029_21-07-2025_19_30_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25145031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25145032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25145033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25145034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25145035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25145036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25145037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25145038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25145039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25145040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25145041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25145042, '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 = 25145449 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': 3315475, 'mtr_portfolio_id': 25145449, 'created_at': datetime.datetime(2025, 7, 21, 19, 46, 57), 'result': '0.029276144264756058', 'result_long': None, 'result_double': None}] Qualite : 0.029276144264756058 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25145449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25145449_21-07-2025_19_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25145449 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_P25145449_21-07-2025_19_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25145481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25145482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25145483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25145484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25145485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25145486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25145487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25145488, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25145489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25145490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25145491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25145492, 'pht': 3726}}" where mtr_portfolio_id = 25145449 and dashboard_run_id = 2003013 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`=25145449 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833182, 0.029276144264756058, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25145449_21-07-2025_19_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25145481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25145482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25145483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25145484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25145485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25145486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25145487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25145488, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25145489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25145490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25145491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25145492, '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 = 25145980 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': 3315524, 'mtr_portfolio_id': 25145980, 'created_at': datetime.datetime(2025, 7, 21, 20, 0, 58), 'result': '0.03872769274819996', 'result_long': None, 'result_double': None}] Qualite : 0.03872769274819996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25145980 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25145980_21-07-2025_20_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25145980 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_P25145980_21-07-2025_20_00_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25145984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25145985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25145986, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25145987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25145988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25145989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25145990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25145991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25145992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25145993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25145994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25145995, 'pht': 3726}}" where mtr_portfolio_id = 25145980 and dashboard_run_id = 2003013 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`=25145980 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833183, 0.03872769274819996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25145980_21-07-2025_20_00_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25145984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25145985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25145986, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25145987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25145988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25145989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25145990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25145991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25145992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25145993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25145994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25145995, '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 = 25146411 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': 3315576, 'mtr_portfolio_id': 25146411, 'created_at': datetime.datetime(2025, 7, 21, 20, 16, 59), 'result': '0.05119945558458339', 'result_long': None, 'result_double': None}] Qualite : 0.05119945558458339 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25146411 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25146411_21-07-2025_20_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25146411 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_P25146411_21-07-2025_20_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25146417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25146418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25146419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25146420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25146421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25146422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25146423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25146424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25146425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25146427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25146428, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25146429, 'pht': 3726}}" where mtr_portfolio_id = 25146411 and dashboard_run_id = 2003013 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`=25146411 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833184, 0.05119945558458339, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25146411_21-07-2025_20_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25146417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25146418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25146419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25146420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25146421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25146422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25146423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25146424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25146425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25146427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25146428, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25146429, '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 = 25147047 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': 3315629, 'mtr_portfolio_id': 25147047, 'created_at': datetime.datetime(2025, 7, 21, 20, 30, 38), 'result': '0.02963766845967528', 'result_long': None, 'result_double': None}] Qualite : 0.02963766845967528 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25147047 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25147047_21-07-2025_20_30_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25147047 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_P25147047_21-07-2025_20_30_39.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25147074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25147075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25147076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25147077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25147078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25147079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25147080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25147081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25147082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25147083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25147084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25147085, 'pht': 3726}}" where mtr_portfolio_id = 25147047 and dashboard_run_id = 2003013 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`=25147047 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833185, 0.02963766845967528, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25147047_21-07-2025_20_30_39.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25147074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25147075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25147076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25147077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25147078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25147079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25147080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25147081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25147082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25147083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25147084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25147085, '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 = 25147481 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': 3315673, 'mtr_portfolio_id': 25147481, 'created_at': datetime.datetime(2025, 7, 21, 20, 47), 'result': '0.03370119540209498', 'result_long': None, 'result_double': None}] Qualite : 0.03370119540209498 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25147481 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25147481_21-07-2025_20_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25147481 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_P25147481_21-07-2025_20_47_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25147513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25147514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25147515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25147516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25147517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25147518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25147519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25147520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25147521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25147522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25147523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25147524, 'pht': 3726}}" where mtr_portfolio_id = 25147481 and dashboard_run_id = 2003013 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`=25147481 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833186, 0.03370119540209498, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25147481_21-07-2025_20_47_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25147513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25147514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25147515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25147516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25147517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25147518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25147519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25147520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25147521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25147522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25147523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25147524, '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 = 25147990 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': 3315720, 'mtr_portfolio_id': 25147990, 'created_at': datetime.datetime(2025, 7, 21, 21, 1, 29), 'result': '0.0036260803490303422', 'result_long': None, 'result_double': None}] Qualite : 0.0036260803490303422 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25147990 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25147990_21-07-2025_21_01_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25147990 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_P25147990_21-07-2025_21_01_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25148022, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25148023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25148024, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25148025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25148026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25148027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25148028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25148029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25148030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25148031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25148032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25148033, 'pht': 3726}}" where mtr_portfolio_id = 25147990 and dashboard_run_id = 2003013 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`=25147990 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833187, 0.0036260803490303422, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25147990_21-07-2025_21_01_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25148022, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25148023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25148024, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25148025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25148026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25148027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25148028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25148029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25148030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25148031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25148032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25148033, '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 = 25148440 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': 3315768, 'mtr_portfolio_id': 25148440, 'created_at': datetime.datetime(2025, 7, 21, 21, 16, 58), 'result': '0.015265757428581666', 'result_long': None, 'result_double': None}] Qualite : 0.015265757428581666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25148440 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25148440_21-07-2025_21_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25148440 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_P25148440_21-07-2025_21_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25148470, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25148471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25148472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25148473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25148474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25148475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25148476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25148477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25148478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25148479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25148480, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25148481, 'pht': 3726}}" where mtr_portfolio_id = 25148440 and dashboard_run_id = 2003013 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`=25148440 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833188, 0.015265757428581666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25148440_21-07-2025_21_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25148470, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25148471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25148472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25148473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25148474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25148475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25148476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25148477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25148478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25148479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25148480, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25148481, '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 = 25148954 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': 3315810, 'mtr_portfolio_id': 25148954, 'created_at': datetime.datetime(2025, 7, 21, 21, 33), 'result': '0.04407836117710489', 'result_long': None, 'result_double': None}] Qualite : 0.04407836117710489 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25148954 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25148954_21-07-2025_21_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25148954 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_P25148954_21-07-2025_21_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25148956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25148957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25148958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25148959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25148960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25148961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25148962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25148963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25148964, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25148965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25148966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25148967, 'pht': 3726}}" where mtr_portfolio_id = 25148954 and dashboard_run_id = 2003013 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`=25148954 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833189, 0.04407836117710489, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25148954_21-07-2025_21_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25148956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25148957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25148958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25148959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25148960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25148961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25148962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25148963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25148964, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25148965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25148966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25148967, '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 = 25149403 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': 3315857, 'mtr_portfolio_id': 25149403, 'created_at': datetime.datetime(2025, 7, 21, 21, 47), 'result': '0.06609486277779589', 'result_long': None, 'result_double': None}] Qualite : 0.06609486277779589 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25149403 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25149403_21-07-2025_21_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25149403 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_P25149403_21-07-2025_21_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25149445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25149446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25149447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25149448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25149449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25149450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25149451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25149452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25149453, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25149454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25149455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25149456, 'pht': 3726}}" where mtr_portfolio_id = 25149403 and dashboard_run_id = 2003013 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`=25149403 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833190, 0.06609486277779589, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25149403_21-07-2025_21_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25149445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25149446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25149447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25149448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25149449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25149450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25149451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25149452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25149453, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25149454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25149455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25149456, '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 = 25149915 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': 3315906, 'mtr_portfolio_id': 25149915, 'created_at': datetime.datetime(2025, 7, 21, 22, 0, 30), 'result': '0.16155462364916442', 'result_long': None, 'result_double': None}] Qualite : 0.16155462364916442 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25149915 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25149915_21-07-2025_22_00_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25149915 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_P25149915_21-07-2025_22_00_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25149937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25149939, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25149940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25149942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25149943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25149944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25149946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25149947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25149948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25149949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25149950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25149951, 'pht': 3726}}" where mtr_portfolio_id = 25149915 and dashboard_run_id = 2003013 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`=25149915 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833191, 0.16155462364916442, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25149915_21-07-2025_22_00_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25149937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25149939, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25149940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25149942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25149943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25149944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25149946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25149947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25149948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25149949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25149950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25149951, '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 = 25150496 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': 3316023, 'mtr_portfolio_id': 25150496, 'created_at': datetime.datetime(2025, 7, 21, 22, 16, 57), 'result': '0.024324853160957418', 'result_long': None, 'result_double': None}] Qualite : 0.024324853160957418 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25150496 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25150496_21-07-2025_22_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25150496 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_P25150496_21-07-2025_22_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25150505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25150506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25150507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25150508, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25150509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25150510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25150511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25150512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25150513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25150514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25150515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25150516, 'pht': 3726}}" where mtr_portfolio_id = 25150496 and dashboard_run_id = 2003013 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`=25150496 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833192, 0.024324853160957418, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25150496_21-07-2025_22_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25150505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25150506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25150507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25150508, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25150509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25150510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25150511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25150512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25150513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25150514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25150515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25150516, '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 = 25151692 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': 3316078, 'mtr_portfolio_id': 25151692, 'created_at': datetime.datetime(2025, 7, 21, 22, 33, 1), 'result': '0.042567070757296085', 'result_long': None, 'result_double': None}] Qualite : 0.042567070757296085 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25151692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25151692_21-07-2025_22_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25151692 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_P25151692_21-07-2025_22_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25151695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25151696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25151697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25151698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25151699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25151700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25151701, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25151702, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25151703, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25151704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25151705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25151706, 'pht': 3726}}" where mtr_portfolio_id = 25151692 and dashboard_run_id = 2003013 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`=25151692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833193, 0.042567070757296085, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25151692_21-07-2025_22_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25151695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25151696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25151697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25151698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25151699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25151700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25151701, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25151702, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25151703, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25151704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25151705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25151706, '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 = 25152653 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': 3316122, 'mtr_portfolio_id': 25152653, 'created_at': datetime.datetime(2025, 7, 21, 22, 46, 30), 'result': '0.1148229528806499', 'result_long': None, 'result_double': None}] Qualite : 0.1148229528806499 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25152653 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25152653_21-07-2025_22_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25152653 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_P25152653_21-07-2025_22_46_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25152672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25152673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25152674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25152675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25152676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25152677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25152678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25152679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25152680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25152681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25152682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25152683, 'pht': 3726}}" where mtr_portfolio_id = 25152653 and dashboard_run_id = 2003013 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`=25152653 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833194, 0.1148229528806499, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25152653_21-07-2025_22_46_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25152672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25152673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25152674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25152675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25152676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25152677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25152678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25152679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25152680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25152681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25152682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25152683, '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 = 25153573 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': 3316175, 'mtr_portfolio_id': 25153573, 'created_at': datetime.datetime(2025, 7, 21, 23, 1, 59), 'result': '0.033503020494932395', 'result_long': None, 'result_double': None}] Qualite : 0.033503020494932395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25153573 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25153573_21-07-2025_23_02_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25153573 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_P25153573_21-07-2025_23_02_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25153607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25153608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25153609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25153610, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25153611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25153612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25153613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25153614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25153615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25153616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25153617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25153618, 'pht': 3726}}" where mtr_portfolio_id = 25153573 and dashboard_run_id = 2003013 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`=25153573 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833195, 0.033503020494932395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25153573_21-07-2025_23_02_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25153607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25153608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25153609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25153610, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25153611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25153612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25153613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25153614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25153615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25153616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25153617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25153618, '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 = 25155194 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': 3316268, 'mtr_portfolio_id': 25155194, 'created_at': datetime.datetime(2025, 7, 22, 0, 12, 59), 'result': '0.06136468089420021', 'result_long': None, 'result_double': None}] Qualite : 0.06136468089420021 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25155194 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25155194_22-07-2025_00_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25155194 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_P25155194_22-07-2025_00_13_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25155197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25155198, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25155199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25155200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25155201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25155202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25155203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25155204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25155205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25155206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25155207, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25155208, 'pht': 3726}}" where mtr_portfolio_id = 25155194 and dashboard_run_id = 2003014 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`=25155194 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833196, 0.06136468089420021, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25155194_22-07-2025_00_13_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25155197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25155198, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25155199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25155200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25155201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25155202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25155203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25155204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25155205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25155206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25155207, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25155208, '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 = 25155465 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': 3316309, 'mtr_portfolio_id': 25155465, 'created_at': datetime.datetime(2025, 7, 22, 0, 9, 36), 'result': '0.0016179605977191076', 'result_long': None, 'result_double': None}] Qualite : 0.0016179605977191076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25155465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25155465_22-07-2025_00_09_44.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25155465 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_P25155465_22-07-2025_00_09_44.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25155467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25155468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25155469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25155470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25155471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25155472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25155473, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25155474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25155475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25155476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25155477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25155478, 'pht': 3726}}" where mtr_portfolio_id = 25155465 and dashboard_run_id = 2003014 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`=25155465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12833197, 0.0016179605977191076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25155465_22-07-2025_00_09_44.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25155467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25155468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25155469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25155470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25155471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25155472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25155473, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25155474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25155475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25155476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25155477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25155478, '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 = 25155535 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 25155535 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25155535 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25155535 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25155535 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25155535 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25155535_22-07-2025_00_09_44.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25155535 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_P25155535_22-07-2025_00_09_44.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25155536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25155537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25155538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25155539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25155540, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25155541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25155542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25155543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25155544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25155545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25155546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25155547, 'pht': 3726}}" where mtr_portfolio_id = 25155535 and dashboard_run_id = 2003014 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25117802,25118162,25118583,25118867,25119309,25119655,25120043,25120433,25120849,25121295,25121721,25122196,25122572,25123001,25123435,25124003,25124692,25125169,25125720,25126214,25126652,25127139,25127580,25128535,25129258,25129821,25130289,25131061,25131481,25132070,25132499,25132898,25133338,25133913,25134286,25134727,25135141,25135682,25136053,25136510,25137022,25137479,25137895,25138379,25138848,25139414,25139792,25140170,25140612,25141045,25141405,25141984,25142615,25143015,25143430,25143985,25144457,25145029,25145449,25145980,25146411,25147047,25147481,25147990,25148440,25148954,25149403,25149915,25150496,25151692,25152653,25153573,25155194,25155465,25155535) result : ((1372964074,), (1372964101,), (1372964128,), (1372964152,), (1372964177,), (1372964403,), (1372964596,), (1372964606,), (1372964608,), (1372964610,), (1372964612,), (1372964614,), (1372964631,), (1372964635,), (1372964637,), (1372964641,), (1372964645,), (1372964648,), (1372964668,), (1372964691,), (1372964692,), (1372964693,), (1372964694,), (1372964695,), (1372964696,), (1372964720,), (1372964722,), (1372964723,), (1372964724,), (1372964725,), (1372964726,), (1372964739,), (1372964741,), (1372964742,), (1372964743,), (1372964744,), (1372964745,), (1372964758,), (1372964760,), (1372964761,), (1372964762,), (1372964764,), (1372964766,), (1372964792,), (1372964795,), (1372964798,), (1372964800,), (1372964802,), (1372964803,), (1372964831,), (1372964855,), (1372964857,), (1372964858,), (1372964860,), (1372964861,), (1372964862,), (1372964878,), (1372964880,), (1372964881,), (1372964883,), (1372964884,), (1372964885,), (1372964898,), (1372964900,), (1372964902,), (1372964904,), (1372964905,), (1372964906,), (1372964930,), (1372964933,), (1372964935,), (1372964936,), (1372964937,), (1372964938,), (1372967634,), (1372979480,), (1372979486,), (1372964945,), (1372964946,), (1372964947,), (1372964948,), (1372964949,), (1372964951,), (1372964959,), (1372964960,), (1372964962,), (1372964964,), (1372964966,), (1372964968,), (1372964981,), (1372964983,), (1372964984,), (1372964985,), (1372964986,), (1372964987,), (1372965001,), (1372965003,), (1372965005,), (1372965006,), (1372965007,), (1372965008,), (1372965018,), (1372965021,), (1372965023,), (1372965024,), (1372965025,), (1372965026,), (1372965046,), (1372965063,), (1372965083,), (1372965088,), (1372965091,), (1372965092,), (1372965093,), (1372965095,), (1372965142,), (1372965147,), (1372965151,), (1372965153,), (1372965154,), (1372965155,), (1372965171,), (1372965173,), (1372965176,), (1372965179,), (1372965180,), (1372965181,), (1372965193,), (1372965195,), (1372965196,), (1372965197,), (1372965198,), (1372965199,), (1372965212,), (1372965213,), (1372965214,), (1372965219,), (1372965220,), (1372965221,), (1372965262,), (1372965264,), (1372965265,), (1372965266,), (1372965267,), (1372965269,), (1372965296,), (1372965297,), (1372965298,), (1372965299,), (1372965300,), (1372965301,), (1372965318,), (1372965322,), (1372965326,), (1372965327,), (1372965329,), (1372965331,), (1372965381,), (1372965402,), (1372965404,), (1372965405,), (1372965408,), (1372965410,), (1372965412,), (1372965425,), (1372965426,), (1372965428,), (1372965430,), (1372965431,), (1372965432,), (1372965444,), (1372965448,), (1372965452,), (1372965454,), (1372965455,), (1372965456,), (1372965469,), (1372965471,), (1372965472,), (1372965474,), (1372965475,), (1372965476,), (1372965484,), (1372965486,), (1372965489,), (1372965491,), (1372965493,), (1372965494,), (1372965509,), (1372965530,), (1372965536,), (1372965539,), (1372965540,), (1372965541,), (1372965542,), (1372965552,), (1372965554,), (1372965555,), (1372965556,), (1372965557,), (1372965558,), (1372965568,), (1372965577,), (1372965581,), (1372965582,), (1372965583,), (1372965584,), (1372965601,), (1372965602,), (1372965603,), (1372965604,), (1372965606,), (1372965607,), (1372965629,), (1372965645,), (1372965650,), (1372965652,), (1372965656,), (1372965658,), (1372965660,), (1372965672,), (1372965678,), (1372965679,), (1372965681,), (1372965682,), (1372965683,), (1372965693,), (1372965696,), (1372965697,), (1372965699,), (1372965700,), (1372965701,), (1372965706,), (1372965709,), (1372965711,), (1372965713,), (1372965715,), (1372965718,), (1372965732,), (1372965733,), (1372965734,), (1372965735,), (1372965736,), (1372965738,), (1372965752,), (1372965753,), (1372965754,), (1372965755,), (1372965756,), (1372965757,), (1372965772,), (1372965774,), (1372965776,), (1372965778,), (1372965779,), (1372965781,), (1372965805,), (1372965808,), (1372965810,), (1372965811,), (1372965812,), (1372965813,), (1372965839,), (1372965842,), (1372965845,), (1372965847,), (1372965849,), (1372965850,), (1372965861,), (1372965882,), (1372965884,), (1372965886,), (1372965887,), (1372965888,), (1372965889,), (1372965907,), (1372965909,), (1372965910,), (1372965913,), (1372965914,), (1372965916,), (1372965928,), (1372965931,), (1372965933,), (1372965935,), (1372965936,), (1372965937,), (1372965942,), (1372965944,), (1372965946,), (1372965948,), (1372965949,), (1372965950,), (1372965968,), (1372966179,), (1372966220,), (1372966267,), (1372966312,), (1372966357,), (1372966434,), (1372967508,), (1372967622,), (1372967625,), (1372967628,), (1372967630,), (1372967633,), (1372967641,), (1372967659,), (1372967686,), (1372967690,), (1372967693,), (1372967695,), (1372967696,), (1372967697,), (1372967710,), (1372967711,), (1372967713,), (1372967715,), (1372967716,), (1372967717,), (1372967722,), (1372967724,), (1372967726,), (1372967727,), (1372967728,), (1372967729,), (1372967740,), (1372967764,), (1372967766,), (1372967767,), (1372967768,), (1372967769,), (1372967770,), (1372967780,), (1372967784,), (1372967788,), (1372967791,), (1372967793,), (1372967794,), (1372967802,), (1372967803,), (1372967805,), (1372967808,), (1372967810,), (1372967812,), (1372967836,), (1372967838,), (1372967839,), (1372967841,), (1372967842,), (1372967843,), (1372967871,), (1372967886,), (1372967888,), (1372967890,), (1372967891,), (1372967892,), (1372967893,), (1372967909,), (1372967911,), (1372967913,), (1372967914,), (1372967915,), (1372967916,), (1372967934,), (1372967936,), (1372967939,), (1372967940,), (1372967941,), (1372967942,), (1372967948,), (1372967954,), (1372967956,), (1372967957,), (1372967958,), (1372967959,), (1372967969,), (1372968001,), (1372968007,), (1372968009,), (1372968010,), (1372968011,), (1372968012,), (1372968035,), (1372968037,), (1372968039,), (1372968040,), (1372968041,), (1372968042,), (1372968062,), (1372968064,), (1372968066,), (1372968068,), (1372968070,), (1372968072,), (1372968094,), (1372968111,), (1372968112,), (1372968113,), (1372968114,), (1372968115,), (1372968116,), (1372968131,), (1372968133,), (1372968135,), (1372968136,), (1372968138,), (1372968140,), (1372968149,), (1372968154,), (1372968158,), (1372968163,), (1372968166,), (1372968168,), (1372968177,), (1372968180,), (1372968182,), (1372968184,), (1372968187,), (1372968189,), (1372968206,), (1372968207,), (1372968208,), (1372968210,), (1372968212,), (1372968216,), (1372968236,), (1372968237,), (1372968238,), (1372968239,), (1372968240,), (1372968242,), (1372968261,), (1372968263,), (1372968264,), (1372968266,), (1372968267,), (1372968268,), (1372968289,), (1372968290,), (1372968292,), (1372968294,), (1372968295,), (1372968296,), (1372968309,), (1372968314,), (1372968323,), (1372968334,), (1372968337,), (1372968341,), (1372968367,), (1372968369,), (1372968371,), (1372968372,), (1372968379,), (1372968383,), (1372968403,), (1372968423,), (1372968425,), (1372968426,), (1372968428,), (1372968431,), (1372968434,), (1372968446,), (1372968452,), (1372968458,), (1372968460,), (1372968461,), (1372968463,), (1372968496,), (1372968510,), (1372968519,), (1372968524,), (1372968525,), (1372968526,), (1372968527,), (1372968547,), (1372968548,), (1372968550,), (1372968552,), (1372968554,), (1372968555,), (1372968574,), (1372968575,), (1372968576,), (1372968577,), (1372968578,), (1372968579,), (1372968593,), (1372968595,), (1372968596,), (1372968597,), (1372968599,), (1372968600,), (1372968618,), (1372968620,), (1372968622,), (1372968623,), (1372968624,), (1372968625,), (1372968672,), (1372968673,), (1372968674,), (1372968675,), (1372968677,), (1372968678,), (1372968709,), (1372968733,), (1372968738,), (1372968740,), (1372968743,), (1372968746,), (1372968749,), (1372968765,), (1372968768,), (1372968770,), (1372968772,), (1372968776,), (1372968779,), (1372968792,), (1372968794,), (1372968796,), (1372968798,), (1372968799,), (1372968800,), (1372968812,), (1372968813,), (1372968818,), (1372968819,), (1372968820,), (1372968821,), (1372968838,), (1372968840,), (1372968841,), (1372968843,), (1372968844,), (1372968845,), (1372968858,), (1372968862,), (1372968866,), (1372968868,), (1372968870,), (1372968871,), (1372968900,), (1372968903,), (1372968906,), (1372968907,), (1372968908,), (1372968909,), (1372968931,), (1372968933,), (1372968936,), (1372968938,), (1372968939,), (1372968941,), (1372968968,), (1372968971,), (1372968974,), (1372968975,), (1372968977,), (1372968979,), (1372968998,), (1372969023,), (1372969025,), (1372969026,), (1372969028,), (1372969029,), (1372969030,), (1372969040,), (1372969043,), (1372969044,), (1372969047,), (1372969049,), (1372969050,), (1372969068,), (1372969071,), (1372969073,), (1372969075,), (1372969077,), (1372969079,), (1372969087,), (1372969091,), (1372969093,), (1372969094,), (1372969096,), (1372969099,), (1372969120,), (1372969122,), (1372969124,), (1372969125,), (1372969128,), (1372969132,), (1372969319,), (1372969372,), (1372969428,), (1372969477,), (1372969530,), (1372969570,), (1372970012,), (1372970455,), (1372970336,), (1372970360,), (1372970382,), (1372970406,), (1372970430,), (1372970561,), (1372970587,), (1372970608,), (1372970610,), (1372970632,), (1372970638,), (1372970657,), (1372970660,), (1372970663,), (1372970664,), (1372970665,), (1372970666,), (1372970686,), (1372970692,), (1372970698,), (1372970700,), (1372970702,), (1372970704,), (1372970736,), (1372970738,), (1372970741,), (1372970742,), (1372970744,), (1372970746,), (1372970757,), (1372970759,), (1372970766,), (1372970772,), (1372970774,), (1372970777,), (1372970805,), (1372970833,), (1372970840,), (1372970844,), (1372970846,), (1372970848,), (1372970851,), (1372970878,), (1372970880,), (1372970881,), (1372970883,), (1372970885,), (1372970889,), (1372970909,), (1372970916,), (1372970920,), (1372970921,), (1372970924,), (1372970926,), (1372970956,), (1372970959,), (1372970961,), (1372970962,), (1372970964,), (1372970966,), (1372970989,), (1372971018,), (1372971021,), (1372971023,), (1372971026,), (1372971028,), (1372971032,), (1372971049,), (1372971052,), (1372971054,), (1372971060,), (1372971063,), (1372971066,), (1372971103,), (1372971106,), (1372971107,), (1372971111,), (1372971114,), (1372971116,), (1372971136,), (1372971143,), (1372971147,), (1372971148,), (1372971150,), (1372971154,), (1372971189,), (1372971190,), (1372971191,), (1372971192,), (1372971194,), (1372971196,), (1372971221,), (1372971224,), (1372971228,), (1372971231,), (1372971235,), (1372971239,), (1372971270,), (1372971272,), (1372971274,), (1372971275,), (1372971279,), (1372971282,), (1372971305,), (1372971308,), (1372971313,), (1372971315,), (1372971317,), (1372971319,), (1372971343,), (1372971345,), (1372971347,), (1372971349,), (1372971352,), (1372971354,), (1372971388,), (1372971390,), (1372971392,), (1372971395,), (1372971398,), (1372971401,), (1372971435,), (1372971439,), (1372971441,), (1372971444,), (1372971446,), (1372971448,), (1372971466,), (1372971468,), (1372971472,), (1372971477,), (1372971479,), (1372971481,), (1372971501,), (1372971502,), (1372971505,), (1372971508,), (1372971510,), (1372971512,), (1372971527,), (1372971535,), (1372971542,), (1372971544,), (1372971546,), (1372971548,), (1372971576,), (1372971578,), (1372971581,), (1372971583,), (1372971584,), (1372971585,), (1372971609,), (1372971613,), (1372971616,), (1372971618,), (1372971621,), (1372971623,), (1372971647,), (1372971649,), (1372971650,), (1372971652,), (1372971655,), (1372971658,), (1372971677,), (1372971680,), (1372971683,), (1372971684,), (1372971687,), (1372971689,), (1372971727,), (1372971730,), (1372971737,), (1372971747,), (1372971751,), (1372971757,), (1372971785,), (1372971817,), (1372971820,), (1372971823,), (1372971824,), (1372971827,), (1372971831,), (1372971852,), (1372971854,), (1372971856,), (1372971863,), (1372971874,), (1372971880,), (1372971895,), (1372971899,), (1372971902,), (1372971903,), (1372971907,), (1372971910,), (1372971928,), (1372971933,), (1372971935,), (1372971937,), (1372971939,), (1372971942,), (1372971963,), (1372971964,), (1372971967,), (1372971970,), (1372971973,), (1372971976,), (1372971995,), (1372972000,), (1372972003,), (1372972011,), (1372972019,), (1372972027,), (1372972048,), (1372972050,), (1372972053,), (1372972054,), (1372972057,), (1372972060,), (1372972085,), (1372972087,), (1372972090,), (1372972092,), (1372972095,), (1372972098,), (1372972130,), (1372972131,), (1372972132,), (1372972134,), (1372972136,), (1372972139,), (1372972182,), (1372972222,), (1372972225,), (1372972228,), (1372972230,), (1372972231,), (1372972233,), (1372972261,), (1372972263,), (1372972265,), (1372972266,), (1372972268,), (1372972270,), (1372972299,), (1372972302,), (1372972305,), (1372972306,), (1372972308,), (1372972310,), (1372972330,), (1372972339,), (1372972345,), (1372972347,), (1372972349,), (1372972351,), (1372972375,), (1372972377,), (1372972379,), (1372972382,), (1372972385,), (1372972388,), (1372972409,), (1372972416,), (1372972421,), (1372972424,), (1372972425,), (1372972428,), (1372972449,), (1372972453,), (1372972457,), (1372972462,), (1372972465,), (1372972468,), (1372972489,), (1372972493,), (1372972496,), (1372972498,), (1372972501,), (1372972505,), (1372972550,), (1372972553,), (1372972555,), (1372972558,), (1372972559,), (1372972563,), (1372972595,), (1372972631,), (1372972635,), (1372972638,), (1372972641,), (1372972643,), (1372972646,), (1372972668,), (1372972674,), (1372972676,), (1372972678,), (1372972681,), (1372972684,), (1372972707,), (1372972740,), (1372972782,), (1372972783,), (1372972784,), (1372972785,), (1372972786,), (1372972789,), (1372973036,), (1372973071,), (1372973104,), (1372973131,), (1372973163,), (1372973214,), (1372974567,), (1372974568,), (1372974675,), (1372974686,), (1372974688,), (1372974690,), (1372974692,), (1372974707,), (1372974708,), (1372974710,), (1372974713,), (1372974716,), (1372974720,), (1372974736,), (1372974738,), (1372974739,), (1372974741,), (1372974743,), (1372974745,), (1372974776,), (1372974778,), (1372974782,), (1372974785,), (1372974789,), (1372974793,), (1372974816,), (1372974818,), (1372974821,), (1372974823,), (1372974825,), (1372974828,), (1372974844,), (1372974845,), (1372974847,), (1372974849,), (1372974851,), (1372974854,), (1372974875,), (1372974877,), (1372974878,), (1372974880,), (1372974882,), (1372974884,), (1372974922,), (1372974925,), (1372974927,), (1372974929,), (1372974931,), (1372974933,), (1372974962,), (1372974963,), (1372974965,), (1372974967,), (1372974969,), (1372974971,), (1372975001,), (1372975010,), (1372975014,), (1372975016,), (1372975018,), (1372975020,), (1372975043,), (1372975048,), (1372975052,), (1372975054,), (1372975057,), (1372975059,), (1372975083,), (1372975125,), (1372975156,), (1372975159,), (1372975161,), (1372975163,), (1372975166,), (1372975169,), (1372975198,), (1372975200,), (1372975202,), (1372975204,), (1372975205,), (1372975207,), (1372975220,), (1372975221,), (1372975222,), (1372975223,), (1372975225,), (1372975227,), (1372975252,), (1372975254,), (1372975255,), (1372975257,), (1372975259,), (1372975261,), (1372975283,), (1372975287,), (1372975290,), (1372975292,), (1372975295,), (1372975297,), (1372975323,), (1372975327,), (1372975331,), (1372975332,), (1372975334,), (1372975336,), (1372975356,), (1372975370,), (1372975376,), (1372975379,), (1372975382,), (1372975385,), (1372975408,), (1372975410,), (1372975412,), (1372975413,), (1372975415,), (1372975417,), (1372975445,), (1372975477,), (1372975478,), (1372975480,), (1372975483,), (1372975486,), (1372975489,), (1372975506,), (1372975516,), (1372975517,), (1372975519,), (1372975521,), (1372975524,), (1372975556,), (1372975558,), (1372975559,), (1372975562,), (1372975565,), (1372975568,), (1372975594,), (1372975595,), (1372975598,), (1372975601,), (1372975604,), (1372975606,), (1372975630,), (1372975631,), (1372975633,), (1372975635,), (1372975637,), (1372975639,), (1372975663,), (1372975664,), (1372975666,), (1372975668,), (1372975670,), (1372975672,), (1372975699,), (1372975701,), (1372975702,), (1372975704,), (1372975706,), (1372975708,), (1372975729,), (1372975731,), (1372975734,), (1372975736,), (1372975739,), (1372975741,), (1372975774,), (1372975776,), (1372975777,), (1372975779,), (1372975781,), (1372975783,), (1372975920,), (1372975971,), (1372976011,), (1372976039,), (1372976075,), (1372976088,), (1372976244,), (1372976247,), (1372976249,), (1372976250,), (1372976253,), (1372976255,), (1372976274,), (1372976276,), (1372976278,), (1372976280,), (1372976283,), (1372976285,), (1372976308,), (1372976310,), (1372976312,), (1372976313,), (1372976315,), (1372976317,), (1372976330,), (1372976331,), (1372976332,), (1372976333,), (1372976335,), (1372976337,), (1372976358,), (1372976359,), (1372976361,), (1372976362,), (1372976364,), (1372976367,), (1372976394,), (1372976397,), (1372976398,), (1372976399,), (1372976400,), (1372976403,), (1372976426,), (1372976427,), (1372976428,), (1372976429,), (1372976431,), (1372976433,), (1372976453,), (1372976455,), (1372976457,), (1372976459,), (1372976462,), (1372976465,), (1372976516,), (1372976519,), (1372976522,), (1372976525,), (1372976529,), (1372976533,), (1372976554,), (1372976557,), (1372976560,), (1372976562,), (1372976567,), (1372976571,), (1372976685,), (1372976687,), (1372976690,), (1372976712,), (1372976740,), (1372976764,), (1372976854,), (1372976869,), (1372976873,), (1372976880,), (1372976902,), (1372976906,), (1372976992,), (1372976995,), (1372976996,), (1372977008,), (1372977033,), (1372977056,), (1372977080,), (1372977082,), (1372977086,), (1372977095,), (1372977112,), (1372977115,), (1372977189,), (1372977213,), (1372977236,), (1372977237,), (1372977253,), (1372977256,), (1372977349,), (1372977351,), (1372977353,), (1372977354,), (1372977355,), (1372977358,), (1372977381,), (1372977385,), (1372977388,), (1372977389,), (1372977392,), (1372977394,), (1372977413,), (1372977415,), (1372977417,), (1372977418,), (1372977420,), (1372977422,), (1372977467,), (1372977469,), (1372977470,), (1372977472,), (1372977474,), (1372977476,), (1372977493,), (1372977591,), (1372977593,), (1372977596,), (1372977598,), (1372977601,), (1372977603,), (1372977616,), (1372977619,), (1372977621,), (1372977623,), (1372977625,), (1372977629,), (1372977652,), (1372977654,), (1372977658,), (1372977660,), (1372977663,), (1372977666,), (1372977680,), (1372977681,), (1372977688,), (1372977689,), (1372977692,), (1372977695,), (1372977718,), (1372977719,), (1372977725,), (1372977762,), (1372977810,), (1372977862,), (1372978382,), (1372978436,), (1372978490,), (1372978566,), (1372978620,), (1372978672,), (1372979441,), (1372979788,), (1372979818,), (1372979844,), (1372979872,), (1372979899,), (1372980070,), (1372980280,), (1372980283,), (1372980286,), (1372980287,), (1372980289,), (1372980291,), (1372980297,), (1372980349,), (1372980353,), (1372980357,), (1372980358,), (1372980360,), (1372980365,), (1372980417,), (1372980420,), (1372980423,), (1372980441,), (1372980443,), (1372980445,), (1372980584,), (1372980588,), (1372980601,), (1372980603,), (1372980605,), (1372980607,), (1372980679,), (1372980713,), (1372980720,), (1372980724,), (1372980727,), (1372980729,), (1372980753,), (1372980755,), (1372980756,), (1372980758,), (1372980760,), (1372980763,), (1372980783,), (1372980784,), (1372980787,), (1372980789,), (1372980797,), (1372980799,), (1372980839,), (1372980841,), (1372980842,), (1372980844,), (1372980846,), (1372980848,), (1372980866,), (1372980867,), (1372980869,), (1372980871,), (1372980874,), (1372980876,), (1372980915,), (1372980938,), (1372980941,), (1372980943,), (1372980945,), (1372980948,), (1372980951,), (1372980979,), (1372980987,), (1372980990,), (1372980991,), (1372980994,), (1372980997,), (1372981032,), (1372981034,), (1372981067,), (1372981069,), (1372981072,), (1372981074,), (1372981106,), (1372981122,), (1372981123,), (1372981124,), (1372981126,), (1372981128,), (1372981241,), (1372981243,), (1372981244,), (1372981245,), (1372981247,), (1372981249,), (1372981276,), (1372981279,), (1372981280,), (1372981284,), (1372981288,), (1372981292,), (1372981318,), (1372981350,), (1372981355,), (1372981356,), (1372981358,), (1372981360,), (1372981363,), (1372981381,), (1372981394,), (1372981395,), (1372981397,), (1372981399,), (1372981406,), (1372981432,), (1372981501,), (1372981520,), (1372981523,), (1372981526,), (1372981528,), (1372981531,), (1372981534,), (1372981557,), (1372981560,), (1372981563,), (1372981565,), (1372981587,), (1372981591,), (1372981613,), (1372981647,), (1372981651,), (1372981652,), (1372981655,), (1372981658,), (1372981671,), (1372981673,), (1372981675,), (1372981676,), (1372981679,), (1372981684,), (1372981702,), (1372981704,), (1372981705,), (1372981707,), (1372981710,), (1372981712,), (1372981840,), (1372981841,), (1372981842,), (1372981843,), (1372981845,), (1372981847,), (1372981871,), (1372981872,), (1372981873,), (1372981874,), (1372981875,), (1372981877,), (1372981906,), (1372981907,), (1372981908,), (1372981910,), (1372981912,), (1372981914,), (1372981943,), (1372981944,), (1372981945,), (1372981950,), (1372981952,), (1372981953,), (1372981979,), (1372982000,), (1372982005,), (1372982030,), (1372982058,), (1372982094,), (1372982122,), (1372982148,), (1372982151,), (1372982152,), (1372982155,), (1372982159,), (1372982162,), (1372982174,), (1372982175,), (1372982179,), (1372982182,), (1372982185,), (1372982187,), (1372982207,), (1372982208,), (1372982209,), (1372982210,), (1372982212,), (1372982214,), (1372982234,), (1372982235,), (1372982236,), (1372982237,), (1372982239,), (1372982241,), (1372982264,), (1372982265,), (1372982266,), (1372982267,), (1372982268,), (1372982270,), (1372982292,), (1372982294,), (1372982297,), (1372982299,), (1372982302,), (1372982305,), (1372982329,), (1372982331,), (1372982333,), (1372982334,), (1372982336,), (1372982338,), (1372982375,), (1372982377,), (1372982378,), (1372982381,), (1372982383,), (1372982385,), (1372982420,), (1372982446,), (1372982447,), (1372982449,), (1372982451,), (1372982452,), (1372982454,), (1372982476,), (1372982478,), (1372982479,), (1372982481,), (1372982483,), (1372982485,), (1372982503,), (1372982505,), (1372982507,), (1372982509,), (1372982511,), (1372982513,), (1372982539,), (1372982541,), (1372982542,), (1372982550,), (1372982552,), (1372982556,), (1372982586,), (1372982588,), (1372982589,), (1372982590,), (1372982592,), (1372982595,), (1372982623,), (1372982624,), (1372982626,), (1372982628,), (1372982630,), (1372982632,), (1372982652,), (1372982653,), (1372982654,), (1372982655,), (1372982656,), (1372982658,), (1372982690,), (1372982692,), (1372982694,), (1372982696,), (1372982698,), (1372982700,), (1372982748,), (1372982752,), (1372982754,), (1372982756,), (1372982759,), (1372982761,), (1372982788,), (1372982817,), (1372982819,), (1372982821,), (1372982823,), (1372982825,), (1372982828,), (1372982848,), (1372982855,), (1372982858,), (1372982860,), (1372982864,), (1372982866,), (1372982885,), (1372982888,), (1372982890,), (1372982892,), (1372982894,), (1372982896,), (1372982915,), (1372982917,), (1372982918,), (1372982920,), (1372982921,), (1372982924,), (1372982945,), (1372982947,), (1372982950,), (1372982952,), (1372982955,), (1372982957,), (1372983030,), (1372983050,), (1372983070,), (1372983095,), (1372983119,), (1372983147,), (1372983851,), (1372984371,), (1372984411,), (1372984454,), (1372984492,), (1372984519,), (1372984743,), (1372984746,), (1372984749,), (1372984759,), (1372984783,), (1372984807,), (1372984874,), (1372984876,), (1372984878,), (1372984879,), (1372984881,), (1372984883,), (1372984905,), (1372984907,), (1372984908,), (1372984910,), (1372984911,), (1372984913,), (1372984931,), (1372984933,), (1372984934,), (1372984936,), (1372984938,), (1372984940,), (1372984963,), (1372984965,), (1372984966,), (1372984967,), (1372984969,), (1372984971,), (1372984994,), (1372984995,), (1372984996,), (1372984997,), (1372984999,), (1372985001,), (1372985025,), (1372985026,), (1372985027,), (1372985028,), (1372985030,), (1372985032,), (1372985057,), (1372985059,), (1372985061,), (1372985063,), (1372985066,), (1372985069,), (1372985092,), (1372985093,), (1372985094,), (1372985095,), (1372985097,), (1372985099,), (1372985152,), (1372985155,), (1372985158,), (1372985160,), (1372985162,), (1372985165,), (1372985183,), (1372985208,), (1372985211,), (1372985214,), (1372985218,), (1372985220,), (1372985222,), (1372985244,), (1372985246,), (1372985248,), (1372985251,), (1372985253,), (1372985256,), (1372985276,), (1372985304,), (1372985305,), (1372985308,), (1372985314,), (1372985316,), (1372985318,), (1372985340,), (1372985341,), (1372985344,), (1372985346,), (1372985348,), (1372985350,), (1372985366,), (1372985367,), (1372985369,), (1372985371,), (1372985373,), (1372985374,), (1372985392,), (1372985394,), (1372985395,), (1372985397,), (1372985399,), (1372985401,), (1372985421,), (1372985423,), (1372985425,), (1372985427,), (1372985430,), (1372985433,), (1372985476,), (1372985478,), (1372985479,), (1372985481,), (1372985484,), (1372985487,), (1372985507,), (1372985534,), (1372985537,), (1372985540,), (1372985541,), (1372985545,), (1372985547,), (1372985580,), (1372985583,), (1372985586,), (1372985588,), (1372985591,), (1372985594,), (1372985619,), (1372985621,), (1372985622,), (1372985624,), (1372985626,), (1372985629,), (1372985647,), (1372985648,), (1372985649,), (1372985650,), (1372985653,), (1372985654,), (1372985682,), (1372985685,), (1372985687,), (1372985689,), (1372985691,), (1372985693,), (1372985721,), (1372985723,), (1372985725,), (1372985726,), (1372985728,), (1372985730,), (1372985756,), (1372985758,), (1372985760,), (1372985763,), (1372985767,), (1372985769,), (1372985786,), (1372985789,), (1372985790,), (1372985792,), (1372985794,), (1372985797,), (1372985860,), (1372985862,), (1372985865,), (1372985867,), (1372985868,), (1372985871,), (1372985990,), (1372986122,), (1372986124,), (1372986126,), (1372986129,), (1372986133,), (1372986147,), (1372986164,), (1372986171,), (1372986176,), (1372986178,), (1372986181,), (1372986183,), (1372986198,), (1372986205,), (1372986207,), (1372986209,), (1372986211,), (1372986214,), (1372986230,), (1372986231,), (1372986233,), (1372986235,), (1372986237,), (1372986240,), (1372986262,), (1372986274,), (1372986285,), (1372986287,), (1372986288,), (1372986290,), (1372986458,), (1372986460,), (1372986461,), (1372986463,), (1372986466,), (1372986468,), (1372986498,), (1372986499,), (1372986500,), (1372986501,), (1372986503,), (1372986505,), (1372986552,), (1372986553,), (1372986554,), (1372986555,), (1372986570,), (1372986598,), (1372986831,), (1372986851,), (1372986867,), (1372986873,), (1372986895,), (1372986905,), (1372987034,), (1372987040,), (1372987045,), (1372987073,), (1372987100,), (1372987111,), (1372987144,), (1372987146,), (1372987153,), (1372987183,), (1372987222,), (1372987272,), (1372987718,), (1372987724,), (1372987734,), (1372987762,), (1372987765,), (1372987768,), (1372987871,), (1372987897,), (1372987922,), (1372987943,), (1372987979,), (1372988017,), (1372988111,), (1372988336,), (1372988337,), (1372988341,), (1372988347,), (1372988349,), (1372988351,), (1372988444,), (1372988448,), (1372988450,), (1372988453,), (1372988456,), (1372988464,), (1372988553,), (1372988555,), (1372988556,), (1372988558,), (1372988579,), (1372988584,), (1372988686,), (1372988741,), (1372988789,), (1372988796,), (1372988810,), (1372988820,), (1372988960,), (1372988966,), (1372988969,), (1372988994,), (1372989056,), (1372989122,), (1372989185,), (1372989604,), (1372989644,), (1372989660,), (1372989669,), (1372989678,), (1372989688,), (1372989855,), (1372989878,), (1372989898,), (1372989900,), (1372989902,), (1372989906,), (1372990037,), (1372990041,), (1372990044,), (1372990047,), (1372990073,), (1372990101,), (1372990221,), (1372990358,), (1372990403,), (1372990449,), (1372990497,), (1372990533,), (1372990559,), (1372991012,), (1372991064,), (1372991130,), (1372991182,), (1372991237,), (1372991293,), (1372992342,), (1372992373,), (1372992408,), (1372992439,), (1372992490,), (1372992560,), (1373021264,), (1372992915,), (1372992965,), (1372993016,), (1372993044,), (1372993089,), (1372993126,), (1372993694,), (1372994061,), (1372994082,), (1372994083,), (1372994102,), (1372994128,), (1372994142,), (1372994467,), (1372994508,), (1372994546,), (1372994591,), (1372994615,), (1372994650,), (1372994881,), (1372994901,), (1372994903,), (1372994912,), (1372994922,), (1372994924,), (1372995050,), (1372995271,), (1372995295,), (1372995300,), (1372995305,), (1372995318,), (1372995326,), (1372995442,), (1372995454,), (1372995477,), (1372995502,), (1372995580,), (1372995621,), (1372995927,), (1372995937,), (1372995941,), (1372995965,), (1372995968,), (1372995972,), (1372996087,), (1372996091,), (1372996093,), (1372996095,), (1372996098,), (1372996100,), (1372996418,), (1372996419,), (1372996421,), (1372996423,), (1372996426,), (1372996429,), (1372996530,), (1372996561,), (1372996596,), (1372996618,), (1372996621,), (1372996626,), (1372996762,), (1372996764,), (1372996766,), (1372996769,), (1372996773,), (1372996775,), (1372996806,), (1372996810,), (1372996812,), (1372996813,), (1372996816,), (1372996819,), (1372996845,), (1372996885,), (1372996886,), (1372996887,), (1372996894,), (1372996908,), (1372996915,), (1372997003,), (1372997013,), (1372997015,), (1372997017,), (1372997019,), (1372997022,), (1372997045,), (1372997047,), (1372997049,), (1372997051,), (1372997053,), (1372997056,), (1372997079,), (1372997081,), (1372997083,), (1372997085,), (1372997087,), (1372997090,), (1372997125,), (1372997132,), (1372997134,), (1372997136,), (1372997139,), (1372997141,), (1372997200,), (1372997204,), (1372997208,), (1372997210,), (1372997212,), (1372997215,), (1372997263,), (1372997378,), (1372997508,), (1372997525,), (1372997538,), (1372997549,), (1372997550,), (1372997572,), (1372997604,), (1372997606,), (1372997608,), (1372997610,), (1372997613,), (1372997615,), (1372997636,), (1372997655,), (1372997657,), (1372997659,), (1372997660,), (1372997662,), (1372997663,), (1372997694,), (1372997703,), (1372997705,), (1372997706,), (1372997708,), (1372997710,), (1372997777,), (1372997780,), (1372997783,), (1372997785,), (1372997787,), (1372997789,), (1372997805,), (1372997821,), (1372997827,), (1372997833,), (1372997835,), (1372997838,), (1372997877,), (1372997878,), (1372997880,), (1372997882,), (1372997884,), (1372997886,), (1372997997,), (1372998401,), (1372998420,), (1372998422,), (1372998431,), (1372998460,), (1372998462,), (1372998602,), (1372998627,), (1372998631,), (1372998633,), (1372998636,), (1372998639,), (1372998725,), (1372998749,), (1372998754,), (1372998755,), (1372998778,), (1372998794,), (1372999044,), (1372999198,), (1372999201,), (1372999202,), (1372999204,), (1372999207,), (1372999209,), (1372999367,), (1372999421,), (1372999477,), (1372999510,), (1372999531,), (1372999539,), (1372999600,), (1372999605,), (1372999609,), (1372999610,), (1372999612,), (1372999624,), (1372999665,), (1372999676,), (1372999679,), (1372999680,), (1372999682,), (1372999684,), (1372999759,), (1372999761,), (1372999762,), (1372999764,), (1372999767,), (1372999772,), (1372999791,), (1372999815,), (1372999817,), (1372999820,), (1372999823,), (1372999825,), (1372999828,), (1372999857,), (1372999865,), (1372999885,), (1372999921,), (1372999926,), (1372999929,), (1372999980,), (1372999983,), (1372999986,), (1372999989,), (1372999991,), (1372999994,), (1373000086,), (1373000250,), (1373000288,), (1373000290,), (1373000302,), (1373000334,), (1373000340,), (1373000344,), (1373000363,), (1373000365,), (1373000366,), (1373000368,), (1373000371,), (1373000375,), (1373000392,), (1373000394,), (1373000397,), (1373000398,), (1373000401,), (1373000419,), (1373000506,), (1373000510,), (1373000514,), (1373000515,), (1373000519,), (1373000523,), (1373000630,), (1373000662,), (1373000666,), (1373000669,), (1373000672,), (1373000674,), (1373000677,), (1373000717,), (1373000726,), (1373000729,), (1373000731,), (1373000735,), (1373000737,), (1373000795,), (1373000797,), (1373000814,), (1373000815,), (1373000816,), (1373000818,), (1373000866,), (1373000905,), (1373000906,), (1373000908,), (1373000910,), (1373000912,), (1373000914,), (1373000942,), (1373000950,), (1373000953,), (1373000957,), (1373000960,), (1373000963,), (1373001598,), (1373001649,), (1373001698,), (1373001768,), (1373001847,), (1373001928,), (1373002701,), (1373002750,), (1373002798,), (1373002841,), (1373002867,), (1373002895,), (1373003225,), (1373003639,), (1373003641,), (1373003643,), (1373003657,), (1373003684,), (1373003686,), (1373003717,), (1373003719,), (1373003731,), (1373003732,), (1373003734,), (1373003736,), (1373003797,), (1373003799,), (1373003800,), (1373003802,), (1373003804,), (1373003806,), (1373003817,), (1373003859,), (1373003860,), (1373003861,), (1373003862,), (1373003864,), (1373003866,), (1373003888,), (1373003889,), (1373003891,), (1373003893,), (1373003895,), (1373003897,), (1373003934,), (1373003935,), (1373003936,), (1373003937,), (1373003939,), (1373003941,), (1373003959,), (1373003961,), (1373003969,), (1373003974,), (1373003976,), (1373003978,), (1373004016,), (1373004018,), (1373004019,), (1373004021,), (1373004023,), (1373004025,), (1373004050,), (1373004085,), (1373004088,), (1373004090,), (1373004093,), (1373004096,), (1373004099,), (1373004117,), (1373004126,), (1373004137,), (1373004139,), (1373004142,), (1373004145,), (1373004176,), (1373004181,), (1373004183,), (1373004185,), (1373004188,), (1373004191,), (1373004213,), (1373004233,), (1373004234,), (1373004235,), (1373004236,), (1373004238,), (1373004240,), (1373004261,), (1373004262,), (1373004263,), (1373004264,), (1373004266,), (1373004269,), (1373004301,), (1373004303,), (1373004304,), (1373004306,), (1373004309,), (1373004311,), (1373004342,), (1373004345,), (1373004347,), (1373004349,), (1373004352,), (1373004354,), (1373004372,), (1373004376,), (1373004380,), (1373004384,), (1373004387,), (1373004389,), (1373004404,), (1373004433,), (1373004434,), (1373004437,), (1373004440,), (1373004443,), (1373004446,), (1373004475,), (1373004478,), (1373004481,), (1373004484,), (1373004487,), (1373004490,), (1373004508,), (1373004510,), (1373004512,), (1373004515,), (1373004517,), (1373004518,), (1373004550,), (1373004571,), (1373004572,), (1373004573,), (1373004574,), (1373004576,), (1373004578,), (1373004587,), (1373004588,), (1373004589,), (1373004590,), (1373004592,), (1373004596,), (1373004617,), (1373004619,), (1373004621,), (1373004623,), (1373004626,), (1373004630,), (1373004659,), (1373004660,), (1373004662,), (1373004665,), (1373004667,), (1373004669,), (1373021192,), (1373004705,), (1373004706,), (1373004707,), (1373004708,), (1373004710,), (1373004712,), (1373004728,), (1373004750,), (1373004752,), (1373004753,), (1373004755,), (1373004757,), (1373004760,), (1373004771,), (1373004788,), (1373004790,), (1373004792,), (1373004793,), (1373004796,), (1373004798,), (1373004808,), (1373004811,), (1373004815,), (1373004816,), (1373004818,), (1373004820,), (1373004835,), (1373004858,), (1373004899,), (1373004929,), (1373004932,), (1373004933,), (1373004935,), (1373004938,), (1373004941,), (1373004967,), (1373005033,), (1373005034,), (1373005035,), (1373005036,), (1373005038,), (1373005041,), (1373005106,), (1373005247,), (1373005250,), (1373005265,), (1373005267,), (1373005270,), (1373005274,), (1373005297,), (1373005300,), (1373005303,), (1373005305,), (1373005308,), (1373005311,), (1373005329,), (1373005342,), (1373005346,), (1373005353,), (1373005357,), (1373005360,), (1373005421,), (1373005466,), (1373005497,), (1373005499,), (1373005500,), (1373005501,), (1373005503,), (1373005505,), (1373005573,), (1373005575,), (1373005577,), (1373005578,), (1373005581,), (1373005585,), (1373005623,), (1373005625,), (1373005627,), (1373005629,), (1373005631,), (1373005633,), (1373005689,), (1373005692,), (1373005694,), (1373005696,), (1373005697,), (1373005700,), (1373005720,), (1373005749,), (1373005785,), (1373005794,), (1373005804,), (1373005805,), (1373005825,), (1373005849,), (1373005998,), (1373005999,), (1373006001,), (1373006003,), (1373006005,), (1373006007,), (1373006020,), (1373006054,), (1373006056,), (1373006058,), (1373006059,), (1373006060,), (1373006062,), (1373006091,), (1373006100,), (1373006102,), (1373006103,), (1373006105,), (1373006107,), (1373006898,), (1373006964,), (1373007064,), (1373007112,), (1373007170,), (1373007229,), (1373007438,), (1373007483,), (1373007536,), (1373007608,), (1373007661,), (1373007712,), (1373008260,), (1373008448,), (1373008467,), (1373008492,), (1373008517,), (1373008547,), (1373008576,), (1373008691,), (1373008694,), (1373008695,), (1373008698,), (1373008701,), (1373008703,), (1373008725,), (1373008728,), (1373008729,), (1373008732,), (1373008734,), (1373008736,), (1373008757,), (1373008789,), (1373008790,), (1373008791,), (1373008792,), (1373008794,), (1373008796,), (1373008825,), (1373008827,), (1373008829,), (1373008830,), (1373008832,), (1373008834,), (1373008856,), (1373008858,), (1373008859,), (1373008860,), (1373008863,), (1373008865,), (1373008891,), (1373008895,), (1373008896,), (1373008898,), (1373008901,), (1373008904,), (1373008930,), (1373008931,), (1373008933,), (1373008935,), (1373008938,), (1373008940,), (1373008968,), (1373008990,), (1373008993,), (1373008995,), (1373008996,), (1373008999,), (1373009002,), (1373009027,), (1373009031,), (1373009034,), (1373009037,), (1373009041,), (1373009045,), (1373009067,), (1373009071,), (1373009075,), (1373009078,), (1373009082,), (1373009084,), (1373009102,), (1373009125,), (1373009126,), (1373009128,), (1373009130,), (1373009131,), (1373009135,), (1373009164,), (1373009168,), (1373009170,), (1373009173,), (1373009175,), (1373009178,), (1373009198,), (1373009200,), (1373009201,), (1373009203,), (1373009206,), (1373009210,), (1373009240,), (1373009242,), (1373009243,), (1373009245,), (1373009247,), (1373009250,), (1373009291,), (1373009293,), (1373009296,), (1373009297,), (1373009299,), (1373009302,), (1373009325,), (1373009346,), (1373009350,), (1373009353,), (1373009354,), (1373009357,), (1373009360,), (1373009381,), (1373009383,), (1373009386,), (1373009388,), (1373009390,), (1373009392,), (1373009418,), (1373009422,), (1373009425,), (1373009426,), (1373009430,), (1373009433,), (1373009446,), (1373009482,), (1373009483,), (1373009484,), (1373009485,), (1373009486,), (1373009488,), (1373009502,), (1373009528,), (1373009530,), (1373009531,), (1373009533,), (1373009535,), (1373009537,), (1373009555,), (1373009557,), (1373009560,), (1373009563,), (1373009566,), (1373009568,), (1373009601,), (1373009605,), (1373009608,), (1373009609,), (1373009611,), (1373009615,), (1373009678,), (1373009717,), (1373009749,), (1373009753,), (1373009755,), (1373009756,), (1373009758,), (1373009760,), (1373009785,), (1373009788,), (1373009790,), (1373009791,), (1373009793,), (1373009796,), (1373009814,), (1373009816,), (1373009819,), (1373009822,), (1373009824,), (1373009826,), (1373009852,), (1373009880,), (1373009881,), (1373009883,), (1373009885,), (1373009887,), (1373009889,), (1373009922,), (1373009933,), (1373009936,), (1373009938,), (1373009940,), (1373009942,), (1373009957,), (1373009960,), (1373009962,), (1373009964,), (1373009966,), (1373009969,), (1373010000,), (1373010001,), (1373010003,), (1373010005,), (1373010007,), (1373010009,), (1373010031,), (1373010032,), (1373010034,), (1373010036,), (1373010038,), (1373010040,), (1373010080,), (1373010113,), (1373010116,), (1373010120,), (1373010121,), (1373010125,), (1373010128,), (1373010171,), (1373010174,), (1373010175,), (1373010179,), (1373010182,), (1373010186,), (1373010205,), (1373010208,), (1373010210,), (1373010213,), (1373010216,), (1373010217,), (1373016904,), (1373021118,), (1373010250,), (1373010277,), (1373010312,), (1373010358,), (1373010362,), (1373010366,), (1373010369,), (1373010373,), (1373010379,), (1373010389,), (1373010392,), (1373010395,), (1373010398,), (1373010404,), (1373010405,), (1373010432,), (1373010437,), (1373010442,), (1373010445,), (1373010448,), (1373010452,), (1373010478,), (1373010510,), (1373010512,), (1373010514,), (1373010515,), (1373010517,), (1373010519,), (1373010544,), (1373010548,), (1373010551,), (1373010554,), (1373010556,), (1373010559,), (1373010575,), (1373010579,), (1373010582,), (1373010586,), (1373010589,), (1373010593,), (1373010602,), (1373010637,), (1373010638,), (1373010658,), (1373010685,), (1373010711,), (1373010737,), (1373011011,), (1373011042,), (1373011056,), (1373011057,), (1373011059,), (1373011062,), (1373011759,), (1373011773,), (1373011776,), (1373011780,), (1373011784,), (1373011788,), (1373012053,), (1373012086,), (1373012140,), (1373012176,), (1373012209,), (1373012261,), (1373012562,), (1373012669,), (1373012694,), (1373012720,), (1373012745,), (1373012772,), (1373012802,), (1373012923,), (1373012926,), (1373012928,), (1373012929,), (1373012931,), (1373012933,), (1373012951,), (1373012952,), (1373012953,), (1373012954,), (1373012956,), (1373012960,), (1373012994,), (1373013019,), (1373013020,), (1373013022,), (1373013026,), (1373013028,), (1373013033,), (1373013077,), (1373013079,), (1373013080,), (1373013082,), (1373013085,), (1373013088,), (1373013122,), (1373013125,), (1373013127,), (1373013129,), (1373013132,), (1373013135,), (1373013160,), (1373013163,), (1373013165,), (1373013167,), (1373013170,), (1373013173,), (1373013202,), (1373013205,), (1373013208,), (1373013209,), (1373013211,), (1373013214,), (1373013245,), (1373013273,), (1373013275,), (1373013277,), (1373013278,), (1373013280,), (1373013283,), (1373013301,), (1373013303,), (1373013304,), (1373013306,), (1373013308,), (1373013310,), (1373013335,), (1373013336,), (1373013338,), (1373013341,), (1373013343,), (1373013344,), (1373013368,), (1373013409,), (1373013411,), (1373013412,), (1373013414,), (1373013416,), (1373013418,), (1373013451,), (1373013457,), (1373013459,), (1373013461,), (1373013463,), (1373013465,), (1373013488,), (1373013490,), (1373013491,), (1373013494,), (1373013495,), (1373013497,), (1373013524,), (1373013526,), (1373013527,), (1373013530,), (1373013533,), (1373013537,), (1373013557,), (1373013591,), (1373013594,), (1373013596,), (1373013598,), (1373013601,), (1373013604,), (1373013622,), (1373013624,), (1373013626,), (1373013629,), (1373013631,), (1373013635,), (1373013668,), (1373013671,), (1373013689,), (1373013718,), (1373013745,), (1373013759,), (1373013851,), (1373013857,), (1373013866,), (1373013869,), (1373013887,), (1373013892,), (1373013970,), (1373014016,), (1373014044,), (1373014053,), (1373014056,), (1373014057,), (1373014060,), (1373014063,), (1373014086,), (1373014090,), (1373014095,), (1373014096,), (1373014100,), (1373014103,), (1373014134,), (1373014136,), (1373014139,), (1373014142,), (1373014145,), (1373014147,), (1373014168,), (1373014172,), (1373014174,), (1373014177,), (1373014180,), (1373014183,), (1373014199,), (1373014233,), (1373014237,), (1373014240,), (1373014243,), (1373014246,), (1373014249,), (1373014275,), (1373014278,), (1373014281,), (1373014283,), (1373014286,), (1373014289,), (1373014317,), (1373014319,), (1373014321,), (1373014323,), (1373014326,), (1373014328,), (1373014356,), (1373014398,), (1373014400,), (1373014402,), (1373014403,), (1373014406,), (1373014408,), (1373014428,), (1373014430,), (1373014432,), (1373014435,), (1373014438,), (1373014440,), (1373014456,), (1373014458,), (1373014459,), (1373014461,), (1373014463,), (1373014466,), (1373014492,), (1373014495,), (1373014498,), (1373014501,), (1373014504,), (1373014507,), (1373014555,), (1373014559,), (1373014562,), (1373014565,), (1373014567,), (1373014569,), (1373014602,), (1373014629,), (1373014632,), (1373014635,), (1373014636,), (1373014638,), (1373014643,), (1373014663,), (1373014671,), (1373014674,), (1373014677,), (1373014680,), (1373014682,), (1373014704,), (1373014707,), (1373014710,), (1373014712,), (1373014715,), (1373014717,), (1373014742,), (1373014770,), (1373014773,), (1373014775,), (1373014777,), (1373014780,), (1373014782,), (1373014802,), (1373014804,), (1373014806,), (1373014807,), (1373014808,), (1373014811,), (1373014831,), (1373014832,), (1373014833,), (1373014834,), (1373014836,), (1373014838,), (1373014861,), (1373014862,), (1373014864,), (1373014866,), (1373014868,), (1373014869,), (1373014943,), (1373014975,), (1373014977,), (1373014981,), (1373014984,), (1373014987,), (1373014990,), (1373015008,), (1373015011,), (1373015016,), (1373015018,), (1373015022,), (1373015026,), (1373015044,), (1373015047,), (1373015049,), (1373015051,), (1373015054,), (1373015056,), (1373015079,), (1373015082,), (1373015084,), (1373015086,), (1373015088,), (1373015090,), (1373015103,), (1373015132,), (1373015135,), (1373015141,), (1373015169,), (1373015200,), (1373015255,), (1373015756,), (1373015785,), (1373015813,), (1373015861,), (1373015940,), (1373015996,), (1373016786,), (1373016886,), (1373016890,), (1373016894,), (1373016895,), (1373016900,), (1373016930,), (1373016967,), (1373016970,), (1373016973,), (1373016974,), (1373016977,), (1373016980,), (1373016996,), (1373016999,), (1373017003,), (1373017005,), (1373017009,), (1373017013,), (1373017095,), (1373017098,), (1373017100,), (1373017120,), (1373017145,), (1373017149,), (1373017193,), (1373017258,), (1373017325,), (1373017328,), (1373017331,), (1373017332,), (1373017336,), (1373017339,), (1373017387,), (1373017389,), (1373017391,), (1373017411,), (1373017427,), (1373017430,), (1373017459,), (1373017469,), (1373017472,), (1373017476,), (1373017480,), (1373017483,), (1373017514,), (1373017518,), (1373017521,), (1373017524,), (1373017527,), (1373017530,), (1373017562,), (1373017590,), (1373017594,), (1373017598,), (1373017599,), (1373017604,), (1373017608,), (1373017631,), (1373017636,), (1373017640,), (1373017642,), (1373017645,), (1373017648,), (1373017685,), (1373017688,), (1373017690,), (1373017694,), (1373017697,), (1373017701,), (1373017723,), (1373017748,), (1373017751,), (1373017754,), (1373017758,), (1373017762,), (1373017765,), (1373017798,), (1373017809,), (1373017813,), (1373017815,), (1373017819,), (1373017822,), (1373017853,), (1373017895,), (1373017899,), (1373017901,), (1373017904,), (1373017908,), (1373017926,), (1373017998,), (1373018002,), (1373018007,), (1373018008,), (1373018012,), (1373018016,), (1373018036,), (1373018040,), (1373018044,), (1373018045,), (1373018049,), (1373018053,), (1373018076,), (1373018077,), (1373018079,), (1373018081,), (1373018084,), (1373018089,), (1373018125,), (1373018128,), (1373018130,), (1373018133,), (1373018135,), (1373018139,), (1373018174,), (1373018177,), (1373018178,), (1373018181,), (1373018185,), (1373018193,), (1373018215,), (1373018260,), (1373018321,), (1373018322,), (1373018323,), (1373018324,), (1373018327,), (1373018331,), (1373018368,), (1373018369,), (1373018371,), (1373018373,), (1373018374,), (1373018376,), (1373018399,), (1373018401,), (1373018403,), (1373018405,), (1373018408,), (1373018410,), (1373020964,), (1373021033,), (1373018437,), (1373018461,), (1373018480,), (1373018483,), (1373018504,), (1373018513,), (1373018637,), (1373018770,), (1373018774,), (1373018778,), (1373018780,), (1373018784,), (1373018789,), (1373018896,), (1373018922,), (1373018947,), (1373018971,), (1373019001,), (1373019032,), (1373019086,), (1373019089,), (1373019092,), (1373019094,), (1373019095,), (1373019100,), (1373019128,), (1373019160,), (1373019163,), (1373019165,), (1373019167,), (1373019170,), (1373019172,), (1373019194,), (1373019196,), (1373019198,), (1373019199,), (1373019202,), (1373019205,), (1373019248,), (1373019250,), (1373019252,), (1373019253,), (1373019257,), (1373019261,), (1373019290,), (1373019293,), (1373019295,), (1373019297,), (1373019302,), (1373019306,), (1373019340,), (1373019343,), (1373019346,), (1373019348,), (1373019352,), (1373019357,), (1373019394,), (1373019417,), (1373019419,), (1373019421,), (1373019423,), (1373019426,), (1373019430,), (1373019458,), (1373019460,), (1373019461,), (1373019464,), (1373019467,), (1373019470,), (1373019498,), (1373019501,), (1373019504,), (1373019506,), (1373019509,), (1373019515,), (1373019540,), (1373019578,), (1373019580,), (1373019581,), (1373019583,), (1373019585,), (1373019587,), (1373019628,), (1373019633,), (1373019637,), (1373019641,), (1373019644,), (1373019648,), (1373019672,), (1373019675,), (1373019677,), (1373019680,), (1373019681,), (1373019683,), (1373019712,), (1373019720,), (1373019727,), (1373019730,), (1373019733,), (1373019735,), (1373019779,), (1373019783,), (1373019786,), (1373019787,), (1373019790,), (1373019793,), (1373019818,), (1373019820,), (1373019822,), (1373019824,), (1373019827,), (1373019832,), (1373019860,), (1373019862,), (1373019864,), (1373019866,), (1373019869,), (1373019873,), (1373019902,), (1373019909,), (1373019914,), (1373019916,), (1373019919,), (1373019922,), (1373019967,), (1373019969,), (1373019972,), (1373019974,), (1373019976,), (1373019978,), (1373020000,), (1373020042,), (1373020044,), (1373020046,), (1373020048,), (1373020049,), (1373020052,), (1373020079,), (1373020081,), (1373020084,), (1373020086,), (1373020088,), (1373020091,), (1373020907,), (1373021730,), (1373021761,), (1373021795,), (1373021821,), (1373021859,), (1373022199,), (1373022229,), (1373022244,), (1373022249,), (1373022278,), (1373022290,), (1373022313,), (1373022317,), (1373022321,), (1373022324,), (1373022326,), (1373022329,), (1373022359,), (1373022364,), (1373022368,), (1373022372,), (1373022376,), (1373022379,), (1373022410,), (1373022416,), (1373022421,), (1373022425,), (1373022430,), (1373022434,), (1373022465,), (1373022500,), (1373022553,), (1373022590,), (1373022592,), (1373022593,), (1373022595,), (1373022597,), (1373022599,), (1373022630,), (1373022633,), (1373022634,), (1373022637,), (1373022639,), (1373022642,), (1373022677,), (1373022680,), (1373022682,), (1373022686,), (1373022688,), (1373022691,), (1373022732,), (1373022753,), (1373022755,), (1373022759,), (1373022761,), (1373022764,), (1373022768,), (1373022797,), (1373022800,), (1373022804,), (1373022806,), (1373022810,), (1373022812,), (1373022842,), (1373022846,), (1373022850,), (1373022853,), (1373022856,), (1373022860,), (1373024895,), (1373022883,), (1373022922,), (1373022958,), (1373022959,), (1373022962,), (1373022965,), (1373022967,), (1373022968,), (1373022995,), (1373022998,), (1373023001,), (1373023004,), (1373023006,), (1373023008,), (1373023025,), (1373023028,), (1373023031,), (1373023035,), (1373023038,), (1373023042,), (1373023076,), (1373023077,), (1373023082,), (1373023084,), (1373023085,), (1373023088,), (1373023107,), (1373023111,), (1373023113,), (1373023117,), (1373023119,), (1373023122,), (1373023154,), (1373023158,), (1373023161,), (1373023165,), (1373023170,), (1373023173,), (1373023199,), (1373023204,), (1373023206,), (1373023210,), (1373023212,), (1373023217,), (1373023253,), (1373023282,), (1373023283,), (1373023286,), (1373023288,), (1373023291,), (1373023292,), (1373023324,), (1373023326,), (1373023329,), (1373023331,), (1373023333,), (1373023336,), (1373023362,), (1373023364,), (1373023367,), (1373023370,), (1373023374,), (1373023378,), (1373023411,), (1373023413,), (1373023416,), (1373023418,), (1373023421,), (1373023424,), (1373023461,), (1373023463,), (1373023465,), (1373023468,), (1373023473,), (1373023476,), (1373023508,), (1373023510,), (1373023515,), (1373023518,), (1373023521,), (1373023524,), (1373023554,), (1373023580,), (1373023584,), (1373023588,), (1373023591,), (1373023595,), (1373023598,), (1373023630,), (1373023633,), (1373023637,), (1373023641,), (1373023646,), (1373023649,), (1373023677,), (1373023682,), (1373023687,), (1373023690,), (1373023695,), (1373023698,), (1373023723,), (1373023763,), (1373023764,), (1373023766,), (1373023768,), (1373023771,), (1373023773,), (1373023798,), (1373023800,), (1373023801,), (1373023804,), (1373023807,), (1373023812,), (1373023829,), (1373023831,), (1373023832,), (1373023834,), (1373023837,), (1373023839,), (1373023865,), (1373023866,), (1373023868,), (1373023870,), (1373023873,), (1373023876,), (1373023914,), (1373023915,), (1373023917,), (1373023920,), (1373023922,), (1373023925,), (1373023949,), (1373023971,), (1373023972,), (1373023973,), (1373023974,), (1373023976,), (1373023978,), (1373023992,), (1373023998,), (1373024000,), (1373024001,), (1373024005,), (1373024008,), (1373024026,), (1373024027,), (1373024028,), (1373024029,), (1373024031,), (1373024033,), (1373024044,), (1373024058,), (1373024060,), (1373024061,), (1373024062,), (1373024064,), (1373024067,), (1373024075,), (1373024076,), (1373024078,), (1373024080,), (1373024082,), (1373024085,), (1373024099,), (1373024101,), (1373024102,), (1373024104,), (1373024106,), (1373024108,), (1373024122,), (1373024126,), (1373024128,), (1373024130,), (1373024132,), (1373024135,), (1373024155,), (1373024177,), (1373024178,), (1373024179,), (1373024180,), (1373024182,), (1373024184,), (1373024196,), (1373024197,), (1373024198,), (1373024199,), (1373024201,), (1373024203,), (1373024225,), (1373024231,), (1373024233,), (1373024235,), (1373024237,), (1373024239,), (1373024249,), (1373024250,), (1373024251,), (1373024252,), (1373024254,), (1373024256,), (1373024268,), (1373024464,), (1373024465,), (1373024471,), (1373024497,), (1373024507,), (1373024509,), (1373024687,), (1373024713,), (1373024719,), (1373024721,), (1373024734,), (1373024765,), (1373024849,), (1373024879,), (1373024882,), (1373024890,), (1373024893,), (1373024894,), (1373024924,), (1373024931,), (1373024933,), (1373024934,), (1373024936,), (1373024938,), (1373024955,), (1373024957,), (1373024959,), (1373024961,), (1373024962,), (1373024964,), (1373024977,), (1373024979,), (1373024980,), (1373024981,), (1373024983,), (1373024985,), (1373025013,), (1373025015,), (1373025016,), (1373025018,), (1373025020,), (1373025022,), (1373025057,), (1373025106,), (1373025149,), (1373025152,), (1373025155,), (1373025156,), (1373025159,), (1373025161,), (1373025189,), (1373025193,), (1373025196,), (1373025198,), (1373025200,), (1373025202,), (1373025236,), (1373025247,), (1373025253,), (1373025257,), (1373025260,), (1373025262,), (1373025291,), (1373025294,), (1373025299,), (1373025304,), (1373025308,), (1373025312,), (1373025345,), (1373025377,), (1373025380,), (1373025383,), (1373025386,), (1373025389,), (1373025392,), (1373025423,), (1373025426,), (1373025430,), (1373025433,), (1373025435,), (1373025438,), (1373025469,), (1373025473,), (1373025477,), (1373025479,), (1373025481,), (1373025486,), (1373035041,), (1373035069,), (1373025511,), (1373025540,), (1373025543,), (1373025545,), (1373025547,), (1373025549,), (1373025552,), (1373025588,), (1373025593,), (1373025597,), (1373025600,), (1373025603,), (1373025605,), (1373025643,), (1373025681,), (1373025683,), (1373025685,), (1373025687,), (1373025689,), (1373025691,), (1373025717,), (1373025718,), (1373025721,), (1373025723,), (1373025724,), (1373025726,), (1373025777,), (1373025815,), (1373025816,), (1373025819,), (1373025822,), (1373025824,), (1373025827,), (1373025861,), (1373025865,), (1373025869,), (1373025872,), (1373025875,), (1373025878,), (1373025900,), (1373025905,), (1373025909,), (1373025912,), (1373025916,), (1373025919,), (1373025940,), (1373025979,), (1373026021,), (1373026023,), (1373026025,), (1373026027,), (1373026029,), (1373026033,), (1373026060,), (1373026062,), (1373026063,), (1373026065,), (1373026067,), (1373026070,), (1373026101,), (1373026102,), (1373026103,), (1373026105,), (1373026106,), (1373026108,), (1373026139,), (1373026141,), (1373026142,), (1373026144,), (1373026146,), (1373026150,), (1373026175,), (1373026207,), (1373026210,), (1373026212,), (1373026215,), (1373026218,), (1373026221,), (1373026254,), (1373026261,), (1373026272,), (1373026274,), (1373026276,), (1373026279,), (1373026306,), (1373026308,), (1373026311,), (1373026313,), (1373026315,), (1373026321,), (1373026398,), (1373026504,), (1373026642,), (1373026685,), (1373026712,), (1373026728,), (1373026730,), (1373026733,), (1373026767,), (1373026769,), (1373026771,), (1373026773,), (1373026774,), (1373026776,), (1373026891,), (1373026893,), (1373026896,), (1373026906,), (1373026923,), (1373026934,), (1373027056,), (1373027064,), (1373027067,), (1373027070,), (1373027072,), (1373027074,), (1373027208,), (1373027428,), (1373027459,), (1373027486,), (1373027514,), (1373027544,), (1373027553,), (1373027655,), (1373027669,), (1373027673,), (1373027676,), (1373027681,), (1373027684,), (1373027793,), (1373027796,), (1373027799,), (1373027801,), (1373027804,), (1373027809,), (1373027847,), (1373027883,), (1373027898,), (1373027908,), (1373027915,), (1373027926,), (1373027929,), (1373027989,), (1373028024,), (1373028060,), (1373028086,), (1373028113,), (1373028138,), (1373028355,), (1373028359,), (1373028387,), (1373028412,), (1373028439,), (1373028468,), (1373028735,), (1373028747,), (1373028749,), (1373028751,), (1373028754,), (1373028757,), (1373028841,), (1373028843,), (1373028845,), (1373028846,), (1373028849,), (1373028852,), (1373028904,), (1373029002,), (1373029006,), (1373029009,), (1373029012,), (1373029015,), (1373029017,), (1373029050,), (1373029061,), (1373029062,), (1373029066,), (1373029068,), (1373029071,), (1373029122,), (1373029168,), (1373029194,), (1373029221,), (1373029240,), (1373029242,), (1373029244,), (1373029493,), (1373029500,), (1373029502,), (1373029529,), (1373029541,), (1373029551,), (1373029599,), (1373029635,), (1373029663,), (1373029689,), (1373029717,), (1373029743,), (1373030538,), (1373030567,), (1373030570,), (1373030589,), (1373030609,), (1373030613,), (1373030695,), (1373030706,), (1373030720,), (1373030733,), (1373030737,), (1373030744,), (1373030764,), (1373030793,), (1373030794,), (1373030797,), (1373030799,), (1373030801,), (1373030804,), (1373030847,), (1373030852,), (1373030855,), (1373030858,), (1373030862,), (1373030865,), (1373030910,), (1373030914,), (1373030929,), (1373030944,), (1373030948,), (1373030951,), (1373030981,), (1373031182,), (1373031184,), (1373031187,), (1373031188,), (1373031191,), (1373031195,), (1373031221,), (1373031223,), (1373031225,), (1373031226,), (1373031229,), (1373031232,), (1373031260,), (1373031263,), (1373031265,), (1373031267,), (1373031269,), (1373031270,), (1373031290,), (1373031292,), (1373031295,), (1373031298,), (1373031301,), (1373031303,), (1373031352,), (1373031366,), (1373031369,), (1373031371,), (1373031373,), (1373031375,), (1373031401,), (1373031437,), (1373031479,), (1373031484,), (1373031487,), (1373031488,), (1373031490,), (1373031492,), (1373031528,), (1373031530,), (1373031532,), (1373031534,), (1373031536,), (1373031537,), (1373031557,), (1373031585,), (1373031589,), (1373031591,), (1373031594,), (1373031597,), (1373031602,), (1373031629,), (1373031630,), (1373031631,), (1373031632,), (1373031635,), (1373031639,), (1373031675,), (1373031676,), (1373031678,), (1373031680,), (1373031681,), (1373031684,), (1373031722,), (1373031726,), (1373031729,), (1373031732,), (1373031735,), (1373031736,), (1373031778,), (1373031780,), (1373031783,), (1373031785,), (1373031788,), (1373031793,), (1373031823,), (1373031861,), (1373031863,), (1373031865,), (1373031868,), (1373031871,), (1373031874,), (1373031905,), (1373031908,), (1373031910,), (1373031912,), (1373031913,), (1373031915,), (1373031957,), (1373031959,), (1373031962,), (1373031964,), (1373031966,), (1373031969,), (1373031985,), (1373032013,), (1373032016,), (1373032019,), (1373032021,), (1373032024,), (1373032027,), (1373032055,), (1373032064,), (1373032067,), (1373032070,), (1373032073,), (1373032077,), (1373032110,), (1373032112,), (1373032115,), (1373032118,), (1373032120,), (1373032123,), (1373032156,), (1373032160,), (1373032161,), (1373032165,), (1373032168,), (1373032170,), (1373032253,), (1373032256,), (1373032259,), (1373032260,), (1373032263,), (1373032267,), (1373032292,), (1373032318,), (1373032323,), (1373032325,), (1373032328,), (1373032334,), (1373032337,), (1373032376,), (1373032383,), (1373032387,), (1373032392,), (1373032396,), (1373032399,), (1373032418,), (1373032422,), (1373032425,), (1373032429,), (1373032433,), (1373032436,), (1373032498,), (1373032595,), (1373032596,), (1373032604,), (1373032608,), (1373032611,), (1373032613,), (1373032640,), (1373032646,), (1373032649,), (1373032668,), (1373032672,), (1373032675,), (1373032699,), (1373032701,), (1373032719,), (1373032746,), (1373032778,), (1373032781,), (1373032861,), (1373032865,), (1373032866,), (1373032869,), (1373032872,), (1373032875,), (1373032960,), (1373032965,), (1373032969,), (1373032972,), (1373032976,), (1373032978,), (1373033053,), (1373033060,), (1373033063,), (1373033066,), (1373033069,), (1373033074,), (1373033196,), (1373033223,), (1373033237,), (1373033238,), (1373033252,), (1373033263,), (1373033331,), (1373033334,), (1373033361,), (1373033389,), (1373033419,), (1373033422,), (1373033462,), (1373033562,), (1373033617,), (1373033619,), (1373033622,), (1373033625,), (1373033627,), (1373033633,), (1373033732,), (1373033736,), (1373033739,), (1373033741,), (1373033745,), (1373033751,), (1373033888,), (1373033915,), (1373033941,), (1373033966,), (1373033993,), (1373034018,), (1373034120,), (1373034125,), (1373034128,), (1373034129,), (1373034131,), (1373034134,), (1373034197,), (1373034200,), (1373034203,), (1373034205,), (1373034208,), (1373034212,), (1373034238,), (1373034262,), (1373034265,), (1373034267,), (1373034269,), (1373034270,), (1373034272,), (1373034302,), (1373034307,), (1373034310,), (1373034313,), (1373034314,), (1373034317,), (1373034356,), (1373034358,), (1373034378,), (1373034412,), (1373034437,), (1373034451,), (1373034470,), (1373034473,), (1373034476,), (1373034478,), (1373034482,), (1373034486,), (1373034534,), (1373034558,), (1373034585,), (1373034613,), (1373034637,), (1373034666,), (1373034899,), (1373034915,), (1373034918,), (1373034921,), (1373034950,), (1373034969,), (1373035014,), (1373035505,), (1373035561,), (1373035609,), (1373035656,), (1373035701,), (1373036279,), (1373036315,), (1373036334,), (1373036336,), (1373036338,), (1373036343,), (1373036636,), (1373036673,), (1373036705,), (1373036707,), (1373036721,), (1373036742,), (1373036767,), (1373036770,), (1373036774,), (1373036775,), (1373036778,), (1373036782,), (1373036808,), (1373036812,), (1373036815,), (1373036817,), (1373036819,), (1373036823,), (1373036845,), (1373036871,), (1373036873,), (1373036875,), (1373036877,), (1373036881,), (1373036886,), (1373036904,), (1373036905,), (1373036907,), (1373036909,), (1373036912,), (1373036915,), (1373036942,), (1373036945,), (1373036947,), (1373036948,), (1373036950,), (1373036953,), (1373036987,), (1373036991,), (1373036993,), (1373036994,), (1373036996,), (1373036999,), (1373037037,), (1373037039,), (1373037040,), (1373037041,), (1373037043,), (1373037048,), (1373037088,), (1373037125,), (1373037129,), (1373037133,), (1373037136,), (1373037140,), (1373037143,), (1373037160,), (1373037162,), (1373037165,), (1373037167,), (1373037170,), (1373037174,), (1373037199,), (1373037204,), (1373037206,), (1373037207,), (1373037209,), (1373037213,), (1373037246,), (1373039952,), (1373037283,), (1373037286,), (1373037289,), (1373037290,), (1373037292,), (1373037294,), (1373037310,), (1373037320,), (1373037324,), (1373037326,), (1373037330,), (1373037335,), (1373037362,), (1373037368,), (1373037373,), (1373037376,), (1373037382,), (1373037385,), (1373037409,), (1373037413,), (1373037416,), (1373037419,), (1373037421,), (1373037423,), (1373037437,), (1373037441,), (1373037444,), (1373037445,), (1373037447,), (1373037450,), (1373037482,), (1373037517,), (1373037520,), (1373037523,), (1373037525,), (1373037527,), (1373037531,), (1373037555,), (1373037562,), (1373037567,), (1373037568,), (1373037570,), (1373037573,), (1373037610,), (1373037613,), (1373037616,), (1373037619,), (1373037622,), (1373037626,), (1373037645,), (1373037677,), (1373037679,), (1373037682,), (1373037684,), (1373037688,), (1373037693,), (1373037716,), (1373037723,), (1373037725,), (1373037728,), (1373037730,), (1373037734,), (1373037765,), (1373037767,), (1373037769,), (1373037770,), (1373037771,), (1373037773,), (1373037798,), (1373037807,), (1373037812,), (1373037814,), (1373037817,), (1373037821,), (1373037848,), (1373037849,), (1373037851,), (1373037852,), (1373037853,), (1373037855,), (1373037881,), (1373037883,), (1373037885,), (1373037886,), (1373037888,), (1373037890,), (1373037913,), (1373037918,), (1373037922,), (1373037926,), (1373037929,), (1373037934,), (1373037954,), (1373037957,), (1373037960,), (1373037964,), (1373037966,), (1373037971,), (1373037990,), (1373037996,), (1373037999,), (1373038003,), (1373038007,), (1373038012,), (1373038033,), (1373038070,), (1373038072,), (1373038075,), (1373038076,), (1373038079,), (1373038082,), (1373038107,), (1373038115,), (1373038123,), (1373038125,), (1373038127,), (1373038131,), (1373038156,), (1373038157,), (1373038161,), (1373038163,), (1373038165,), (1373038170,), (1373038203,), (1373038205,), (1373038207,), (1373038208,), (1373038210,), (1373038212,), (1373038242,), (1373038243,), (1373038244,), (1373038245,), (1373038247,), (1373038251,), (1373038275,), (1373038283,), (1373038286,), (1373038288,), (1373038289,), (1373038292,), (1373038314,), (1373038318,), (1373038321,), (1373038323,), (1373038325,), (1373038327,), (1373038354,), (1373038366,), (1373038371,), (1373038373,), (1373038376,), (1373038380,), (1373038404,), (1373038408,), (1373038410,), (1373038411,), (1373038413,), (1373038415,), (1373038456,), (1373038502,), (1373038505,), (1373038509,), (1373038510,), (1373038512,), (1373038514,), (1373038543,), (1373038546,), (1373038549,), (1373038551,), (1373038554,), (1373038558,), (1373038585,), (1373038588,), (1373038593,), (1373038596,), (1373038599,), (1373038601,), (1373038619,), (1373038630,), (1373038636,), (1373038640,), (1373038643,), (1373038647,), (1373038678,), (1373038683,), (1373038687,), (1373038690,), (1373038693,), (1373038697,), (1373038730,), (1373038751,), (1373038754,), (1373038757,), (1373038759,), (1373038761,), (1373038764,), (1373038787,), (1373038796,), (1373038800,), (1373038802,), (1373038805,), (1373038810,), (1373038826,), (1373038828,), (1373038831,), (1373038833,), (1373038835,), (1373038837,), (1373038866,), (1373038893,), (1373038896,), (1373038899,), (1373038900,), (1373038902,), (1373038907,), (1373038933,), (1373038937,), (1373038941,), (1373038944,), (1373038946,), (1373038974,), (1373039881,), (1373040302,), (1373040345,), (1373040374,), (1373040399,), (1373040433,), (1373040718,), (1373040743,), (1373040770,), (1373040795,), (1373040820,), (1373040846,), (1373040985,), (1373041005,), (1373041008,), (1373041012,), (1373041013,), (1373041048,), (1373041104,), (1373041107,), (1373041110,), (1373041111,), (1373041113,), (1373041116,), (1373041137,), (1373041140,), (1373041142,), (1373041144,), (1373041146,), (1373041149,), (1373041176,), (1373041223,), (1373041227,), (1373041235,), (1373041244,), (1373041247,), (1373041250,), (1373041394,), (1373041425,), (1373041458,), (1373041498,), (1373041526,), (1373041535,), (1373041586,), (1373041588,), (1373041590,), (1373041592,), (1373041594,), (1373041595,), (1373041622,), (1373041624,), (1373041626,), (1373041627,), (1373041629,), (1373041650,), (1373041992,), (1373042020,), (1373042033,), (1373042034,), (1373042036,), (1373042039,), (1373042216,), (1373042260,), (1373042267,), (1373042269,), (1373042285,), (1373042312,), (1373042315,), (1373042394,), (1373042433,), (1373042467,), (1373042484,), (1373042487,), (1373042491,), (1373042517,), (1373042521,), (1373042523,), (1373042534,), (1373042535,), (1373042538,), (1373042565,), (1373042592,), (1373042595,), (1373042609,), (1373042611,), (1373042613,), (1373042616,), (1373042729,), (1373042758,), (1373042761,), (1373042762,), (1373042764,), (1373042767,), (1373042784,), (1373042786,), (1373042788,), (1373042791,), (1373042793,), (1373042797,), (1373042825,), (1373042836,), (1373042842,), (1373042845,), (1373042848,), (1373042850,), (1373042883,), (1373042885,), (1373042888,), (1373042889,), (1373042891,), (1373042894,), (1373042928,), (1373043289,), (1373043292,), (1373043303,), (1373043305,), (1373043308,), (1373043316,), (1373043340,), (1373043344,), (1373043348,), (1373043351,), (1373043354,), (1373043357,), (1373043375,), (1373043377,), (1373043380,), (1373043381,), (1373043382,), (1373043385,), (1373043417,), (1373043448,), (1373043451,), (1373043455,), (1373043458,), (1373043460,), (1373043464,), (1373043487,), (1373043491,), (1373043494,), (1373043496,), (1373043500,), (1373043504,), (1373043524,), (1373043528,), (1373043531,), (1373043534,), (1373043537,), (1373043540,), (1373043559,), (1373043564,), (1373043567,), (1373043569,), (1373043571,), (1373043573,), (1373043598,), (1373043602,), (1373043605,), (1373043609,), (1373043618,), (1373043622,), (1373043646,), (1373043670,), (1373043672,), (1373043674,), (1373043675,), (1373043677,), (1373043681,), (1373043706,), (1373043711,), (1373043716,), (1373043717,), (1373043720,), (1373043725,), (1373043751,), (1373043756,), (1373043758,), (1373043760,), (1373043762,), (1373043765,), (1373043780,), (1373043801,), (1373043805,), (1373043808,), (1373043828,), (1373043847,), (1373043852,), (1373043948,), (1373043967,), (1373043978,), (1373043980,), (1373043982,), (1373043988,), (1373044010,), (1373044013,), (1373044016,), (1373044018,), (1373044022,), (1373044025,), (1373044053,), (1373044055,), (1373044059,), (1373044061,), (1373044064,), (1373044068,), (1373044105,), (1373044120,), (1373044148,), (1373044153,), (1373044160,), (1373044165,), (1373044275,), (1373044402,), (1373044404,), (1373044417,), (1373044443,), (1373044471,), (1373044491,), (1373044525,), (1373044530,), (1373044533,), (1373044534,), (1373044536,), (1373044539,), (1373044565,), (1373044575,), (1373044584,), (1373044586,), (1373044588,), (1373044592,), (1373044611,), (1373044639,), (1373044643,), (1373044647,), (1373044649,), (1373044652,), (1373044656,), (1373044668,), (1373044673,), (1373044676,), (1373044679,), (1373044682,), (1373044685,), (1373044689,), (1373044704,), (1373044707,), (1373044710,), (1373044713,), (1373044738,), (1373044764,), (1373045034,), (1373045062,), (1373045088,), (1373045091,), (1373045096,), (1373045105,), (1373045130,), (1373045138,), (1373045168,), (1373045175,), (1373045177,), (1373045183,), (1373045323,), (1373045401,), (1373045403,), (1373045406,), (1373045409,), (1373045414,), (1373045446,), (1373045522,), (1373045524,), (1373045527,), (1373045530,), (1373045531,), (1373045535,), (1373045567,), (1373045570,), (1373045573,), (1373045574,), (1373045576,), (1373045579,), (1373045590,), (1373045615,), (1373045619,), (1373045623,), (1373045626,), (1373045630,), (1373045635,), (1373045644,), (1373045651,), (1373045655,), (1373045660,), (1373045664,), (1373045667,), (1373045671,), (1373046658,), (1373046681,), (1373046699,), (1373046709,), (1373046723,), (1373046749,), (1373046927,), (1373046935,), (1373046939,), (1373046941,), (1373046942,), (1373046944,), (1373047084,), (1373047708,), (1373047772,), (1373047796,), (1373047824,), (1373047847,), (1373047873,), (1373048052,), (1373048055,), (1373048083,), (1373048112,), (1373048137,), (1373048164,), (1373048296,), (1373048298,), (1373048300,), (1373048302,), (1373048304,), (1373048306,), (1373048326,), (1373048350,), (1373048352,), (1373048355,), (1373048358,), (1373048360,), (1373048369,), (1373048389,), (1373048393,), (1373048395,), (1373048397,), (1373048400,), (1373048403,), (1373048619,), (1373048643,), (1373048667,), (1373048692,), (1373048717,), (1373048743,), (1373048788,), (1373048791,), (1373048794,), (1373048796,), (1373048799,), (1373048801,), (1373048822,), (1373048825,), (1373048828,), (1373048830,), (1373048832,), (1373048835,), (1373048854,), (1373048881,), (1373048885,), (1373048889,), (1373048892,), (1373048897,), (1373048900,), (1373048915,), (1373048918,), (1373048921,), (1373048923,), (1373048927,), (1373048931,), (1373048957,), (1373048960,), (1373048962,), (1373048965,), (1373048968,), (1373048972,), (1373048994,), (1373049025,), (1373049029,), (1373049032,), (1373049034,), (1373049035,), (1373049039,), (1373049064,), (1373049073,), (1373049075,), (1373049078,), (1373049081,), (1373049084,), (1373049096,), (1373049098,), (1373049101,), (1373049104,), (1373049106,), (1373049108,), (1373049142,), (1373049145,), (1373049147,), (1373049149,), (1373049152,), (1373049157,), (1373049171,), (1373049172,), (1373049173,), (1373049174,), (1373049175,), (1373049177,), (1373049204,), (1373049209,), (1373049213,), (1373049216,), (1373049219,), (1373049222,), (1373049245,), (1373049249,), (1373049253,), (1373049258,), (1373049261,), (1373049266,), (1373049296,), (1373049298,), (1373049301,), (1373049303,), (1373049304,), (1373049306,), (1373049335,), (1373049338,), (1373049342,), (1373049344,), (1373049347,), (1373049350,), (1373049372,), (1373049400,), (1373049402,), (1373049405,), (1373049407,), (1373049410,), (1373049413,), (1373049437,), (1373049446,), (1373049453,), (1373049456,), (1373049459,), (1373049462,), (1373049495,), (1373049498,), (1373049500,), (1373049501,), (1373049502,), (1373049507,), (1373049536,), (1373049538,), (1373049540,), (1373049542,), (1373049544,), (1373049553,), (1373049581,), (1373049583,), (1373049585,), (1373049587,), (1373049590,), (1373049594,), (1373049620,), (1373049646,), (1373049649,), (1373049651,), (1373049653,), (1373049656,), (1373049660,), (1373049682,), (1373049685,), (1373049688,), (1373049692,), (1373049695,), (1373049697,), (1373049718,), (1373049728,), (1373049734,), (1373049736,), (1373049738,), (1373049740,), (1373049759,), (1373049794,), (1373049798,), (1373049801,), (1373049809,), (1373049837,), (1373049845,), (1373049955,), (1373049978,), (1373049999,), (1373050000,), (1373050002,), (1373050005,), (1373050024,), (1373050029,), (1373050031,), (1373050034,), (1373050036,), (1373050039,), (1373050058,), (1373050065,), (1373050068,), (1373050070,), (1373050073,), (1373050077,), (1373050091,), (1373050094,), (1373050097,), (1373050098,), (1373050102,), (1373050106,), (1373050141,), (1373050179,), (1373050182,), (1373050186,), (1373050189,), (1373050190,), (1373050193,), (1373050215,), (1373050235,), (1373050243,), (1373050246,), (1373050247,), (1373050252,), (1373050284,), (1373050289,), (1373050294,), (1373050298,), (1373050300,), (1373050304,), (1373050328,), (1373050349,), (1373050351,), (1373050354,), (1373050357,), (1373050361,), (1373050364,), (1373050390,), (1373050391,), (1373050393,), (1373050400,), (1373050409,), (1373050416,), (1373050452,), (1373050454,), (1373050456,), (1373050458,), (1373050459,), (1373050463,), (1373050745,), (1373050771,), (1373050798,), (1373050823,), (1373050848,), (1373050855,), (1373050894,), (1373050897,), (1373050898,), (1373050900,), (1373050903,), (1373050908,), (1373050930,), (1373050973,), (1373050978,), (1373050993,), (1373050998,), (1373051001,), (1373051004,), (1373051009,), (1373051011,), (1373051018,), (1373051031,), (1373051033,), (1373051036,), (1373051071,), (1373051077,), (1373051081,), (1373051083,), (1373051085,), (1373051087,), (1373051106,), (1373051139,), (1373051141,), (1373051143,), (1373051144,), (1373051145,), (1373051147,), (1373051325,), (1373051373,), (1373051438,), (1373051503,), (1373051559,), (1373051613,), (1373052058,), (1373052278,), (1373052306,), (1373052334,), (1373052360,), (1373052386,), (1373052641,), (1373052659,), (1373052687,), (1373052714,), (1373052756,), (1373052871,), (1373053528,), (1373053577,), (1373053610,), (1373053650,), (1373053677,), (1373053704,), (1373054124,), (1373054149,), (1373054177,), (1373054202,), (1373054226,), (1373054253,), (1373054618,), (1373054651,), (1373054861,), (1373054918,), (1373054992,), (1373055069,), (1373055373,), (1373055820,), (1373055865,), (1373055941,), (1373056039,), (1373056121,), (1373056215,), (1373057105,), (1373057233,), (1373057349,), (1373057457,), (1373057518,), (1373057599,), (1373058296,), (1373058380,), (1373058434,), (1373058511,), (1373058621,), (1373058671,), (1373059041,), (1373059078,), (1373059109,), (1373059134,), (1373059163,), (1373059193,), (1373059539,), (1373059594,), (1373059629,), (1373059654,), (1373059690,), (1373059716,), (1373059905,), (1373060540,), (1373060565,), (1373060585,), (1373060587,), (1373060589,), (1373060598,), (1373060853,), (1373060883,), (1373060901,), (1373060907,), (1373060912,), (1373060915,), (1373060978,), (1373061008,), (1373061036,), (1373061064,), (1373061066,), (1373061070,), (1373061104,), (1373061120,), (1373061121,), (1373061122,), (1373061170,), (1373061247,), (1373061324,), (1373061460,), (1373061463,), (1373061465,), (1373061468,), (1373061471,), (1373061488,), (1373061872,), (1373061924,), (1373061974,), (1373062022,), (1373062072,), (1373062104,), (1373062533,), (1373062566,), (1373062601,), (1373062609,), (1373062613,), (1373062618,), (1373062785,), (1373062789,), (1373062792,), (1373062813,), (1373062834,), (1373062838,), (1373063011,), (1373063646,), (1373063753,), (1373063807,), (1373063835,), (1373063895,), (1373063943,), (1373064125,), (1373064128,), (1373064132,), (1373064135,), (1373064137,), (1373064163,), (1373064624,), (1373064690,), (1373064751,), (1373064813,), (1373064886,), (1373064937,), (1373065361,), (1373065664,), (1373065667,), (1373065710,), (1373065739,), (1373065768,), (1373065814,), (1373066111,), (1373066163,), (1373066203,), (1373066229,), (1373066279,), (1373066316,), (1373066970,), (1373066974,), (1373067053,), (1373067082,), (1373067113,), (1373067177,), (1373067293,), (1373067307,), (1373067310,), (1373067313,), (1373067315,), (1373067321,), (1373067432,), (1373067458,), (1373067490,), (1373067517,), (1373067547,), (1373067599,), (1373067876,), (1373068131,), (1373068180,), (1373068266,), (1373068372,), (1373068468,), (1373068593,), (1373069403,), (1373069478,), (1373069542,), (1373069605,), (1373069664,), (1373069711,), (1373069981,), (1373069991,), (1373070043,), (1373070094,), (1373070174,), (1373070200,), (1373070415,), (1373070690,), (1373070715,), (1373070740,), (1373070804,), (1373070831,), (1373070856,), (1373070987,), (1373071108,), (1373071204,), (1373071288,), (1373071405,), (1373071461,), (1373071599,), (1373071601,), (1373071603,), (1373071605,), (1373071607,), (1373071610,), (1373071817,), (1373071854,), (1373071881,), (1373071911,), (1373071937,), (1373071965,), (1373072414,), (1373072464,), (1373072494,), (1373072522,), (1373072549,), (1373072590,), (1373072650,), (1373072670,), (1373072672,), (1373072676,), (1373072679,), (1373072681,), (1373072684,), (1373073148,), (1373073151,), (1373073211,), (1373073266,), (1373073291,), (1373073318,), (1373073520,), (1373073547,), (1373073573,), (1373073598,), (1373073622,), (1373073649,), (1373073771,), (1373073804,), (1373073807,), (1373073810,), (1373073813,), (1373073815,), (1373073819,), (1373073841,), (1373073846,), (1373073849,), (1373073855,), (1373073882,), (1373073908,), (1373074630,), (1373074746,), (1373074792,), (1373074820,), (1373074848,), (1373074903,), (1373075259,), (1373075290,), (1373075297,), (1373075302,), (1373075306,), (1373075309,), (1373075451,), (1373075485,), (1373075513,), (1373075539,), (1373075566,), (1373075595,), (1373075967,), (1373076519,), (1373076549,), (1373076598,), (1373076647,), (1373076698,), (1373076730,), (1373076970,), (1373076979,), (1373076983,), (1373076984,), (1373076985,), (1373077008,), (1373077959,), (1373077985,), (1373078013,), (1373078038,), (1373078075,), (1373078174,), (1373078374,), (1373078544,), (1373078547,), (1373078550,), (1373078552,), (1373078554,), (1373078557,), (1373078645,), (1373078699,), (1373078749,), (1373078798,), (1373078848,), (1373078899,), (1373080501,), (1373080580,), (1373080623,), (1373080651,), (1373080692,), (1373080767,), (1373084197,), (1373084217,), (1373084218,), (1373084220,), (1373084221,), (1373084223,), (1373084225,), (1373084244,), (1373084249,), (1373084250,), (1373084252,), (1373084255,), (1373084258,), (1373084272,), (1373084274,), (1373084276,), (1373084278,), (1373084280,), (1373084283,), (1373084311,), (1373084315,), (1373084318,), (1373084321,), (1373084324,), (1373084326,), (1373084345,), (1373084350,), (1373084355,), (1373084362,), (1373084367,), (1373084370,), (1373084374,), (1373084388,), (1373084393,), (1373084397,), (1373084399,), (1373084401,), (1373084402,), (1373084422,), (1373084429,), (1373084432,), (1373084434,), (1373084436,), (1373084438,), (1373084478,), (1373084481,), (1373084484,), (1373084506,), (1373084507,), (1373084509,), (1373084584,), (1373084666,), (1373084667,), (1373084669,), (1373084671,), (1373084674,), (1373084676,), (1373084685,), (1373084709,), (1373084712,), (1373084744,), (1373084760,), (1373084777,), (1373084788,), (1373084796,), (1373084714,), (1373084719,), (1373084721,), (1373084723,), (1373084724,), (1373084725,), (1373084733,), (1373084775,), (1373084785,), (1373084797,), (1373084805,), (1373084808,), (1373084813,), (1373084816,), (1373084819,), (1373084822,), (1373084823,), (1373084827,), (1373084831,), (1373084899,), (1373084983,), (1373085040,), (1373084833,), (1373084836,), (1373084840,), (1373084843,), (1373084848,), (1373084849,), (1373084851,), (1373084855,), (1373084868,), (1373084872,), (1373084874,), (1373084875,), (1373084876,), (1373084896,), (1373084903,), (1373084980,), (1373085034,), (1373085077,), (1373085096,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'21072025': {'nb_upload': 65, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25155194]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1373084796, 1373084788, 1373084777, 1373084760, 1373084744, 1373084709] map_info['map_portfolio_photo'] : {25155194: [1373084796, 1373084788, 1373084777, 1373084760, 1373084744, 1373084712, 1373084709, 1373084685, 1373084676, 1373084674, 1373084671, 1373084669, 1373084667, 1373084666, 1373084584, 1373084509, 1373084507, 1373084506, 1373084484, 1373084481, 1373084478, 1373084438, 1373084436, 1373084434, 1373084432, 1373084429, 1373084422, 1373084402, 1373084401, 1373084399, 1373084397, 1373084393, 1373084388, 1373084374, 1373084370, 1373084367, 1373084362, 1373084355, 1373084350, 1373084345, 1373084326, 1373084324, 1373084321, 1373084318, 1373084315, 1373084311, 1373084283, 1373084280, 1373084278, 1373084276, 1373084274, 1373084272, 1373084258, 1373084255, 1373084252, 1373084250, 1373084249, 1373084244, 1373084225, 1373084223, 1373084221, 1373084220, 1373084218, 1373084217, 1373084197]} final : True mtd_id 4302 list_pids : [1373084796, 1373084788, 1373084777, 1373084760, 1373084744, 1373084709] Looping around the photos to save general results len do output : 1 /25155194Didn'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, '3316268') ('4302', '25155194', '1373084796', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084788', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084777', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084760', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084744', None, None, None, None, None, '3316268') ('4302', None, None, None, None, None, None, None, '3316268') ('4302', '25155194', '1373084709', None, None, None, None, None, '3316268') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '25155194', 'None', None, None, None, None, '3316268'), ('4302', '25155194', '1373084796', None, None, None, None, None, '3316268'), ('4302', '25155194', '1373084788', None, None, None, None, None, '3316268'), ('4302', '25155194', '1373084777', None, None, None, None, None, '3316268'), ('4302', '25155194', '1373084760', None, None, None, None, None, '3316268'), ('4302', '25155194', '1373084744', None, None, None, None, None, '3316268'), ('4302', '25155194', '1373084709', None, None, None, None, None, '3316268')] time used for this insertion : 0.013822555541992188 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.257102012634277 time spend to save output : 0.014000177383422852 total time spend for step 5 : 4.2711021900177 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 (3316268) 2.21user 2.46system 0:18.23elapsed 25%CPU (0avgtext+0avgdata 162776maxresident)k 28720inputs+13776outputs (113major+74914minor)pagefaults 0swaps