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 : 3985873 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 (3272223) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3272223) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24846464 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3272223'] with mtr_portfolio_ids : ['24846464'] and first list_photo_ids : [] new path : /proc/3985873/ Name: python3 Umask: 0002 State: R (running) Tgid: 3985873 Ngid: 0 Pid: 3985873 PPid: 3985872 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3985873 NSpid: 3985873 NSpgid: 3983296 NSsid: 3983296 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99904 kB VmRSS: 99904 kB RssAnon: 59800 kB RssFile: 40104 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 44 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3985873', 'Ngid': '0', 'Pid': '3985873', 'PPid': '3985872', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3985873', 'NSpid': '3985873', 'NSpgid': '3983296', 'NSsid': '3983296', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99904 kB', 'VmRSS': '99904 kB', 'RssAnon': '59800 kB', 'RssFile': '40104 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '44', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '3985873', '1106868', '0', '1106868', '865620', '99904', b'', 'marlene', '3272223') 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 (24846464) 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 (3272223 ) ) 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 (24846464) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371630417, 'portfolio_id': 24846464}, {'photo_id': 1371630384, 'portfolio_id': 24846464}, {'photo_id': 1371630308, 'portfolio_id': 24846464}, {'photo_id': 1371630245, 'portfolio_id': 24846464}, {'photo_id': 1371630184, 'portfolio_id': 24846464}, {'photo_id': 1371629968, 'portfolio_id': 24846464}, {'photo_id': 1371629887, 'portfolio_id': 24846464}, {'photo_id': 1371629813, 'portfolio_id': 24846464}, {'photo_id': 1371629733, 'portfolio_id': 24846464}, {'photo_id': 1371629657, 'portfolio_id': 24846464}, {'photo_id': 1371629561, 'portfolio_id': 24846464}, {'photo_id': 1371628387, 'portfolio_id': 24846464}, {'photo_id': 1371628354, 'portfolio_id': 24846464}, {'photo_id': 1371628324, 'portfolio_id': 24846464}, {'photo_id': 1371628288, 'portfolio_id': 24846464}, {'photo_id': 1371628258, 'portfolio_id': 24846464}, {'photo_id': 1371628228, 'portfolio_id': 24846464}, {'photo_id': 1371628155, 'portfolio_id': 24846464}, {'photo_id': 1371628152, 'portfolio_id': 24846464}, {'photo_id': 1371628148, 'portfolio_id': 24846464}, {'photo_id': 1371628142, 'portfolio_id': 24846464}, {'photo_id': 1371628114, 'portfolio_id': 24846464}, {'photo_id': 1371628090, 'portfolio_id': 24846464}, {'photo_id': 1371627708, 'portfolio_id': 24846464}, {'photo_id': 1371627680, 'portfolio_id': 24846464}, {'photo_id': 1371627655, 'portfolio_id': 24846464}, {'photo_id': 1371627629, 'portfolio_id': 24846464}, {'photo_id': 1371627603, 'portfolio_id': 24846464}, {'photo_id': 1371627572, 'portfolio_id': 24846464}, {'photo_id': 1371627501, 'portfolio_id': 24846464}, {'photo_id': 1371627496, 'portfolio_id': 24846464}, {'photo_id': 1371627491, 'portfolio_id': 24846464}, {'photo_id': 1371627486, 'portfolio_id': 24846464}, {'photo_id': 1371627480, 'portfolio_id': 24846464}, {'photo_id': 1371627475, 'portfolio_id': 24846464}, {'photo_id': 1371627411, 'portfolio_id': 24846464}, {'photo_id': 1371627405, 'portfolio_id': 24846464}, {'photo_id': 1371627399, 'portfolio_id': 24846464}, {'photo_id': 1371627394, 'portfolio_id': 24846464}, {'photo_id': 1371627390, 'portfolio_id': 24846464}, {'photo_id': 1371627388, 'portfolio_id': 24846464}, {'photo_id': 1371627329, 'portfolio_id': 24846464}, {'photo_id': 1371627327, 'portfolio_id': 24846464}, {'photo_id': 1371627325, 'portfolio_id': 24846464}, {'photo_id': 1371627322, 'portfolio_id': 24846464}, {'photo_id': 1371627315, 'portfolio_id': 24846464}, {'photo_id': 1371627288, 'portfolio_id': 24846464}, {'photo_id': 1371627278, 'portfolio_id': 24846464}, {'photo_id': 1371627271, 'portfolio_id': 24846464}, {'photo_id': 1371627265, 'portfolio_id': 24846464}, {'photo_id': 1371627259, 'portfolio_id': 24846464}, {'photo_id': 1371627240, 'portfolio_id': 24846464}, {'photo_id': 1371627210, 'portfolio_id': 24846464}, {'photo_id': 1371626857, 'portfolio_id': 24846464}, {'photo_id': 1371626852, 'portfolio_id': 24846464}, {'photo_id': 1371626848, 'portfolio_id': 24846464}, {'photo_id': 1371626846, 'portfolio_id': 24846464}, {'photo_id': 1371626842, 'portfolio_id': 24846464}, {'photo_id': 1371626839, 'portfolio_id': 24846464}, {'photo_id': 1371626741, 'portfolio_id': 24846464}, {'photo_id': 1371626738, 'portfolio_id': 24846464}, {'photo_id': 1371626735, 'portfolio_id': 24846464}, {'photo_id': 1371626731, 'portfolio_id': 24846464}, {'photo_id': 1371626727, 'portfolio_id': 24846464}, {'photo_id': 1371626722, 'portfolio_id': 24846464}, {'photo_id': 1371626660, 'portfolio_id': 24846464}, {'photo_id': 1371626657, 'portfolio_id': 24846464}, {'photo_id': 1371626629, 'portfolio_id': 24846464}, {'photo_id': 1371626625, 'portfolio_id': 24846464}, {'photo_id': 1371626591, 'portfolio_id': 24846464}, {'photo_id': 1371626589, 'portfolio_id': 24846464}, {'photo_id': 1371626539, 'portfolio_id': 24846464}, {'photo_id': 1371626537, 'portfolio_id': 24846464}, {'photo_id': 1371626494, 'portfolio_id': 24846464}, {'photo_id': 1371626493, 'portfolio_id': 24846464}, {'photo_id': 1371626447, 'portfolio_id': 24846464}, {'photo_id': 1371626444, 'portfolio_id': 24846464}, {'photo_id': 1371625857, 'portfolio_id': 24846464}, {'photo_id': 1371625817, 'portfolio_id': 24846464}, {'photo_id': 1371625786, 'portfolio_id': 24846464}, {'photo_id': 1371625757, 'portfolio_id': 24846464}, {'photo_id': 1371625726, 'portfolio_id': 24846464}, {'photo_id': 1371625681, 'portfolio_id': 24846464}, {'photo_id': 1371625464, 'portfolio_id': 24846464}, {'photo_id': 1371625415, 'portfolio_id': 24846464}, {'photo_id': 1371625363, 'portfolio_id': 24846464}, {'photo_id': 1371625309, 'portfolio_id': 24846464}, {'photo_id': 1371625279, 'portfolio_id': 24846464}, {'photo_id': 1371625251, 'portfolio_id': 24846464}, {'photo_id': 1371625174, 'portfolio_id': 24846464}, {'photo_id': 1371625157, 'portfolio_id': 24846464}, {'photo_id': 1371625156, 'portfolio_id': 24846464}, {'photo_id': 1371625149, 'portfolio_id': 24846464}, {'photo_id': 1371625148, 'portfolio_id': 24846464}, {'photo_id': 1371625147, 'portfolio_id': 24846464}, {'photo_id': 1371625114, 'portfolio_id': 24846464}, {'photo_id': 1371625106, 'portfolio_id': 24846464}, {'photo_id': 1371625097, 'portfolio_id': 24846464}, {'photo_id': 1371625065, 'portfolio_id': 24846464}, {'photo_id': 1371625032, 'portfolio_id': 24846464}, {'photo_id': 1371625004, 'portfolio_id': 24846464}] map_portfolio_id_photo_id: {24846464: [1371630417, 1371630384, 1371630308, 1371630245, 1371630184, 1371629968, 1371629887, 1371629813, 1371629733, 1371629657, 1371629561, 1371628387, 1371628354, 1371628324, 1371628288, 1371628258, 1371628228, 1371628155, 1371628152, 1371628148, 1371628142, 1371628114, 1371628090, 1371627708, 1371627680, 1371627655, 1371627629, 1371627603, 1371627572, 1371627501, 1371627496, 1371627491, 1371627486, 1371627480, 1371627475, 1371627411, 1371627405, 1371627399, 1371627394, 1371627390, 1371627388, 1371627329, 1371627327, 1371627325, 1371627322, 1371627315, 1371627288, 1371627278, 1371627271, 1371627265, 1371627259, 1371627240, 1371627210, 1371626857, 1371626852, 1371626848, 1371626846, 1371626842, 1371626839, 1371626741, 1371626738, 1371626735, 1371626731, 1371626727, 1371626722, 1371626660, 1371626657, 1371626629, 1371626625, 1371626591, 1371626589, 1371626539, 1371626537, 1371626494, 1371626493, 1371626447, 1371626444, 1371625857, 1371625817, 1371625786, 1371625757, 1371625726, 1371625681, 1371625464, 1371625415, 1371625363, 1371625309, 1371625279, 1371625251, 1371625174, 1371625157, 1371625156, 1371625149, 1371625148, 1371625147, 1371625114, 1371625106, 1371625097, 1371625065, 1371625032, 1371625004]} ##### 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.017128705978393555 #### 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 Fri Jul 11 18:02:56 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 (24846464) 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 : 24846464 get user id for portfolio 24846464 get sub ptf for main ptf 24846464, type 3726 and hashtags ['Carton_brun', 'cartonnette', 'mal_croppe', 'kraft', 'flou', 'Carton_gris', 'environnement', 'metal', 'plastique', 'papier', 'Teint_Dans_La_Masse', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24846464 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','mal_croppe','kraft','flou','Carton_gris','environnement','metal','plastique','papier','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24846464 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','mal_croppe','kraft','flou','Carton_gris','environnement','metal','plastique','papier','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 24846464, 'sub_port_id': 24846528, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721484, 'last_updated_at': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 26)}, 'autre_refus': {'main_port_id': 24846464, 'sub_port_id': 24846529, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721485, 'last_updated_at': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 26)}, 'plastique': {'main_port_id': 24846464, 'sub_port_id': 24846530, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721486, 'last_updated_at': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 26)}, 'kraft': {'main_port_id': 24846464, 'sub_port_id': 24846531, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721487, 'last_updated_at': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 26)}, 'cartonnette': {'main_port_id': 24846464, 'sub_port_id': 24846532, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721488, 'last_updated_at': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 26)}, 'papier': {'main_port_id': 24846464, 'sub_port_id': 24846533, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721489, 'last_updated_at': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 26)}, 'metal': {'main_port_id': 24846464, 'sub_port_id': 24846534, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721490, 'last_updated_at': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 26)}, 'Carton_brun': {'main_port_id': 24846464, 'sub_port_id': 24846535, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721491, 'last_updated_at': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 26)}, 'mal_croppe': {'main_port_id': 24846464, 'sub_port_id': 24846536, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721492, 'last_updated_at': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 24846464, 'sub_port_id': 24846537, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721493, 'last_updated_at': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 26)}, 'environnement': {'main_port_id': 24846464, 'sub_port_id': 24846538, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721494, 'last_updated_at': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 26)}, 'Carton_gris': {'main_port_id': 24846464, 'sub_port_id': 24846539, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721495, 'last_updated_at': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 18, 1, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24846528 , 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=24846464 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 (24846528) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24846464) result : ((1371625004,), (1371625032,), (1371625065,), (1371625097,), (1371625106,), (1371625114,), (1371625147,), (1371625148,), (1371625149,), (1371625156,), (1371625157,), (1371625174,), (1371625251,), (1371625279,), (1371625309,), (1371625363,), (1371625415,), (1371625464,), (1371625681,), (1371625726,), (1371625757,), (1371625786,), (1371625817,), (1371625857,), (1371626444,), (1371626447,), (1371626493,), (1371626494,), (1371626537,), (1371626539,), (1371626589,), (1371626591,), (1371626625,), (1371626629,), (1371626657,), (1371626660,), (1371626722,), (1371626727,), (1371626731,), (1371626735,), (1371626738,), (1371626741,), (1371626839,), (1371626842,), (1371626846,), (1371626848,), (1371626852,), (1371626857,), (1371627210,), (1371627240,), (1371627259,), (1371627265,), (1371627271,), (1371627278,), (1371627288,), (1371627315,), (1371627322,), (1371627325,), (1371627327,), (1371627329,), (1371627388,), (1371627390,), (1371627394,), (1371627399,), (1371627405,), (1371627411,), (1371627475,), (1371627480,), (1371627486,), (1371627491,), (1371627496,), (1371627501,), (1371627572,), (1371627603,), (1371627629,), (1371627655,), (1371627680,), (1371627708,), (1371628090,), (1371628114,), (1371628142,), (1371628148,), (1371628152,), (1371628155,), (1371628228,), (1371628258,), (1371628288,), (1371628324,), (1371628354,), (1371628387,), (1371629561,), (1371629657,), (1371629733,), (1371629813,), (1371629887,), (1371629968,), (1371630184,), (1371630245,), (1371630308,), (1371630384,), (1371630417,)) 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 24846529 , 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=24846464 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 (24846529) result : ((1371627317,), (1371627319,), (1371627320,), (1371627321,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24846464) result : ((1371625004,), (1371625032,), (1371625065,), (1371625097,), (1371625106,), (1371625114,), (1371625147,), (1371625148,), (1371625149,), (1371625156,), (1371625157,), (1371625174,), (1371625251,), (1371625279,), (1371625309,), (1371625363,), (1371625415,), (1371625464,), (1371625681,), (1371625726,), (1371625757,), (1371625786,), (1371625817,), (1371625857,), (1371626444,), (1371626447,), (1371626493,), (1371626494,), (1371626537,), (1371626539,), (1371626589,), (1371626591,), (1371626625,), (1371626629,), (1371626657,), (1371626660,), (1371626722,), (1371626727,), (1371626731,), (1371626735,), (1371626738,), (1371626741,), (1371626839,), (1371626842,), (1371626846,), (1371626848,), (1371626852,), (1371626857,), (1371627210,), (1371627240,), (1371627259,), (1371627265,), (1371627271,), (1371627278,), (1371627288,), (1371627315,), (1371627322,), (1371627325,), (1371627327,), (1371627329,), (1371627388,), (1371627390,), (1371627394,), (1371627399,), (1371627405,), (1371627411,), (1371627475,), (1371627480,), (1371627486,), (1371627491,), (1371627496,), (1371627501,), (1371627572,), (1371627603,), (1371627629,), (1371627655,), (1371627680,), (1371627708,), (1371628090,), (1371628114,), (1371628142,), (1371628148,), (1371628152,), (1371628155,), (1371628228,), (1371628258,), (1371628288,), (1371628324,), (1371628354,), (1371628387,), (1371629561,), (1371629657,), (1371629733,), (1371629813,), (1371629887,), (1371629968,), (1371630184,), (1371630245,), (1371630308,), (1371630384,), (1371630417,)) 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 24846530 , 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=24846464 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 (24846530) result : ((1371627383,), (1371627926,), (1371627929,), (1371628204,), (1371630800,), (1371630802,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24846464) result : ((1371625004,), (1371625032,), (1371625065,), (1371625097,), (1371625106,), (1371625114,), (1371625147,), (1371625148,), (1371625149,), (1371625156,), (1371625157,), (1371625174,), (1371625251,), (1371625279,), (1371625309,), (1371625363,), (1371625415,), (1371625464,), (1371625681,), (1371625726,), (1371625757,), (1371625786,), (1371625817,), (1371625857,), (1371626444,), (1371626447,), (1371626493,), (1371626494,), (1371626537,), (1371626539,), (1371626589,), (1371626591,), (1371626625,), (1371626629,), (1371626657,), (1371626660,), (1371626722,), (1371626727,), (1371626731,), (1371626735,), (1371626738,), (1371626741,), (1371626839,), (1371626842,), (1371626846,), (1371626848,), (1371626852,), (1371626857,), (1371627210,), (1371627240,), (1371627259,), (1371627265,), (1371627271,), (1371627278,), (1371627288,), (1371627315,), (1371627322,), (1371627325,), (1371627327,), (1371627329,), (1371627388,), (1371627390,), (1371627394,), (1371627399,), (1371627405,), (1371627411,), (1371627475,), (1371627480,), (1371627486,), (1371627491,), (1371627496,), (1371627501,), (1371627572,), (1371627603,), (1371627629,), (1371627655,), (1371627680,), (1371627708,), (1371628090,), (1371628114,), (1371628142,), (1371628148,), (1371628152,), (1371628155,), (1371628228,), (1371628258,), (1371628288,), (1371628324,), (1371628354,), (1371628387,), (1371629561,), (1371629657,), (1371629733,), (1371629813,), (1371629887,), (1371629968,), (1371630184,), (1371630245,), (1371630308,), (1371630384,), (1371630417,)) 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 24846531 , 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=24846464 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 (24846531) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24846464) result : ((1371625004,), (1371625032,), (1371625065,), (1371625097,), (1371625106,), (1371625114,), (1371625147,), (1371625148,), (1371625149,), (1371625156,), (1371625157,), (1371625174,), (1371625251,), (1371625279,), (1371625309,), (1371625363,), (1371625415,), (1371625464,), (1371625681,), (1371625726,), (1371625757,), (1371625786,), (1371625817,), (1371625857,), (1371626444,), (1371626447,), (1371626493,), (1371626494,), (1371626537,), (1371626539,), (1371626589,), (1371626591,), (1371626625,), (1371626629,), (1371626657,), (1371626660,), (1371626722,), (1371626727,), (1371626731,), (1371626735,), (1371626738,), (1371626741,), (1371626839,), (1371626842,), (1371626846,), (1371626848,), (1371626852,), (1371626857,), (1371627210,), (1371627240,), (1371627259,), (1371627265,), (1371627271,), (1371627278,), (1371627288,), (1371627315,), (1371627322,), (1371627325,), (1371627327,), (1371627329,), (1371627388,), (1371627390,), (1371627394,), (1371627399,), (1371627405,), (1371627411,), (1371627475,), (1371627480,), (1371627486,), (1371627491,), (1371627496,), (1371627501,), (1371627572,), (1371627603,), (1371627629,), (1371627655,), (1371627680,), (1371627708,), (1371628090,), (1371628114,), (1371628142,), (1371628148,), (1371628152,), (1371628155,), (1371628228,), (1371628258,), (1371628288,), (1371628324,), (1371628354,), (1371628387,), (1371629561,), (1371629657,), (1371629733,), (1371629813,), (1371629887,), (1371629968,), (1371630184,), (1371630245,), (1371630308,), (1371630384,), (1371630417,)) 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 24846532 , 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=24846464 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 (24846532) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24846464) result : ((1371625004,), (1371625032,), (1371625065,), (1371625097,), (1371625106,), (1371625114,), (1371625147,), (1371625148,), (1371625149,), (1371625156,), (1371625157,), (1371625174,), (1371625251,), (1371625279,), (1371625309,), (1371625363,), (1371625415,), (1371625464,), (1371625681,), (1371625726,), (1371625757,), (1371625786,), (1371625817,), (1371625857,), (1371626444,), (1371626447,), (1371626493,), (1371626494,), (1371626537,), (1371626539,), (1371626589,), (1371626591,), (1371626625,), (1371626629,), (1371626657,), (1371626660,), (1371626722,), (1371626727,), (1371626731,), (1371626735,), (1371626738,), (1371626741,), (1371626839,), (1371626842,), (1371626846,), (1371626848,), (1371626852,), (1371626857,), (1371627210,), (1371627240,), (1371627259,), (1371627265,), (1371627271,), (1371627278,), (1371627288,), (1371627315,), (1371627322,), (1371627325,), (1371627327,), (1371627329,), (1371627388,), (1371627390,), (1371627394,), (1371627399,), (1371627405,), (1371627411,), (1371627475,), (1371627480,), (1371627486,), (1371627491,), (1371627496,), (1371627501,), (1371627572,), (1371627603,), (1371627629,), (1371627655,), (1371627680,), (1371627708,), (1371628090,), (1371628114,), (1371628142,), (1371628148,), (1371628152,), (1371628155,), (1371628228,), (1371628258,), (1371628288,), (1371628324,), (1371628354,), (1371628387,), (1371629561,), (1371629657,), (1371629733,), (1371629813,), (1371629887,), (1371629968,), (1371630184,), (1371630245,), (1371630308,), (1371630384,), (1371630417,)) 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 24846533 , 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=24846464 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 (24846533) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24846464) result : ((1371625004,), (1371625032,), (1371625065,), (1371625097,), (1371625106,), (1371625114,), (1371625147,), (1371625148,), (1371625149,), (1371625156,), (1371625157,), (1371625174,), (1371625251,), (1371625279,), (1371625309,), (1371625363,), (1371625415,), (1371625464,), (1371625681,), (1371625726,), (1371625757,), (1371625786,), (1371625817,), (1371625857,), (1371626444,), (1371626447,), (1371626493,), (1371626494,), (1371626537,), (1371626539,), (1371626589,), (1371626591,), (1371626625,), (1371626629,), (1371626657,), (1371626660,), (1371626722,), (1371626727,), (1371626731,), (1371626735,), (1371626738,), (1371626741,), (1371626839,), (1371626842,), (1371626846,), (1371626848,), (1371626852,), (1371626857,), (1371627210,), (1371627240,), (1371627259,), (1371627265,), (1371627271,), (1371627278,), (1371627288,), (1371627315,), (1371627322,), (1371627325,), (1371627327,), (1371627329,), (1371627388,), (1371627390,), (1371627394,), (1371627399,), (1371627405,), (1371627411,), (1371627475,), (1371627480,), (1371627486,), (1371627491,), (1371627496,), (1371627501,), (1371627572,), (1371627603,), (1371627629,), (1371627655,), (1371627680,), (1371627708,), (1371628090,), (1371628114,), (1371628142,), (1371628148,), (1371628152,), (1371628155,), (1371628228,), (1371628258,), (1371628288,), (1371628324,), (1371628354,), (1371628387,), (1371629561,), (1371629657,), (1371629733,), (1371629813,), (1371629887,), (1371629968,), (1371630184,), (1371630245,), (1371630308,), (1371630384,), (1371630417,)) 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 24846534 , 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=24846464 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 (24846534) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24846464) result : ((1371625004,), (1371625032,), (1371625065,), (1371625097,), (1371625106,), (1371625114,), (1371625147,), (1371625148,), (1371625149,), (1371625156,), (1371625157,), (1371625174,), (1371625251,), (1371625279,), (1371625309,), (1371625363,), (1371625415,), (1371625464,), (1371625681,), (1371625726,), (1371625757,), (1371625786,), (1371625817,), (1371625857,), (1371626444,), (1371626447,), (1371626493,), (1371626494,), (1371626537,), (1371626539,), (1371626589,), (1371626591,), (1371626625,), (1371626629,), (1371626657,), (1371626660,), (1371626722,), (1371626727,), (1371626731,), (1371626735,), (1371626738,), (1371626741,), (1371626839,), (1371626842,), (1371626846,), (1371626848,), (1371626852,), (1371626857,), (1371627210,), (1371627240,), (1371627259,), (1371627265,), (1371627271,), (1371627278,), (1371627288,), (1371627315,), (1371627322,), (1371627325,), (1371627327,), (1371627329,), (1371627388,), (1371627390,), (1371627394,), (1371627399,), (1371627405,), (1371627411,), (1371627475,), (1371627480,), (1371627486,), (1371627491,), (1371627496,), (1371627501,), (1371627572,), (1371627603,), (1371627629,), (1371627655,), (1371627680,), (1371627708,), (1371628090,), (1371628114,), (1371628142,), (1371628148,), (1371628152,), (1371628155,), (1371628228,), (1371628258,), (1371628288,), (1371628324,), (1371628354,), (1371628387,), (1371629561,), (1371629657,), (1371629733,), (1371629813,), (1371629887,), (1371629968,), (1371630184,), (1371630245,), (1371630308,), (1371630384,), (1371630417,)) 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 24846535 , 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=24846464 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 (24846535) result : ((1371627056,), (1371627060,), (1371627062,), (1371630379,), (1371631202,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24846464) result : ((1371625004,), (1371625032,), (1371625065,), (1371625097,), (1371625106,), (1371625114,), (1371625147,), (1371625148,), (1371625149,), (1371625156,), (1371625157,), (1371625174,), (1371625251,), (1371625279,), (1371625309,), (1371625363,), (1371625415,), (1371625464,), (1371625681,), (1371625726,), (1371625757,), (1371625786,), (1371625817,), (1371625857,), (1371626444,), (1371626447,), (1371626493,), (1371626494,), (1371626537,), (1371626539,), (1371626589,), (1371626591,), (1371626625,), (1371626629,), (1371626657,), (1371626660,), (1371626722,), (1371626727,), (1371626731,), (1371626735,), (1371626738,), (1371626741,), (1371626839,), (1371626842,), (1371626846,), (1371626848,), (1371626852,), (1371626857,), (1371627210,), (1371627240,), (1371627259,), (1371627265,), (1371627271,), (1371627278,), (1371627288,), (1371627315,), (1371627322,), (1371627325,), (1371627327,), (1371627329,), (1371627388,), (1371627390,), (1371627394,), (1371627399,), (1371627405,), (1371627411,), (1371627475,), (1371627480,), (1371627486,), (1371627491,), (1371627496,), (1371627501,), (1371627572,), (1371627603,), (1371627629,), (1371627655,), (1371627680,), (1371627708,), (1371628090,), (1371628114,), (1371628142,), (1371628148,), (1371628152,), (1371628155,), (1371628228,), (1371628258,), (1371628288,), (1371628324,), (1371628354,), (1371628387,), (1371629561,), (1371629657,), (1371629733,), (1371629813,), (1371629887,), (1371629968,), (1371630184,), (1371630245,), (1371630308,), (1371630384,), (1371630417,)) 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 24846536 , 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=24846464 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 (24846536) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24846464) result : ((1371625004,), (1371625032,), (1371625065,), (1371625097,), (1371625106,), (1371625114,), (1371625147,), (1371625148,), (1371625149,), (1371625156,), (1371625157,), (1371625174,), (1371625251,), (1371625279,), (1371625309,), (1371625363,), (1371625415,), (1371625464,), (1371625681,), (1371625726,), (1371625757,), (1371625786,), (1371625817,), (1371625857,), (1371626444,), (1371626447,), (1371626493,), (1371626494,), (1371626537,), (1371626539,), (1371626589,), (1371626591,), (1371626625,), (1371626629,), (1371626657,), (1371626660,), (1371626722,), (1371626727,), (1371626731,), (1371626735,), (1371626738,), (1371626741,), (1371626839,), (1371626842,), (1371626846,), (1371626848,), (1371626852,), (1371626857,), (1371627210,), (1371627240,), (1371627259,), (1371627265,), (1371627271,), (1371627278,), (1371627288,), (1371627315,), (1371627322,), (1371627325,), (1371627327,), (1371627329,), (1371627388,), (1371627390,), (1371627394,), (1371627399,), (1371627405,), (1371627411,), (1371627475,), (1371627480,), (1371627486,), (1371627491,), (1371627496,), (1371627501,), (1371627572,), (1371627603,), (1371627629,), (1371627655,), (1371627680,), (1371627708,), (1371628090,), (1371628114,), (1371628142,), (1371628148,), (1371628152,), (1371628155,), (1371628228,), (1371628258,), (1371628288,), (1371628324,), (1371628354,), (1371628387,), (1371629561,), (1371629657,), (1371629733,), (1371629813,), (1371629887,), (1371629968,), (1371630184,), (1371630245,), (1371630308,), (1371630384,), (1371630417,)) 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 24846537 , 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=24846464 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 (24846537) result : ((1371626809,), (1371626810,), (1371626811,), (1371626812,), (1371626813,), (1371626814,), (1371626815,), (1371626816,), (1371626817,), (1371626819,), (1371626820,), (1371626821,), (1371626822,), (1371626823,), (1371626824,), (1371626825,), (1371626826,), (1371626828,), (1371626829,), (1371626830,), (1371626831,), (1371626832,), (1371626833,), (1371626834,), (1371627017,), (1371627019,), (1371627021,), (1371627024,), (1371627026,), (1371627028,), (1371627030,), (1371627033,), (1371627035,), (1371627037,), (1371627040,), (1371627043,), (1371627292,), (1371627293,), (1371627294,), (1371627295,), (1371627296,), (1371627297,), (1371627298,), (1371627299,), (1371627300,), (1371627301,), (1371627302,), (1371627303,), (1371627304,), (1371627305,), (1371627306,), (1371627307,), (1371627308,), (1371627309,), (1371627310,), (1371627311,), (1371627312,), (1371627314,), (1371627367,), (1371627368,), (1371627369,), (1371627370,), (1371627371,), (1371627372,), (1371627374,), (1371627375,), (1371627376,), (1371627377,), (1371627378,), (1371627379,), (1371627380,), (1371627381,), (1371627424,), (1371627425,), (1371627426,), (1371627427,), (1371627428,), (1371627430,), (1371627431,), (1371627432,), (1371627433,), (1371627435,), (1371627436,), (1371627883,), (1371627885,), (1371627887,), (1371627889,), (1371627891,), (1371627893,), (1371627895,), (1371627897,), (1371627899,), (1371627902,), (1371627904,), (1371627906,), (1371627908,), (1371627911,), (1371627913,), (1371628185,), (1371628186,), (1371628187,), (1371628188,), (1371628189,), (1371628191,), (1371628193,), (1371628194,), (1371628195,), (1371628196,), (1371628198,), (1371628199,), (1371628200,), (1371628380,), (1371628382,), (1371628384,), (1371628386,), (1371628389,), (1371628392,), (1371628394,), (1371628397,), (1371628399,), (1371628401,), (1371628403,), (1371628405,), (1371628407,), (1371628410,), (1371628412,), (1371629539,), (1371629544,), (1371629549,), (1371629554,), (1371629559,), (1371629565,), (1371629570,), (1371629575,), (1371629580,), (1371629585,), (1371629591,), (1371630310,), (1371630314,), (1371630317,), (1371630320,), (1371630324,), (1371630327,), (1371630330,), (1371630334,), (1371630337,), (1371630340,), (1371630343,), (1371630346,), (1371630349,), (1371630352,), (1371630356,), (1371630361,), (1371630364,), (1371630766,), (1371630769,), (1371630772,), (1371630775,), (1371630777,), (1371630779,), (1371630781,), (1371630783,), (1371630785,), (1371630788,), (1371631170,), (1371631172,), (1371631174,), (1371631176,), (1371631178,), (1371631180,), (1371631182,), (1371631184,), (1371631187,), (1371631189,), (1371631191,), (1371631193,), (1371631371,), (1371631373,), (1371631375,), (1371631377,), (1371631379,), (1371631381,), (1371631383,), (1371631385,), (1371631387,), (1371631389,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24846464) result : ((1371625004,), (1371625032,), (1371625065,), (1371625097,), (1371625106,), (1371625114,), (1371625147,), (1371625148,), (1371625149,), (1371625156,), (1371625157,), (1371625174,), (1371625251,), (1371625279,), (1371625309,), (1371625363,), (1371625415,), (1371625464,), (1371625681,), (1371625726,), (1371625757,), (1371625786,), (1371625817,), (1371625857,), (1371626444,), (1371626447,), (1371626493,), (1371626494,), (1371626537,), (1371626539,), (1371626589,), (1371626591,), (1371626625,), (1371626629,), (1371626657,), (1371626660,), (1371626722,), (1371626727,), (1371626731,), (1371626735,), (1371626738,), (1371626741,), (1371626839,), (1371626842,), (1371626846,), (1371626848,), (1371626852,), (1371626857,), (1371627210,), (1371627240,), (1371627259,), (1371627265,), (1371627271,), (1371627278,), (1371627288,), (1371627315,), (1371627322,), (1371627325,), (1371627327,), (1371627329,), (1371627388,), (1371627390,), (1371627394,), (1371627399,), (1371627405,), (1371627411,), (1371627475,), (1371627480,), (1371627486,), (1371627491,), (1371627496,), (1371627501,), (1371627572,), (1371627603,), (1371627629,), (1371627655,), (1371627680,), (1371627708,), (1371628090,), (1371628114,), (1371628142,), (1371628148,), (1371628152,), (1371628155,), (1371628228,), (1371628258,), (1371628288,), (1371628324,), (1371628354,), (1371628387,), (1371629561,), (1371629657,), (1371629733,), (1371629813,), (1371629887,), (1371629968,), (1371630184,), (1371630245,), (1371630308,), (1371630384,), (1371630417,)) 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 24846538 , 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=24846464 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 (24846538) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24846464) result : ((1371625004,), (1371625032,), (1371625065,), (1371625097,), (1371625106,), (1371625114,), (1371625147,), (1371625148,), (1371625149,), (1371625156,), (1371625157,), (1371625174,), (1371625251,), (1371625279,), (1371625309,), (1371625363,), (1371625415,), (1371625464,), (1371625681,), (1371625726,), (1371625757,), (1371625786,), (1371625817,), (1371625857,), (1371626444,), (1371626447,), (1371626493,), (1371626494,), (1371626537,), (1371626539,), (1371626589,), (1371626591,), (1371626625,), (1371626629,), (1371626657,), (1371626660,), (1371626722,), (1371626727,), (1371626731,), (1371626735,), (1371626738,), (1371626741,), (1371626839,), (1371626842,), (1371626846,), (1371626848,), (1371626852,), (1371626857,), (1371627210,), (1371627240,), (1371627259,), (1371627265,), (1371627271,), (1371627278,), (1371627288,), (1371627315,), (1371627322,), (1371627325,), (1371627327,), (1371627329,), (1371627388,), (1371627390,), (1371627394,), (1371627399,), (1371627405,), (1371627411,), (1371627475,), (1371627480,), (1371627486,), (1371627491,), (1371627496,), (1371627501,), (1371627572,), (1371627603,), (1371627629,), (1371627655,), (1371627680,), (1371627708,), (1371628090,), (1371628114,), (1371628142,), (1371628148,), (1371628152,), (1371628155,), (1371628228,), (1371628258,), (1371628288,), (1371628324,), (1371628354,), (1371628387,), (1371629561,), (1371629657,), (1371629733,), (1371629813,), (1371629887,), (1371629968,), (1371630184,), (1371630245,), (1371630308,), (1371630384,), (1371630417,)) 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 24846539 , 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=24846464 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 (24846539) result : ((1371626835,), (1371626836,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24846464) result : ((1371625004,), (1371625032,), (1371625065,), (1371625097,), (1371625106,), (1371625114,), (1371625147,), (1371625148,), (1371625149,), (1371625156,), (1371625157,), (1371625174,), (1371625251,), (1371625279,), (1371625309,), (1371625363,), (1371625415,), (1371625464,), (1371625681,), (1371625726,), (1371625757,), (1371625786,), (1371625817,), (1371625857,), (1371626444,), (1371626447,), (1371626493,), (1371626494,), (1371626537,), (1371626539,), (1371626589,), (1371626591,), (1371626625,), (1371626629,), (1371626657,), (1371626660,), (1371626722,), (1371626727,), (1371626731,), (1371626735,), (1371626738,), (1371626741,), (1371626839,), (1371626842,), (1371626846,), (1371626848,), (1371626852,), (1371626857,), (1371627210,), (1371627240,), (1371627259,), (1371627265,), (1371627271,), (1371627278,), (1371627288,), (1371627315,), (1371627322,), (1371627325,), (1371627327,), (1371627329,), (1371627388,), (1371627390,), (1371627394,), (1371627399,), (1371627405,), (1371627411,), (1371627475,), (1371627480,), (1371627486,), (1371627491,), (1371627496,), (1371627501,), (1371627572,), (1371627603,), (1371627629,), (1371627655,), (1371627680,), (1371627708,), (1371628090,), (1371628114,), (1371628142,), (1371628148,), (1371628152,), (1371628155,), (1371628228,), (1371628258,), (1371628288,), (1371628324,), (1371628354,), (1371628387,), (1371629561,), (1371629657,), (1371629733,), (1371629813,), (1371629887,), (1371629968,), (1371630184,), (1371630245,), (1371630308,), (1371630384,), (1371630417,)) 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`=24846464 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','mal_croppe','kraft','flou','Carton_gris','environnement','metal','plastique','papier','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24846464 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','mal_croppe','kraft','flou','Carton_gris','environnement','metal','plastique','papier','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 24846464, 'sub_port_id': 24846541, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721496, 'last_updated_at': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 32)}, 'autre_refus': {'main_port_id': 24846464, 'sub_port_id': 24846542, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721497, 'last_updated_at': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 32)}, 'plastique': {'main_port_id': 24846464, 'sub_port_id': 24846543, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721498, 'last_updated_at': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 32)}, 'kraft': {'main_port_id': 24846464, 'sub_port_id': 24846544, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721499, 'last_updated_at': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 32)}, 'cartonnette': {'main_port_id': 24846464, 'sub_port_id': 24846545, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721500, 'last_updated_at': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 32)}, 'papier': {'main_port_id': 24846464, 'sub_port_id': 24846546, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721501, 'last_updated_at': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 32)}, 'metal': {'main_port_id': 24846464, 'sub_port_id': 24846547, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721502, 'last_updated_at': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 32)}, 'Carton_brun': {'main_port_id': 24846464, 'sub_port_id': 24846548, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721503, 'last_updated_at': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 32)}, 'mal_croppe': {'main_port_id': 24846464, 'sub_port_id': 24846549, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721504, 'last_updated_at': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 24846464, 'sub_port_id': 24846550, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721505, 'last_updated_at': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 32)}, 'environnement': {'main_port_id': 24846464, 'sub_port_id': 24846551, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721506, 'last_updated_at': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 17, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 32)}, 'Carton_gris': {'main_port_id': 24846464, 'sub_port_id': 24846552, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16721507, 'last_updated_at': datetime.datetime(2025, 7, 11, 18, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 11, 18, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 11, 17, 49, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24846541,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24846528 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24846542,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24846529 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24846543,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24846530 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24846544,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24846531 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24846545,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24846532 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24846546,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24846533 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24846547,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24846534 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24846548,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24846535 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24846549,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24846536 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24846550,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24846537 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24846551,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24846538 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24846552,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24846539 lien utilise dans velours : https://www.fotonower.com/velours/24846541,24846542,24846543,24846544,24846545,24846546,24846547,24846548,24846549,24846550,24846551,24846552?tags=flou,autre_refus,plastique,kraft,cartonnette,papier,metal,Carton_brun,mal_croppe,Teint_Dans_La_Masse,environnement,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24846464]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371630417, 1371630384, 1371630308, 1371630245, 1371630184] map_info['map_portfolio_photo'] : {24846464: [1371630417, 1371630384, 1371630308, 1371630245, 1371630184, 1371629968, 1371629887, 1371629813, 1371629733, 1371629657, 1371629561, 1371628387, 1371628354, 1371628324, 1371628288, 1371628258, 1371628228, 1371628155, 1371628152, 1371628148, 1371628142, 1371628114, 1371628090, 1371627708, 1371627680, 1371627655, 1371627629, 1371627603, 1371627572, 1371627501, 1371627496, 1371627491, 1371627486, 1371627480, 1371627475, 1371627411, 1371627405, 1371627399, 1371627394, 1371627390, 1371627388, 1371627329, 1371627327, 1371627325, 1371627322, 1371627315, 1371627288, 1371627278, 1371627271, 1371627265, 1371627259, 1371627240, 1371627210, 1371626857, 1371626852, 1371626848, 1371626846, 1371626842, 1371626839, 1371626741, 1371626738, 1371626735, 1371626731, 1371626727, 1371626722, 1371626660, 1371626657, 1371626629, 1371626625, 1371626591, 1371626589, 1371626539, 1371626537, 1371626494, 1371626493, 1371626447, 1371626444, 1371625857, 1371625817, 1371625786, 1371625757, 1371625726, 1371625681, 1371625464, 1371625415, 1371625363, 1371625309, 1371625279, 1371625251, 1371625174, 1371625157, 1371625156, 1371625149, 1371625148, 1371625147, 1371625114, 1371625106, 1371625097, 1371625065, 1371625032, 1371625004]} final : False mtd_id 4302 list_pids : [1371630417, 1371630384, 1371630308, 1371630245, 1371630184] Looping around the photos to save general results len do output : 1 /24846464. 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, '3272223') ('4302', '24846464', '1371630417', None, None, None, None, None, '3272223') ('4302', None, None, None, None, None, None, None, '3272223') ('4302', '24846464', '1371630384', None, None, None, None, None, '3272223') ('4302', None, None, None, None, None, None, None, '3272223') ('4302', '24846464', '1371630308', None, None, None, None, None, '3272223') ('4302', None, None, None, None, None, None, None, '3272223') ('4302', '24846464', '1371630245', None, None, None, None, None, '3272223') ('4302', None, None, None, None, None, None, None, '3272223') ('4302', '24846464', '1371630184', None, None, None, None, None, '3272223') 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', None, '24846464', "{'flou': 24846528, 'autre_refus': 24846529, 'plastique': 24846530, 'kraft': 24846531, 'cartonnette': 24846532, 'papier': 24846533, 'metal': 24846534, 'Carton_brun': 24846535, 'mal_croppe': 24846536, 'Teint_Dans_La_Masse': 24846537, 'environnement': 24846538, 'Carton_gris': 24846539}", None, None, None, None, '3272223'), ('4302', '24846464', '1371630417', None, None, None, None, None, '3272223'), ('4302', '24846464', '1371630384', None, None, None, None, None, '3272223'), ('4302', '24846464', '1371630308', None, None, None, None, None, '3272223'), ('4302', '24846464', '1371630245', None, None, None, None, None, '3272223'), ('4302', '24846464', '1371630184', None, None, None, None, None, '3272223')] time used for this insertion : 0.012966632843017578 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4906549453735352 time spend to save output : 0.013246297836303711 total time spend for step 1 : 1.5039012432098389 step2:final Fri Jul 11 18:02: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 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 (24846464) 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 24846464 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371625114,1371625464,1371625106,1371625415,1371625097,1371625363,1371625065,1371625309,1371625032,1371625279,1371625004,1371625251,1371625174,1371625157,1371625156,1371625149,1371625148,1371625147,1371625857,1371625817,1371625786,1371625757,1371625726,1371625681,1371626657,1371626660,1371626625,1371626629,1371626589,1371626591,1371626537,1371626539,1371626493,1371626494,1371626444,1371626447,1371626741,1371626738,1371626735,1371626731,1371626727,1371626722,1371626857,1371626852,1371626848,1371626846,1371626842,1371626839,1371627278,1371627271,1371627265,1371627259,1371627240,1371627210,1371627329,1371627327,1371627325,1371627322,1371627315,1371627288,1371627411,1371627405,1371627399,1371627394,1371627390,1371627388,1371627501,1371627496,1371627491,1371627486,1371627480,1371627475,1371627708,1371627680,1371627655,1371627629,1371627603,1371627572,1371628155,1371628152,1371628148,1371628142,1371628114,1371628090,1371628387,1371628354,1371628324,1371628288,1371628258,1371628228,1371630417,1371630384,1371630308,1371630245,1371630184,1371629968,1371629887,1371629813,1371629733,1371629657,1371629561); 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([24846464]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371630417: ('0.021010002508206733',), 1371630384: ('0.021010002508206733',), 1371630308: ('0.021010002508206733',), 1371630245: ('0.021010002508206733',), 1371630184: ('0.021010002508206733',)} new output for save of step final : {1371630417: ('0.021010002508206733',), 1371630384: ('0.021010002508206733',), 1371630308: ('0.021010002508206733',), 1371630245: ('0.021010002508206733',), 1371630184: ('0.021010002508206733',)} [1371630417, 1371630384, 1371630308, 1371630245, 1371630184] map_info['map_portfolio_photo'] : {24846464: [1371630417, 1371630384, 1371630308, 1371630245, 1371630184, 1371629968, 1371629887, 1371629813, 1371629733, 1371629657, 1371629561, 1371628387, 1371628354, 1371628324, 1371628288, 1371628258, 1371628228, 1371628155, 1371628152, 1371628148, 1371628142, 1371628114, 1371628090, 1371627708, 1371627680, 1371627655, 1371627629, 1371627603, 1371627572, 1371627501, 1371627496, 1371627491, 1371627486, 1371627480, 1371627475, 1371627411, 1371627405, 1371627399, 1371627394, 1371627390, 1371627388, 1371627329, 1371627327, 1371627325, 1371627322, 1371627315, 1371627288, 1371627278, 1371627271, 1371627265, 1371627259, 1371627240, 1371627210, 1371626857, 1371626852, 1371626848, 1371626846, 1371626842, 1371626839, 1371626741, 1371626738, 1371626735, 1371626731, 1371626727, 1371626722, 1371626660, 1371626657, 1371626629, 1371626625, 1371626591, 1371626589, 1371626539, 1371626537, 1371626494, 1371626493, 1371626447, 1371626444, 1371625857, 1371625817, 1371625786, 1371625757, 1371625726, 1371625681, 1371625464, 1371625415, 1371625363, 1371625309, 1371625279, 1371625251, 1371625174, 1371625157, 1371625156, 1371625149, 1371625148, 1371625147, 1371625114, 1371625106, 1371625097, 1371625065, 1371625032, 1371625004]} final : False mtd_id 4302 list_pids : [1371630417, 1371630384, 1371630308, 1371630245, 1371630184] Looping around the photos to save general results len do output : 5 /1371630417.Didn't retrieve data . /1371630384.Didn't retrieve data . /1371630308.Didn't retrieve data . /1371630245.Didn't retrieve data . /1371630184.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, '3272223') ('4302', '24846464', '1371630417', None, None, None, None, None, '3272223') ('4302', None, None, None, None, None, None, None, '3272223') ('4302', '24846464', '1371630384', None, None, None, None, None, '3272223') ('4302', None, None, None, None, None, None, None, '3272223') ('4302', '24846464', '1371630308', None, None, None, None, None, '3272223') ('4302', None, None, None, None, None, None, None, '3272223') ('4302', '24846464', '1371630245', None, None, None, None, None, '3272223') ('4302', None, None, None, None, None, None, None, '3272223') ('4302', '24846464', '1371630184', None, None, None, None, None, '3272223') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '24846464', '1371630417', '0.021010002508206733', None, None, None, None, '3272223'), ('4302', '24846464', '1371630384', '0.021010002508206733', None, None, None, None, '3272223'), ('4302', '24846464', '1371630308', '0.021010002508206733', None, None, None, None, '3272223'), ('4302', '24846464', '1371630245', '0.021010002508206733', None, None, None, None, '3272223'), ('4302', '24846464', '1371630184', '0.021010002508206733', None, None, None, None, '3272223')] time used for this insertion : 0.012459516525268555 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07546758651733398 time spend to save output : 0.012877225875854492 total time spend for step 2 : 0.08834481239318848 step3:velours_tree Fri Jul 11 18:02: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 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 : {24846464: [{'flou': 24846528, 'autre_refus': 24846529, 'plastique': 24846530, 'kraft': 24846531, 'cartonnette': 24846532, 'papier': 24846533, 'metal': 24846534, 'Carton_brun': 24846535, 'mal_croppe': 24846536, 'Teint_Dans_La_Masse': 24846537, 'environnement': 24846538, 'Carton_gris': 24846539}]} input_args_next_step : {24846464: ()} output_args : {24846464: [{'flou': 24846528, 'autre_refus': 24846529, 'plastique': 24846530, 'kraft': 24846531, 'cartonnette': 24846532, 'papier': 24846533, 'metal': 24846534, 'Carton_brun': 24846535, 'mal_croppe': 24846536, 'Teint_Dans_La_Masse': 24846537, 'environnement': 24846538, 'Carton_gris': 24846539}]} args : 24846464 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 : ({'flou': 24846528, 'autre_refus': 24846529, 'plastique': 24846530, 'kraft': 24846531, 'cartonnette': 24846532, 'papier': 24846533, 'metal': 24846534, 'Carton_brun': 24846535, 'mal_croppe': 24846536, 'Teint_Dans_La_Masse': 24846537, 'environnement': 24846538, 'Carton_gris': 24846539},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24846464) 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([24846464]) 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.3123743534088135 time spend to save output : 4.744529724121094e-05 total time spend for step 3 : 0.3124217987060547 step4:send_mail_cod Fri Jul 11 18:02: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 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 : {1371630417: ('0.021010002508206733',), 1371630384: ('0.021010002508206733',), 1371630308: ('0.021010002508206733',), 1371630245: ('0.021010002508206733',), 1371630184: ('0.021010002508206733',)} input_args_next_step : {1371630417: ()} output_args : {1371630417: ('0.021010002508206733',), 1371630384: ('0.021010002508206733',), 1371630308: ('0.021010002508206733',), 1371630245: ('0.021010002508206733',), 1371630184: ('0.021010002508206733',)} args : 1371630417 depend.output_id : 0 input_args_next_step : {1371630417: ('0.021010002508206733',), 1371630384: ()} output_args : {1371630417: ('0.021010002508206733',), 1371630384: ('0.021010002508206733',), 1371630308: ('0.021010002508206733',), 1371630245: ('0.021010002508206733',), 1371630184: ('0.021010002508206733',)} args : 1371630384 depend.output_id : 0 input_args_next_step : {1371630417: ('0.021010002508206733',), 1371630384: ('0.021010002508206733',), 1371630308: ()} output_args : {1371630417: ('0.021010002508206733',), 1371630384: ('0.021010002508206733',), 1371630308: ('0.021010002508206733',), 1371630245: ('0.021010002508206733',), 1371630184: ('0.021010002508206733',)} args : 1371630308 depend.output_id : 0 input_args_next_step : {1371630417: ('0.021010002508206733',), 1371630384: ('0.021010002508206733',), 1371630308: ('0.021010002508206733',), 1371630245: ()} output_args : {1371630417: ('0.021010002508206733',), 1371630384: ('0.021010002508206733',), 1371630308: ('0.021010002508206733',), 1371630245: ('0.021010002508206733',), 1371630184: ('0.021010002508206733',)} args : 1371630245 depend.output_id : 0 input_args_next_step : {1371630417: ('0.021010002508206733',), 1371630384: ('0.021010002508206733',), 1371630308: ('0.021010002508206733',), 1371630245: ('0.021010002508206733',), 1371630184: ()} output_args : {1371630417: ('0.021010002508206733',), 1371630384: ('0.021010002508206733',), 1371630308: ('0.021010002508206733',), 1371630245: ('0.021010002508206733',), 1371630184: ('0.021010002508206733',)} args : 1371630184 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 : {24846464: [{'flou': 24846528, 'autre_refus': 24846529, 'plastique': 24846530, 'kraft': 24846531, 'cartonnette': 24846532, 'papier': 24846533, 'metal': 24846534, 'Carton_brun': 24846535, 'mal_croppe': 24846536, 'Teint_Dans_La_Masse': 24846537, 'environnement': 24846538, 'Carton_gris': 24846539}]} input_args_next_step : {1371630417: ('0.021010002508206733',), 1371630384: ('0.021010002508206733',), 1371630308: ('0.021010002508206733',), 1371630245: ('0.021010002508206733',), 1371630184: ('0.021010002508206733',), 24846464: ()} output_args : {24846464: [{'flou': 24846528, 'autre_refus': 24846529, 'plastique': 24846530, 'kraft': 24846531, 'cartonnette': 24846532, 'papier': 24846533, 'metal': 24846534, 'Carton_brun': 24846535, 'mal_croppe': 24846536, 'Teint_Dans_La_Masse': 24846537, 'environnement': 24846538, 'Carton_gris': 24846539}]} args : 24846464 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 :6, first value : ('0.021010002508206733',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24846464) 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 (1371630417,1371630384,1371630308,1371630245,1371630184) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371630184 begin to download photo : 1371630308 begin to download photo : 1371630417 download finish for photo 1371630308 begin to download photo : 1371630384 download finish for photo 1371630184 begin to download photo : 1371630245 download finish for photo 1371630417 download finish for photo 1371630384 download finish for photo 1371630245 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette248465281752249778/ length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P24846464_11-07-2025_18_02_58.pdf 24846528 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=24846528 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248465281752249778 24846529 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=24846529 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371627317: '1752249126_2551441_1371626539_9b687890aab5a1c89f09b1be71925e73_rle_crop_3879948940_0.png', 1371627319: '1752249126_2551441_1371626537_5d86808d2fa7da8e5a96e2122d0c1bda_rle_crop_3879948957_0.png', 1371627320: '1752249126_2551441_1371626494_ddead3fd465a277c1db00c63bd3d531b_rle_crop_3879948975_0.png', 1371627321: '1752249126_2551441_1371626493_9f8cf32804d7cb0c211554d304d6cf43_rle_crop_3879948992_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/0892eb2fdc21b750c66eaebbf160bd0b_14285142.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/0892eb2fdc21b750c66eaebbf160bd0b_15720959.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/2578822e1216663348ad0ced20467615_44999635.png change filename to text .imagette248465291752249778/ imagette248465291752249778/1752249126_2551441_1371626537_5d86808d2fa7da8e5a96e2122d0c1bda_rle_crop_3879948957_0.png.png imagette248465291752249778/1752249126_2551441_1371626494_ddead3fd465a277c1db00c63bd3d531b_rle_crop_3879948975_0.png.png imagette248465291752249778/1752249126_2551441_1371626493_9f8cf32804d7cb0c211554d304d6cf43_rle_crop_3879948992_0.png.png imagette248465291752249778/1752249126_2551441_1371626539_9b687890aab5a1c89f09b1be71925e73_rle_crop_3879948940_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/2578822e1216663348ad0ced20467615_29364001.png imagette248465291752249778 24846530 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=24846530 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371627383: '1752249205_1293702_1371626842_c253782aeeb9e8ec2fd4fc610a7852ab_rle_crop_3879954412_0.png', 1371627926: '1752249365_2559820_1371627325_2364040d6d8b8475fd95a986a7423d98_rle_crop_3879958525_0.png', 1371627929: '1752249365_2559820_1371627315_ae45daa1b26e43fc415e426e04f823a4_rle_crop_3879958564_0.png', 1371628204: '1752249447_1297174_1371627603_599362c578e4bef9bae5d8f8b6ec69b1_rle_crop_3879967367_0.png', 1371630800: '1752249637_2592985_1371627278_4b7c0ad9f518a343042f2c3f9968981c_rle_crop_3879971729_0.png', 1371630802: '1752249637_2592985_1371627240_67917c6674ef5596a6d5d1bc06e8f187_rle_crop_3879971799_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/a9a173fa4ee4831443f04a4717861e7c_84393965.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/aa314420378b49b602fc40b1ec899704_49841682.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/e44907c4c56ea67650ae24060252b122_85140692.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/e514bc30da9f18da39d6cb6332141f64_18304789.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/e1dc7f8c001dedfca7f66665b148813b_86842935.png change filename to text .imagette248465301752249779/ imagette248465301752249779/1752249365_2559820_1371627325_2364040d6d8b8475fd95a986a7423d98_rle_crop_3879958525_0.png.png imagette248465301752249779/1752249637_2592985_1371627240_67917c6674ef5596a6d5d1bc06e8f187_rle_crop_3879971799_0.png.png imagette248465301752249779/1752249205_1293702_1371626842_c253782aeeb9e8ec2fd4fc610a7852ab_rle_crop_3879954412_0.png.png imagette248465301752249779/1752249637_2592985_1371627278_4b7c0ad9f518a343042f2c3f9968981c_rle_crop_3879971729_0.png.png imagette248465301752249779/1752249447_1297174_1371627603_599362c578e4bef9bae5d8f8b6ec69b1_rle_crop_3879967367_0.png.png imagette248465301752249779/1752249365_2559820_1371627315_ae45daa1b26e43fc415e426e04f823a4_rle_crop_3879958564_0.png.png imagette248465311752249779/ imagette248465321752249779/ imagette248465341752249779/ imagette248465361752249779/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/d4c293a31163b510290447c7559b190f_42582951.png imagette248465301752249779 24846531 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=24846531 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248465311752249779 24846532 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=24846532 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248465321752249779 24846534 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=24846534 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248465341752249779 24846536 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=24846536 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248465361752249779 24846535 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=24846535 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371627056: '1752249087_1290834_1371625174_a90b5cdb07a6f38bd1c51b3a3965ddae_rle_crop_3879948325_0.png', 1371627060: '1752249087_1290834_1371625157_c09d00beccf8d98e524b449525aa647a_rle_crop_3879948342_0.png', 1371627062: '1752249087_1290834_1371625147_35b55f088c13358555e9cf1db8f19846_rle_crop_3879948409_0.png', 1371630379: '1752249607_2572248_1371627486_783891d0afa35ed471f96b4091a93423_rle_crop_3879971415_0.png', 1371631202: '1752249685_2597675_1371625786_2994e4c27885497b72e316fe633f0617_rle_crop_3879974983_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/e90345608b6e73bcb6d88bd341c64549_95266792.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/a491d3e6bda41e64aa4e60b0f5f07ba4_36329156.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/f3a930759b93edf57ad5065442d1f247_32939077.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/f762d159aca1ae5eb5454c936903509a_1749689.png change filename to text .imagette248465351752249779/ imagette248465351752249779/1752249607_2572248_1371627486_783891d0afa35ed471f96b4091a93423_rle_crop_3879971415_0.png.png imagette248465351752249779/1752249087_1290834_1371625174_a90b5cdb07a6f38bd1c51b3a3965ddae_rle_crop_3879948325_0.png.png imagette248465351752249779/1752249087_1290834_1371625147_35b55f088c13358555e9cf1db8f19846_rle_crop_3879948409_0.png.png imagette248465351752249779/1752249685_2597675_1371625786_2994e4c27885497b72e316fe633f0617_rle_crop_3879974983_0.png.png imagette248465351752249779/1752249087_1290834_1371625157_c09d00beccf8d98e524b449525aa647a_rle_crop_3879948342_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/acfe5ed743d8c268273ffd45198b2910_70334684.png imagette248465351752249779 24846537 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=24846537 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371626809: '1752249007_2548279_1371625464_b38ae7fb9240444da933316ea17b5e28_rle_crop_3879947896_0.png', 1371626810: '1752249007_2548279_1371625464_b38ae7fb9240444da933316ea17b5e28_rle_crop_3879947891_0.png', 1371626811: '1752249007_2548279_1371625415_e8f074cbcc4d43517a4d47d69ca0c517_rle_crop_3879947915_0.png', 1371626812: '1752249007_2548279_1371625415_e8f074cbcc4d43517a4d47d69ca0c517_rle_crop_3879947912_0.png', 1371626813: '1752249007_2548279_1371625363_7d0930c1ff1c5b2050afff63248611a2_rle_crop_3879947933_0.png', 1371626814: '1752249007_2548279_1371625363_7d0930c1ff1c5b2050afff63248611a2_rle_crop_3879947934_0.png', 1371626815: '1752249007_2548279_1371625309_c665ffb57def6567279447828efdcb4e_rle_crop_3879947950_0.png', 1371626816: '1752249007_2548279_1371625309_c665ffb57def6567279447828efdcb4e_rle_crop_3879947948_0.png', 1371626817: '1752249007_2548279_1371625279_e9045368bda6225ff3509364032ffdfe_rle_crop_3879947963_0.png', 1371626819: '1752249007_2548279_1371625279_e9045368bda6225ff3509364032ffdfe_rle_crop_3879947968_0.png', 1371626820: '1752249007_2548279_1371625251_e5f223bc281d3f85c5f2af5739be905c_rle_crop_3879947989_0.png', 1371626821: '1752249007_2548279_1371625251_e5f223bc281d3f85c5f2af5739be905c_rle_crop_3879947982_0.png', 1371626822: '1752249007_2548279_1371625114_f9cd12e61613f8e484a9336f81a55e3c_rle_crop_3879948003_0.png', 1371626823: '1752249007_2548279_1371625114_f9cd12e61613f8e484a9336f81a55e3c_rle_crop_3879947998_0.png', 1371626824: '1752249007_2548279_1371625106_52a2f510812e50213c30ea5f417d6fc5_rle_crop_3879948022_0.png', 1371626825: '1752249007_2548279_1371625106_52a2f510812e50213c30ea5f417d6fc5_rle_crop_3879948019_0.png', 1371626826: '1752249007_2548279_1371625097_39e94888c1739ace2c0cd4b36e47db2e_rle_crop_3879948040_0.png', 1371626828: '1752249007_2548279_1371625097_39e94888c1739ace2c0cd4b36e47db2e_rle_crop_3879948041_0.png', 1371626829: '1752249007_2548279_1371625065_0b6234ab8afd3ccb25d9b13af5492029_rle_crop_3879948057_0.png', 1371626830: '1752249007_2548279_1371625065_0b6234ab8afd3ccb25d9b13af5492029_rle_crop_3879948055_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/765640547127a18353b44bca6a8f8f9c_75888602.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/204c067dfa9c855246e7d4271aa8732c_78768075.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/83ca5fee31739caff692fc5398d8ebac_83520712.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/661144176f4ef38797da934fe8643a74_71770652.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/bcd81f1dbd670349d1f66e9c4571507b_34376408.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/3173cc5c700f759ffda5a2c002bb466e_6067111.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/505d89b8a8fcf66b981ed5bdf6f7c854_18147318.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/d5b6a7e2ca73160f6bce7bdc6890b6e8_12893834.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/59aa3ef0e5247cabb841314dd6e63c2e_35421030.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/612a6afd279aab48629f9130ce956d35_4161864.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/b1d2006b7f96709a515bcba3fc174837_56136740.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/47318a262f76bc1c2dc176d8396ec5a1_61769052.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/765640547127a18353b44bca6a8f8f9c_42411758.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/204c067dfa9c855246e7d4271aa8732c_95366864.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/83ca5fee31739caff692fc5398d8ebac_47348817.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/661144176f4ef38797da934fe8643a74_10176498.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/bcd81f1dbd670349d1f66e9c4571507b_46145958.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/3173cc5c700f759ffda5a2c002bb466e_48084163.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/505d89b8a8fcf66b981ed5bdf6f7c854_57044464.png change filename to text .imagette248465371752249779/ imagette248465371752249779/1752249007_2548279_1371625363_7d0930c1ff1c5b2050afff63248611a2_rle_crop_3879947933_0.png.png imagette248465371752249779/1752249007_2548279_1371625065_0b6234ab8afd3ccb25d9b13af5492029_rle_crop_3879948055_0.png.png imagette248465371752249779/1752249007_2548279_1371625106_52a2f510812e50213c30ea5f417d6fc5_rle_crop_3879948022_0.png.png imagette248465371752249779/1752249007_2548279_1371625114_f9cd12e61613f8e484a9336f81a55e3c_rle_crop_3879948003_0.png.png imagette248465371752249779/1752249007_2548279_1371625309_c665ffb57def6567279447828efdcb4e_rle_crop_3879947948_0.png.png imagette248465371752249779/1752249007_2548279_1371625279_e9045368bda6225ff3509364032ffdfe_rle_crop_3879947963_0.png.png imagette248465371752249779/1752249007_2548279_1371625251_e5f223bc281d3f85c5f2af5739be905c_rle_crop_3879947989_0.png.png imagette248465371752249779/1752249007_2548279_1371625464_b38ae7fb9240444da933316ea17b5e28_rle_crop_3879947891_0.png.png imagette248465371752249779/1752249007_2548279_1371625097_39e94888c1739ace2c0cd4b36e47db2e_rle_crop_3879948041_0.png.png imagette248465371752249779/1752249007_2548279_1371625114_f9cd12e61613f8e484a9336f81a55e3c_rle_crop_3879947998_0.png.png imagette248465371752249779/1752249007_2548279_1371625363_7d0930c1ff1c5b2050afff63248611a2_rle_crop_3879947934_0.png.png imagette248465371752249779/1752249007_2548279_1371625309_c665ffb57def6567279447828efdcb4e_rle_crop_3879947950_0.png.png imagette248465371752249779/1752249007_2548279_1371625106_52a2f510812e50213c30ea5f417d6fc5_rle_crop_3879948019_0.png.png imagette248465371752249779/1752249007_2548279_1371625415_e8f074cbcc4d43517a4d47d69ca0c517_rle_crop_3879947915_0.png.png imagette248465371752249779/1752249007_2548279_1371625065_0b6234ab8afd3ccb25d9b13af5492029_rle_crop_3879948057_0.png.png imagette248465371752249779/1752249007_2548279_1371625097_39e94888c1739ace2c0cd4b36e47db2e_rle_crop_3879948040_0.png.png imagette248465371752249779/1752249007_2548279_1371625251_e5f223bc281d3f85c5f2af5739be905c_rle_crop_3879947982_0.png.png imagette248465371752249779/1752249007_2548279_1371625464_b38ae7fb9240444da933316ea17b5e28_rle_crop_3879947896_0.png.png imagette248465371752249779/1752249007_2548279_1371625279_e9045368bda6225ff3509364032ffdfe_rle_crop_3879947968_0.png.png imagette248465371752249779/1752249007_2548279_1371625415_e8f074cbcc4d43517a4d47d69ca0c517_rle_crop_3879947912_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/d5b6a7e2ca73160f6bce7bdc6890b6e8_46842544.png imagette248465371752249779 24846539 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=24846539 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371626835: '1752249007_2548279_1371625279_e9045368bda6225ff3509364032ffdfe_rle_crop_3879947961_0.png', 1371626836: '1752249007_2548279_1371625032_e4f09c1148226f0e55101d8b51f85d5d_rle_crop_3879948068_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/56ace62496469521861a1781b316641c_8029967.png change filename to text .imagette248465391752249780/ imagette248465391752249780/1752249007_2548279_1371625279_e9045368bda6225ff3509364032ffdfe_rle_crop_3879947961_0.png.png imagette248465391752249780/1752249007_2548279_1371625032_e4f09c1148226f0e55101d8b51f85d5d_rle_crop_3879948068_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/56ace62496469521861a1781b316641c_81344301.png imagette248465391752249780 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24846464 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24846541,24846542,24846543,24846544,24846545,24846546,24846547,24846548,24846549,24846550,24846551,24846552?tags=flou,autre_refus,plastique,kraft,cartonnette,papier,metal,Carton_brun,mal_croppe,Teint_Dans_La_Masse,environnement,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1371630417] : ('0.021010002508206733',) no score found for photo 1371630417 We are sending mail with results at report@fotonower.com args[1371630384] : ('0.021010002508206733',) no score found for photo 1371630384 We are sending mail with results at report@fotonower.com args[1371630308] : ('0.021010002508206733',) no score found for photo 1371630308 We are sending mail with results at report@fotonower.com args[1371630245] : ('0.021010002508206733',) no score found for photo 1371630245 We are sending mail with results at report@fotonower.com args[1371630184] : ('0.021010002508206733',) no score found for photo 1371630184 We are sending mail with results at report@fotonower.com refus_total : 0.021010002508206733 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=24846464 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_P24846464_11-07-2025_18_02_58.pdf results_Auto_P24846464_11-07-2025_18_02_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24846464_11-07-2025_18_02_58.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','24846464','results_Auto_P24846464_11-07-2025_18_02_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24846464_11-07-2025_18_02_58.pdf','pdf','','0.12','0.021010002508206733') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24846464]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371630417, 1371630384, 1371630308, 1371630245, 1371630184] map_info['map_portfolio_photo'] : {24846464: [1371630417, 1371630384, 1371630308, 1371630245, 1371630184, 1371629968, 1371629887, 1371629813, 1371629733, 1371629657, 1371629561, 1371628387, 1371628354, 1371628324, 1371628288, 1371628258, 1371628228, 1371628155, 1371628152, 1371628148, 1371628142, 1371628114, 1371628090, 1371627708, 1371627680, 1371627655, 1371627629, 1371627603, 1371627572, 1371627501, 1371627496, 1371627491, 1371627486, 1371627480, 1371627475, 1371627411, 1371627405, 1371627399, 1371627394, 1371627390, 1371627388, 1371627329, 1371627327, 1371627325, 1371627322, 1371627315, 1371627288, 1371627278, 1371627271, 1371627265, 1371627259, 1371627240, 1371627210, 1371626857, 1371626852, 1371626848, 1371626846, 1371626842, 1371626839, 1371626741, 1371626738, 1371626735, 1371626731, 1371626727, 1371626722, 1371626660, 1371626657, 1371626629, 1371626625, 1371626591, 1371626589, 1371626539, 1371626537, 1371626494, 1371626493, 1371626447, 1371626444, 1371625857, 1371625817, 1371625786, 1371625757, 1371625726, 1371625681, 1371625464, 1371625415, 1371625363, 1371625309, 1371625279, 1371625251, 1371625174, 1371625157, 1371625156, 1371625149, 1371625148, 1371625147, 1371625114, 1371625106, 1371625097, 1371625065, 1371625032, 1371625004]} final : False mtd_id 4302 list_pids : [1371630417, 1371630384, 1371630308, 1371630245, 1371630184] 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, '3272223') ('4302', '24846464', '1371630417', None, None, None, None, None, '3272223') ('4302', None, None, None, None, None, None, None, '3272223') ('4302', '24846464', '1371630384', None, None, None, None, None, '3272223') ('4302', None, None, None, None, None, None, None, '3272223') ('4302', '24846464', '1371630308', None, None, None, None, None, '3272223') ('4302', None, None, None, None, None, None, None, '3272223') ('4302', '24846464', '1371630245', None, None, None, None, None, '3272223') ('4302', None, None, None, None, None, None, None, '3272223') ('4302', '24846464', '1371630184', None, None, None, None, None, '3272223') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '24846464', '1371630417', None, None, None, None, None, '3272223'), ('4302', '24846464', '1371630384', None, None, None, None, None, '3272223'), ('4302', '24846464', '1371630308', None, None, None, None, None, '3272223'), ('4302', '24846464', '1371630245', None, None, None, None, None, '3272223'), ('4302', '24846464', '1371630184', None, None, None, None, None, '3272223')] time used for this insertion : 0.011956453323364258 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.3092851638793945 time spend to save output : 0.012159347534179688 total time spend for step 4 : 3.321444511413574 step5:split_time_score Fri Jul 11 18:03:02 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 : ['24846464'] 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 : [('24846464',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24846464) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371630417: {'path': 'temp/1752249778_3985873_1371630417_842d71855fdac433120eedbaf62be938.jpg', 'extension': 'jpg'}, 1371630308: {'path': 'temp/1752249778_3985873_1371630308_463934fc09482e88aea64ba0f78b6aa2.jpg', 'extension': 'jpg'}, 1371630384: {'path': 'temp/1752249778_3985873_1371630384_c2b62e88b1cf5f28d5d3bd622c9e3467.jpg', 'extension': 'jpg'}, 1371630184: {'path': 'temp/1752249778_3985873_1371630184_eb89682b6ea5ef69edbebf6cbab99046.jpg', 'extension': 'jpg'}, 1371630245: {'path': 'temp/1752249778_3985873_1371630245_ba4b89717f4dbd24d80e0ecba12aac05.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 = 24846464; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('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 = 24846464 group by h (('17', 101),) 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=24846464 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 (24846464) 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 (24846464) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11072025 24846464 Nombre de photos uploadées : 101 / 23040 (0%) 11072025 24846464 Nombre de photos taguées (types de déchets): 0 / 101 (0%) 11072025 24846464 Nombre de photos taguées (volume) : 0 / 101 (0%) [{'photo_id': 1371625114, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/f9cd12e61613f8e484a9336f81a55e3c.jpg', 'username': None, 'uploaded_at': 1752248763, 'text': 'image_11072025_17_45_03_009136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371625464, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/b38ae7fb9240444da933316ea17b5e28.jpg', 'username': None, 'uploaded_at': 1752248863, 'text': 'image_11072025_17_45_03_009136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371625106, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/52a2f510812e50213c30ea5f417d6fc5.jpg', 'username': None, 'uploaded_at': 1752248763, 'text': 'image_11072025_17_45_13_010141m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371625415, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/11/e8f074cbcc4d43517a4d47d69ca0c517.jpg', 'username': None, 'uploaded_at': 1752248863, 'text': 'image_11072025_17_45_13_010141m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ????????????????????????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.005181550979614258 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24846464, '2025-07-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1968545,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02186274528503418 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= 1968545 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24815712, 'dashboard_result_id': 12420348, '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_P24815712_11-07-2025_06_26_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24815713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24815714, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24815715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24815716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24815717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24815718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24815719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24815720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24815721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24815722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24815723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24815724, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24815891, 'dashboard_result_id': 12420349, '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_P24815891_11-07-2025_06_27_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24815922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24815923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24815924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24815925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24815926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24815927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24815928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24815929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24815930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24815931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24815932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24815933, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24816337, 'dashboard_result_id': 12420350, '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_P24816337_11-07-2025_06_28_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24816342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24816343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24816344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24816345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24816346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24816347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24816348, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24816349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24816350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24816351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24816352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24816353, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24816682, 'dashboard_result_id': 12420351, '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_P24816682_11-07-2025_06_28_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24816733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24816734, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24816735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24816736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24816737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24816738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24816739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24816740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24816741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24816742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24816743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24816744, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24817118, 'dashboard_result_id': 12420352, '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_P24817118_11-07-2025_06_29_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24817145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24817146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24817147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24817148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24817149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24817150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24817151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24817152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24817153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24817154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24817155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24817156, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24817531, 'dashboard_result_id': 12420353, '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_P24817531_11-07-2025_02_09_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24817585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24817586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24817587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24817588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24817589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24817591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24817592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24817593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24817594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24817595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24817596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24817597, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24819467, 'dashboard_result_id': 12420354, '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_P24819467_11-07-2025_06_30_43.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24819496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24819497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24819498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24819499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24819500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24819501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24819502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24819503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24819504, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24819505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24819506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24819507, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24819665, 'dashboard_result_id': 12420355, '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_P24819665_11-07-2025_06_31_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24819672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24819673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24819674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24819675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24819676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24819677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24819678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24819679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24819680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24819681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24819682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24819683, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24819958, 'dashboard_result_id': 12420356, '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_P24819958_11-07-2025_06_31_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24819988, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24819989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24819990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24819991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24819992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24819993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24819994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24819995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24819996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24819997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24819998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24819999, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24820502, 'dashboard_result_id': 12420357, '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_P24820502_11-07-2025_06_32_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24820528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24820529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24820530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24820531, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24820532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24820533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24820534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24820535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24820536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24820537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24820538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24820539, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24820893, 'dashboard_result_id': 12420358, '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_P24820893_11-07-2025_03_28_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24820897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24820898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24820899, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24820900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24820901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24820902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24820903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24820904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24820905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24820906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24820907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24820908, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24821283, 'dashboard_result_id': 12420359, '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_P24821283_11-07-2025_04_07_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24821289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24821290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24821291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24821292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24821293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24821294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24821295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24821296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24821297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24821298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24821299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24821300, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24821562, 'dashboard_result_id': 12420360, '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_P24821562_11-07-2025_06_33_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24821568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24821569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24821570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24821571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24821572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24821573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24821574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24821575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24821576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24821577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24821578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24821579, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24821811, 'dashboard_result_id': 12420361, '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_P24821811_11-07-2025_06_34_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24821818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24821819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24821820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24821821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24821822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24821823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24821824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24821825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24821826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24821827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24821828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24821829, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24822776, 'dashboard_result_id': 12420362, '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_P24822776_11-07-2025_06_34_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24822780, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24822781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24822782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24822783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24822784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24822785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24822786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24822787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24822788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24822789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24822790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24822791, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24823015, 'dashboard_result_id': 12420363, '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_P24823015_11-07-2025_06_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24823024, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24823025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24823026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24823027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24823028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24823029, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24823030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24823031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24823032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24823033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24823034, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24823035, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24823508, 'dashboard_result_id': 12420364, '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_P24823508_11-07-2025_06_35_41.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24823559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24823560, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24823561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24823562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24823563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24823564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24823565, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24823566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24823567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24823568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24823569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24823570, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24823872, 'dashboard_result_id': 12420365, '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_P24823872_11-07-2025_05_12_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24823901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24823902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24823903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24823904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24823905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24823906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24823907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24823908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24823909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24823910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24823911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24823912, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24824345, 'dashboard_result_id': 12420366, '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_P24824345_11-07-2025_05_26_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24824396, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24824397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24824398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24824399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24824400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24824401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24824402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24824403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24824404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24824405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24824406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24824407, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24824610, 'dashboard_result_id': 12420367, '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_P24824610_11-07-2025_06_42_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24824641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24824642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24824643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24824644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24824645, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24824646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24824647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24824648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24824649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24824650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24824651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24824652, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24825008, 'dashboard_result_id': 12420368, '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_P24825008_11-07-2025_05_54_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24825012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24825013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24825014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24825015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24825016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24825017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24825018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24825019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24825020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24825021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24825022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24825023, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24825438, 'dashboard_result_id': 12420369, '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_P24825438_11-07-2025_06_13_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24825444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24825445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24825446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24825447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24825448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24825449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24825450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24825451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24825452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24825453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24825454, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24825455, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24826213, 'dashboard_result_id': 12420370, '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_P24826213_11-07-2025_06_22_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24826218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24826219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24826220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24826221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24826222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24826223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24826224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24826225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24826226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24826227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24826228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24826229, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24826670, 'dashboard_result_id': 12420371, '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_P24826670_11-07-2025_06_41_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24826673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24826674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24826675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24826676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24826677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24826678, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24826679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24826680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24826681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24826682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24826683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24826684, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24827152, 'dashboard_result_id': 12420372, '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_P24827152_11-07-2025_06_59_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24827156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24827157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24827158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24827159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24827160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24827161, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24827162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24827163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24827164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24827165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24827166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24827167, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24827594, 'dashboard_result_id': 12420373, '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_P24827594_11-07-2025_08_31_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24827596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24827597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24827598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24827599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24827600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24827601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24827602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24827603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24827604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24827605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24827606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24827607, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24828045, 'dashboard_result_id': 12420374, '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_P24828045_11-07-2025_07_29_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24828053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24828054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24828055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24828056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24828057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24828058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24828059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24828060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24828061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24828062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24828063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24828064, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24828407, 'dashboard_result_id': 12420375, '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_P24828407_11-07-2025_07_42_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24828422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24828423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24828424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24828425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24828426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24828427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24828428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24828429, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24828430, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24828431, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24828432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24828433, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24828837, 'dashboard_result_id': 12420376, '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_P24828837_11-07-2025_07_56_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24828840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24828841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24828842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24828843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24828844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24828845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24828846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24828847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24828848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24828849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24828850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24828851, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24829383, 'dashboard_result_id': 12420377, '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_P24829383_11-07-2025_08_10_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24829412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24829413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24829414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24829415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24829416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24829417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24829418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24829419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24829420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24829421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24829422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24829423, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24830294, 'dashboard_result_id': 12420378, '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_P24830294_11-07-2025_08_26_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24830296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24830297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24830298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24830299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24830300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24830301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24830302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24830303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24830304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24830305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24830306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24830307, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24830795, 'dashboard_result_id': 12420379, '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_P24830795_11-07-2025_08_44_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24830800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24830801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24830802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24830803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24830804, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24830805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24830806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24830807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24830808, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24830809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24830810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24830811, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24831165, 'dashboard_result_id': 12420380, '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_P24831165_11-07-2025_08_54_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24831195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24831196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24831197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24831198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24831199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24831200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24831201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24831202, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24831203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24831204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24831205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24831206, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24831607, 'dashboard_result_id': 12420381, '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_P24831607_11-07-2025_10_02_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24831637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24831638, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24831639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24831640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24831641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24831642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24831643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24831644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24831645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24831646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24831647, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24831648, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24832313, 'dashboard_result_id': 12420382, '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_P24832313_11-07-2025_10_01_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24832323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24832324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24832325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24832326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24832327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24832328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24832329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24832330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24832331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24832332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24832333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24832334, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24832723, 'dashboard_result_id': 12420383, '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_P24832723_11-07-2025_10_00_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24832728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24832729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24832730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24832731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24832732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24832733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24832734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24832735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24832736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24832737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24832738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24832739, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24833156, 'dashboard_result_id': 12420384, '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_P24833156_11-07-2025_10_00_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24833165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24833166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24833167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24833168, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24833169, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24833171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24833172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24833173, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24833174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24833175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24833176, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24833177, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24833688, 'dashboard_result_id': 12420385, '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_P24833688_11-07-2025_10_12_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24833693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24833694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24833695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24833696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24833697, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24833698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24833699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24833700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24833701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24833702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24833703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24833704, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24834372, 'dashboard_result_id': 12420386, '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_P24834372_11-07-2025_10_29_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24834378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24834379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24834380, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24834381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24834382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24834383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24834384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24834385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24834386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24834387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24834388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24834389, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24834724, 'dashboard_result_id': 12420387, '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_P24834724_11-07-2025_10_59_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24834755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24834756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24834757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24834758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24834759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24834760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24834761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24834762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24834763, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24834764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24834765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24834766, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24835205, 'dashboard_result_id': 12420388, '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_P24835205_11-07-2025_10_59_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24835212, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24835213, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24835214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24835215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24835216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24835217, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24835218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24835219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24835220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24835221, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24835222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24835223, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24835829, 'dashboard_result_id': 12420389, '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_P24835829_11-07-2025_11_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24835830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24835831, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24835832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24835833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24835834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24835835, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24835836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24835837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24835838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24835839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24835840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24835841, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24835926, 'dashboard_result_id': 12420390, '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_P24835926_11-07-2025_13_00_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24835935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24835936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24835937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24835939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24835940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24835941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24835942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24835943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24835944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24835945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24835946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24835947, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24836214, 'dashboard_result_id': 12420391, '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_P24836214_11-07-2025_13_00_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24836215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24836216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24836217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24836218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24836219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24836220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24836221, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24836222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24836223, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24836224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24836225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24836226, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24836530, 'dashboard_result_id': 12420392, '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_P24836530_11-07-2025_12_42_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24836534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24836535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24836536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24836537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24836538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24836539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24836540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24836541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24836542, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24836543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24836544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24836545, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24836795, 'dashboard_result_id': 12420393, '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_P24836795_11-07-2025_14_00_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24836800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24836801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24836802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24836803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24836804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24836805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24836806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24836807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24836808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24836809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24836810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24836811, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24837202, 'dashboard_result_id': 12420394, '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_P24837202_11-07-2025_14_00_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24837230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24837231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24837232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24837233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24837234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24837235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24837236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24837237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24837238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24837239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24837240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24837241, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24837424, 'dashboard_result_id': 12420395, '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_P24837424_11-07-2025_13_28_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24837428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24837429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24837430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24837431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24837432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24837433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24837434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24837435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24837436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24837437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24837438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24837439, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24837822, 'dashboard_result_id': 12420396, '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_P24837822_11-07-2025_13_44_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24837854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24837855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24837856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24837857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24837858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24837859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24837860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24837861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24837862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24837863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24837864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24837865, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24838225, 'dashboard_result_id': 12420397, '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_P24838225_11-07-2025_13_58_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24838228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24838229, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24838230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24838231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24838232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24838233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24838234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24838235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24838236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24838237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24838238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24838239, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24838679, 'dashboard_result_id': 12420398, '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_P24838679_11-07-2025_15_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24838791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24838792, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24838793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24838794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24838795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24838796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24838797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24838798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24838799, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24838800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24838801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24838802, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24839128, 'dashboard_result_id': 12420399, '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_P24839128_11-07-2025_15_00_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24839133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24839134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24839135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24839136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24839137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24839138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24839139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24839140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24839141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24839142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24839143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24839144, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24839547, 'dashboard_result_id': 12420400, '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_P24839547_11-07-2025_14_59_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24839552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24839553, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24839554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24839555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24839556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24839557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24839558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24839559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24839560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24839561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24839562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24839563, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24839971, 'dashboard_result_id': 12420401, '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_P24839971_11-07-2025_16_02_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24839974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24839975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24839976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24839977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24839978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24839979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24839980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24839981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24839982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24839983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24839984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24839985, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24841386, 'dashboard_result_id': 12420402, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'papier': {'hashtag': 'papier', 'sub_port_id': 24841703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24841704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24841705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24841706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24841707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24841708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24841709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24841710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24841711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24841712, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24841713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24841714, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24841391, 'dashboard_result_id': 12420403, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24841537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24841538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24841539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24841540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24841541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24841542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24841543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24841545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24841546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24841547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24841548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24841549, 'pht': 3726}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24841391_11-07-2025_18_02_02.pdf'}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24841395, 'dashboard_result_id': 12420404, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24841451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24841452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24841453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24841454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24841455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24841456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24841457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24841458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24841459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24841460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24841461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24841462, 'pht': 3726}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24841395_11-07-2025_18_02_30.pdf'}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24840651, 'dashboard_result_id': 12420405, '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_P24840651_11-07-2025_18_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24840936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24840937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24840938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24840939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24840940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24840941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24840942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24840943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24840944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24840945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24840946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24840947, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24840652, 'dashboard_result_id': 12420406, '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_P24840652_11-07-2025_17_01_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24840902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24840903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24840904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24840905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24840906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24840907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24840908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24840909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24840910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24840911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24840912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24840913, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24840653, 'dashboard_result_id': 12420407, '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_P24840653_11-07-2025_16_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24840688, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24840689, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24840690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24840691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24840692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24840693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24840694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24840695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24840696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24840697, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24840698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24840699, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24840654, 'dashboard_result_id': 12420408, '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_P24840654_11-07-2025_16_03_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24840659, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24840660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24840661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24840662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24840663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24840664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24840665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24840666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24840667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24840668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24840669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24840670, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24841729, 'dashboard_result_id': 12420409, '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_P24841729_11-07-2025_16_17_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24841837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24841838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24841839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24841840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24841841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24841842, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24841843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24841844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24841845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24841846, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24841847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24841848, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24842598, 'dashboard_result_id': 12420410, '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_P24842598_11-07-2025_16_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24842644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24842645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24842646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24842647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24842648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24842649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24842650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24842651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24842652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24842653, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24842654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24842655, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24843375, 'dashboard_result_id': 12420411, '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_P24843375_11-07-2025_16_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24843436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24843437, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24843438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24843439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24843440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24843441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24843442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24843443, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24843444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24843445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24843446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24843447, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24844059, 'dashboard_result_id': 12420412, '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_P24844059_11-07-2025_17_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24844084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24844085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24844086, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24844087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24844088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24844089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24844090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24844091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24844092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24844093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24844094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24844095, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24844602, 'dashboard_result_id': 12420413, '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_P24844602_11-07-2025_17_16_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24844634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24844635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24844636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24844637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24844638, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24844639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24844640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24844641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24844642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24844643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24844644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24844645, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24845214, 'dashboard_result_id': 12420414, '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_P24845214_11-07-2025_17_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24845244, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24845245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24845246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24845247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24845248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24845249, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24845250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24845251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24845252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24845253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24845254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24845255, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24845813, 'dashboard_result_id': 12420415, '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_P24845813_11-07-2025_17_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24845841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24845842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24845843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24845844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24845845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24845846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24845847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24845848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24845849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24845850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24845851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24845852, 'pht': 3726}}"}, {'dashboat_entry_day': 1968545, 'dashboard_run_id': 1978409, 'mtr_portfolio_id': 24846464, 'dashboard_result_id': 12420416, '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_P24846464_11-07-2025_18_01_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24846528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24846529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24846530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24846531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24846532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24846533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24846534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24846535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24846536, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24846537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24846538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24846539, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24815712 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': 3268938, 'mtr_portfolio_id': 24815712, 'created_at': datetime.datetime(2025, 7, 11, 6, 26, 28), 'result': '0.049912380163590786', 'result_long': None, 'result_double': None}] Qualite : 0.049912380163590786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24815712 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24815712_11-07-2025_06_26_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24815712 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_P24815712_11-07-2025_06_26_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24815713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24815714, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24815715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24815716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24815717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24815718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24815719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24815720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24815721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24815722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24815723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24815724, 'pht': 3726}}" where mtr_portfolio_id = 24815712 and dashboard_run_id = 1978409 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`=24815712 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420348, 0.049912380163590786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24815712_11-07-2025_06_26_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24815713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24815714, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24815715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24815716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24815717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24815718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24815719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24815720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24815721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24815722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24815723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24815724, '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 = 24815891 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': 3268939, 'mtr_portfolio_id': 24815891, 'created_at': datetime.datetime(2025, 7, 11, 6, 27, 28), 'result': '0.025760472045041973', 'result_long': None, 'result_double': None}] Qualite : 0.025760472045041973 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24815891 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24815891_11-07-2025_06_27_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24815891 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_P24815891_11-07-2025_06_27_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24815922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24815923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24815924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24815925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24815926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24815927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24815928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24815929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24815930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24815931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24815932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24815933, 'pht': 3726}}" where mtr_portfolio_id = 24815891 and dashboard_run_id = 1978409 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`=24815891 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420349, 0.025760472045041973, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24815891_11-07-2025_06_27_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24815922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24815923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24815924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24815925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24815926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24815927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24815928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24815929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24815930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24815931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24815932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24815933, '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 = 24816337 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': 3268940, 'mtr_portfolio_id': 24816337, 'created_at': datetime.datetime(2025, 7, 11, 6, 27, 59), 'result': '0.027852949998994996', 'result_long': None, 'result_double': None}] Qualite : 0.027852949998994996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24816337 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24816337_11-07-2025_06_28_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24816337 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_P24816337_11-07-2025_06_28_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24816342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24816343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24816344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24816345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24816346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24816347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24816348, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24816349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24816350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24816351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24816352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24816353, 'pht': 3726}}" where mtr_portfolio_id = 24816337 and dashboard_run_id = 1978409 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`=24816337 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420350, 0.027852949998994996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24816337_11-07-2025_06_28_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24816342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24816343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24816344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24816345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24816346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24816347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24816348, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24816349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24816350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24816351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24816352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24816353, '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 = 24816682 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': 3268941, 'mtr_portfolio_id': 24816682, 'created_at': datetime.datetime(2025, 7, 11, 6, 28, 28), 'result': '0.03206860266542557', 'result_long': None, 'result_double': None}] Qualite : 0.03206860266542557 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24816682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24816682_11-07-2025_06_28_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24816682 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_P24816682_11-07-2025_06_28_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24816733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24816734, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24816735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24816736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24816737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24816738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24816739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24816740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24816741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24816742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24816743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24816744, 'pht': 3726}}" where mtr_portfolio_id = 24816682 and dashboard_run_id = 1978409 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`=24816682 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420351, 0.03206860266542557, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24816682_11-07-2025_06_28_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24816733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24816734, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24816735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24816736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24816737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24816738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24816739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24816740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24816741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24816742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24816743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24816744, '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 = 24817118 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': 3268942, 'mtr_portfolio_id': 24817118, 'created_at': datetime.datetime(2025, 7, 11, 6, 29, 28), 'result': '0.010425005371970117', 'result_long': None, 'result_double': None}] Qualite : 0.010425005371970117 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24817118 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24817118_11-07-2025_06_29_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24817118 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_P24817118_11-07-2025_06_29_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24817145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24817146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24817147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24817148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24817149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24817150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24817151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24817152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24817153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24817154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24817155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24817156, 'pht': 3726}}" where mtr_portfolio_id = 24817118 and dashboard_run_id = 1978409 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`=24817118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420352, 0.010425005371970117, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24817118_11-07-2025_06_29_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24817145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24817146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24817147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24817148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24817149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24817150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24817151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24817152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24817153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24817154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24817155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24817156, '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 = 24817531 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 = 24817531 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24817531 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24817531_11-07-2025_02_09_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24817531 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_P24817531_11-07-2025_02_09_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24817585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24817586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24817587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24817588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24817589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24817591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24817592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24817593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24817594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24817595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24817596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24817597, 'pht': 3726}}" where mtr_portfolio_id = 24817531 and dashboard_run_id = 1978409 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 = 24819467 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': 3268944, 'mtr_portfolio_id': 24819467, 'created_at': datetime.datetime(2025, 7, 11, 6, 30, 39), 'result': '0.059141250511106226', 'result_long': None, 'result_double': None}] Qualite : 0.059141250511106226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24819467 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24819467_11-07-2025_06_30_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24819467 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_P24819467_11-07-2025_06_30_43.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24819496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24819497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24819498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24819499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24819500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24819501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24819502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24819503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24819504, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24819505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24819506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24819507, 'pht': 3726}}" where mtr_portfolio_id = 24819467 and dashboard_run_id = 1978409 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`=24819467 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420354, 0.059141250511106226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24819467_11-07-2025_06_30_43.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24819496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24819497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24819498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24819499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24819500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24819501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24819502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24819503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24819504, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24819505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24819506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24819507, '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 = 24819665 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': 3268945, 'mtr_portfolio_id': 24819665, 'created_at': datetime.datetime(2025, 7, 11, 6, 30, 59), 'result': '0.0315627221563395', 'result_long': None, 'result_double': None}] Qualite : 0.0315627221563395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24819665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24819665_11-07-2025_06_31_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24819665 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_P24819665_11-07-2025_06_31_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24819672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24819673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24819674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24819675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24819676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24819677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24819678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24819679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24819680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24819681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24819682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24819683, 'pht': 3726}}" where mtr_portfolio_id = 24819665 and dashboard_run_id = 1978409 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`=24819665 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420355, 0.0315627221563395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24819665_11-07-2025_06_31_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24819672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24819673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24819674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24819675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24819676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24819677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24819678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24819679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24819680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24819681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24819682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24819683, '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 = 24819958 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': 3268946, 'mtr_portfolio_id': 24819958, 'created_at': datetime.datetime(2025, 7, 11, 6, 31, 30), 'result': '0.03410946566970851', 'result_long': None, 'result_double': None}] Qualite : 0.03410946566970851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24819958 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24819958_11-07-2025_06_31_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24819958 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_P24819958_11-07-2025_06_31_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24819988, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24819989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24819990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24819991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24819992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24819993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24819994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24819995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24819996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24819997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24819998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24819999, 'pht': 3726}}" where mtr_portfolio_id = 24819958 and dashboard_run_id = 1978409 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`=24819958 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420356, 0.03410946566970851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24819958_11-07-2025_06_31_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24819988, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24819989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24819990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24819991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24819992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24819993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24819994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24819995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24819996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24819997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24819998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24819999, '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 = 24820502 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': 3268947, 'mtr_portfolio_id': 24820502, 'created_at': datetime.datetime(2025, 7, 11, 6, 31, 59), 'result': '0.03481196570706783', 'result_long': None, 'result_double': None}] Qualite : 0.03481196570706783 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24820502 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24820502_11-07-2025_06_32_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24820502 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_P24820502_11-07-2025_06_32_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24820528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24820529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24820530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24820531, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24820532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24820533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24820534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24820535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24820536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24820537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24820538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24820539, 'pht': 3726}}" where mtr_portfolio_id = 24820502 and dashboard_run_id = 1978409 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`=24820502 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420357, 0.03481196570706783, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24820502_11-07-2025_06_32_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24820528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24820529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24820530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24820531, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24820532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24820533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24820534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24820535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24820536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24820537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24820538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24820539, '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 = 24820893 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': 3268948, 'mtr_portfolio_id': 24820893, 'created_at': datetime.datetime(2025, 7, 11, 6, 32, 28), 'result': '0.009137578609161472', 'result_long': None, 'result_double': None}] Qualite : 0.009137578609161472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24820893 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24820893_11-07-2025_03_28_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24820893 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_P24820893_11-07-2025_03_28_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24820897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24820898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24820899, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24820900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24820901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24820902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24820903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24820904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24820905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24820906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24820907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24820908, 'pht': 3726}}" where mtr_portfolio_id = 24820893 and dashboard_run_id = 1978409 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`=24820893 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420358, 0.009137578609161472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24820893_11-07-2025_03_28_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24820897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24820898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24820899, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24820900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24820901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24820902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24820903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24820904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24820905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24820906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24820907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24820908, '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 = 24821283 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': 3268949, 'mtr_portfolio_id': 24821283, 'created_at': datetime.datetime(2025, 7, 11, 6, 32, 58), 'result': '0.008902577887161875', 'result_long': None, 'result_double': None}] Qualite : 0.008902577887161875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24821283 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24821283_11-07-2025_04_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24821283 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_P24821283_11-07-2025_04_07_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24821289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24821290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24821291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24821292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24821293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24821294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24821295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24821296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24821297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24821298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24821299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24821300, 'pht': 3726}}" where mtr_portfolio_id = 24821283 and dashboard_run_id = 1978409 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`=24821283 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420359, 0.008902577887161875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24821283_11-07-2025_04_07_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24821289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24821290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24821291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24821292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24821293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24821294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24821295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24821296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24821297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24821298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24821299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24821300, '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 = 24821562 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': 3268950, 'mtr_portfolio_id': 24821562, 'created_at': datetime.datetime(2025, 7, 11, 6, 33, 28), 'result': '0.002589055126886553', 'result_long': None, 'result_double': None}] Qualite : 0.002589055126886553 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24821562 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24821562_11-07-2025_06_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24821562 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_P24821562_11-07-2025_06_33_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24821568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24821569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24821570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24821571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24821572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24821573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24821574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24821575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24821576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24821577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24821578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24821579, 'pht': 3726}}" where mtr_portfolio_id = 24821562 and dashboard_run_id = 1978409 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`=24821562 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420360, 0.002589055126886553, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24821562_11-07-2025_06_33_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24821568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24821569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24821570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24821571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24821572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24821573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24821574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24821575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24821576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24821577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24821578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24821579, '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 = 24821811 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': 3268951, 'mtr_portfolio_id': 24821811, 'created_at': datetime.datetime(2025, 7, 11, 6, 33, 57), 'result': '0.0029344046474521915', 'result_long': None, 'result_double': None}] Qualite : 0.0029344046474521915 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24821811 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24821811_11-07-2025_06_34_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24821811 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_P24821811_11-07-2025_06_34_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24821818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24821819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24821820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24821821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24821822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24821823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24821824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24821825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24821826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24821827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24821828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24821829, 'pht': 3726}}" where mtr_portfolio_id = 24821811 and dashboard_run_id = 1978409 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`=24821811 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420361, 0.0029344046474521915, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24821811_11-07-2025_06_34_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24821818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24821819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24821820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24821821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24821822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24821823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24821824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24821825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24821826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24821827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24821828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24821829, '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 = 24822776 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': 3268952, 'mtr_portfolio_id': 24822776, 'created_at': datetime.datetime(2025, 7, 11, 6, 34, 27), 'result': '0.0021072160184963094', 'result_long': None, 'result_double': None}] Qualite : 0.0021072160184963094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24822776 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24822776_11-07-2025_06_34_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24822776 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_P24822776_11-07-2025_06_34_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24822780, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24822781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24822782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24822783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24822784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24822785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24822786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24822787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24822788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24822789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24822790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24822791, 'pht': 3726}}" where mtr_portfolio_id = 24822776 and dashboard_run_id = 1978409 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`=24822776 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420362, 0.0021072160184963094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24822776_11-07-2025_06_34_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24822780, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24822781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24822782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24822783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24822784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24822785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24822786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24822787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24822788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24822789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24822790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24822791, '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 = 24823015 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': 3268953, 'mtr_portfolio_id': 24823015, 'created_at': datetime.datetime(2025, 7, 11, 6, 35, 27), 'result': '0.002158072400523868', 'result_long': None, 'result_double': None}] Qualite : 0.002158072400523868 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24823015 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24823015_11-07-2025_06_35_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24823015 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_P24823015_11-07-2025_06_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24823024, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24823025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24823026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24823027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24823028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24823029, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24823030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24823031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24823032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24823033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24823034, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24823035, 'pht': 3726}}" where mtr_portfolio_id = 24823015 and dashboard_run_id = 1978409 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`=24823015 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420363, 0.002158072400523868, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24823015_11-07-2025_06_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24823024, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24823025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24823026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24823027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24823028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24823029, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24823030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24823031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24823032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24823033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24823034, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24823035, '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 = 24823508 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': 3268954, 'mtr_portfolio_id': 24823508, 'created_at': datetime.datetime(2025, 7, 11, 6, 35, 37), 'result': '0.0023511862656756238', 'result_long': None, 'result_double': None}] Qualite : 0.0023511862656756238 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24823508 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24823508_11-07-2025_06_35_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24823508 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_P24823508_11-07-2025_06_35_41.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24823559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24823560, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24823561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24823562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24823563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24823564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24823565, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24823566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24823567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24823568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24823569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24823570, 'pht': 3726}}" where mtr_portfolio_id = 24823508 and dashboard_run_id = 1978409 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`=24823508 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420364, 0.0023511862656756238, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24823508_11-07-2025_06_35_41.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24823559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24823560, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24823561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24823562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24823563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24823564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24823565, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24823566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24823567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24823568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24823569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24823570, '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 = 24823872 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': 3268955, 'mtr_portfolio_id': 24823872, 'created_at': datetime.datetime(2025, 7, 11, 6, 36), 'result': '0.0028098553238964617', 'result_long': None, 'result_double': None}] Qualite : 0.0028098553238964617 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24823872 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24823872_11-07-2025_05_12_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24823872 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_P24823872_11-07-2025_05_12_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24823901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24823902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24823903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24823904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24823905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24823906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24823907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24823908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24823909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24823910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24823911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24823912, 'pht': 3726}}" where mtr_portfolio_id = 24823872 and dashboard_run_id = 1978409 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`=24823872 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420365, 0.0028098553238964617, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24823872_11-07-2025_05_12_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24823901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24823902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24823903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24823904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24823905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24823906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24823907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24823908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24823909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24823910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24823911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24823912, '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 = 24824345 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': 3268794, 'mtr_portfolio_id': 24824345, 'created_at': datetime.datetime(2025, 7, 11, 5, 26, 31), 'result': '0.0023326672917908732', 'result_long': None, 'result_double': None}] Qualite : 0.0023326672917908732 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24824345 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24824345_11-07-2025_05_26_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24824345 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_P24824345_11-07-2025_05_26_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24824396, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24824397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24824398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24824399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24824400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24824401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24824402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24824403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24824404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24824405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24824406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24824407, 'pht': 3726}}" where mtr_portfolio_id = 24824345 and dashboard_run_id = 1978409 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`=24824345 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420366, 0.0023326672917908732, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24824345_11-07-2025_05_26_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24824396, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24824397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24824398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24824399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24824400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24824401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24824402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24824403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24824404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24824405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24824406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24824407, '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 = 24824610 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': 3268818, 'mtr_portfolio_id': 24824610, 'created_at': datetime.datetime(2025, 7, 11, 6, 42, 27), 'result': '0.0035764422411544345', 'result_long': None, 'result_double': None}] Qualite : 0.0035764422411544345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24824610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24824610_11-07-2025_06_42_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24824610 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_P24824610_11-07-2025_06_42_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24824641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24824642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24824643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24824644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24824645, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24824646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24824647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24824648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24824649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24824650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24824651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24824652, 'pht': 3726}}" where mtr_portfolio_id = 24824610 and dashboard_run_id = 1978409 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`=24824610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420367, 0.0035764422411544345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24824610_11-07-2025_06_42_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24824641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24824642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24824643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24824644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24824645, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24824646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24824647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24824648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24824649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24824650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24824651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24824652, '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 = 24825008 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': 3268999, 'mtr_portfolio_id': 24825008, 'created_at': datetime.datetime(2025, 7, 11, 5, 54, 30), 'result': '0.002902400166890863', 'result_long': None, 'result_double': None}] Qualite : 0.002902400166890863 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24825008 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24825008_11-07-2025_05_54_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24825008 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_P24825008_11-07-2025_05_54_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24825012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24825013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24825014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24825015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24825016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24825017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24825018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24825019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24825020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24825021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24825022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24825023, 'pht': 3726}}" where mtr_portfolio_id = 24825008 and dashboard_run_id = 1978409 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`=24825008 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420368, 0.002902400166890863, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24825008_11-07-2025_05_54_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24825012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24825013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24825014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24825015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24825016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24825017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24825018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24825019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24825020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24825021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24825022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24825023, '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 = 24825438 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': 3269064, 'mtr_portfolio_id': 24825438, 'created_at': datetime.datetime(2025, 7, 11, 6, 13), 'result': '0.0029507363270021357', 'result_long': None, 'result_double': None}] Qualite : 0.0029507363270021357 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24825438 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24825438_11-07-2025_06_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24825438 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_P24825438_11-07-2025_06_13_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24825444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24825445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24825446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24825447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24825448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24825449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24825450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24825451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24825452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24825453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24825454, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24825455, 'pht': 3726}}" where mtr_portfolio_id = 24825438 and dashboard_run_id = 1978409 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`=24825438 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420369, 0.0029507363270021357, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24825438_11-07-2025_06_13_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24825444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24825445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24825446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24825447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24825448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24825449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24825450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24825451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24825452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24825453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24825454, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24825455, '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 = 24826213 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': 3269102, 'mtr_portfolio_id': 24826213, 'created_at': datetime.datetime(2025, 7, 11, 6, 22, 28), 'result': '0.0036493899144816435', 'result_long': None, 'result_double': None}] Qualite : 0.0036493899144816435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24826213 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24826213_11-07-2025_06_22_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24826213 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_P24826213_11-07-2025_06_22_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24826218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24826219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24826220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24826221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24826222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24826223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24826224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24826225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24826226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24826227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24826228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24826229, 'pht': 3726}}" where mtr_portfolio_id = 24826213 and dashboard_run_id = 1978409 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`=24826213 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420370, 0.0036493899144816435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24826213_11-07-2025_06_22_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24826218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24826219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24826220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24826221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24826222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24826223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24826224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24826225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24826226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24826227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24826228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24826229, '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 = 24826670 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': 3269164, 'mtr_portfolio_id': 24826670, 'created_at': datetime.datetime(2025, 7, 11, 6, 41, 56), 'result': '0.003153679055882218', 'result_long': None, 'result_double': None}] Qualite : 0.003153679055882218 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24826670 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24826670_11-07-2025_06_41_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24826670 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_P24826670_11-07-2025_06_41_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24826673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24826674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24826675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24826676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24826677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24826678, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24826679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24826680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24826681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24826682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24826683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24826684, 'pht': 3726}}" where mtr_portfolio_id = 24826670 and dashboard_run_id = 1978409 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`=24826670 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420371, 0.003153679055882218, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24826670_11-07-2025_06_41_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24826673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24826674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24826675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24826676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24826677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24826678, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24826679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24826680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24826681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24826682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24826683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24826684, '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 = 24827152 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': 3269208, 'mtr_portfolio_id': 24827152, 'created_at': datetime.datetime(2025, 7, 11, 6, 59, 59), 'result': '0.003907332270441818', 'result_long': None, 'result_double': None}] Qualite : 0.003907332270441818 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24827152 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24827152_11-07-2025_06_59_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24827152 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_P24827152_11-07-2025_06_59_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24827156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24827157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24827158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24827159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24827160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24827161, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24827162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24827163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24827164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24827165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24827166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24827167, 'pht': 3726}}" where mtr_portfolio_id = 24827152 and dashboard_run_id = 1978409 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`=24827152 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420372, 0.003907332270441818, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24827152_11-07-2025_06_59_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24827156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24827157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24827158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24827159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24827160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24827161, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24827162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24827163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24827164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24827165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24827166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24827167, '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 = 24827594 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': 3269262, 'mtr_portfolio_id': 24827594, 'created_at': datetime.datetime(2025, 7, 11, 8, 31, 29), 'result': '0.0031348191733617877', 'result_long': None, 'result_double': None}] Qualite : 0.0031348191733617877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24827594 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24827594_11-07-2025_08_31_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24827594 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_P24827594_11-07-2025_08_31_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24827596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24827597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24827598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24827599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24827600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24827601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24827602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24827603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24827604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24827605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24827606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24827607, 'pht': 3726}}" where mtr_portfolio_id = 24827594 and dashboard_run_id = 1978409 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`=24827594 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420373, 0.0031348191733617877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24827594_11-07-2025_08_31_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24827596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24827597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24827598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24827599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24827600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24827601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24827602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24827603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24827604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24827605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24827606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24827607, '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 = 24828045 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': 3269335, 'mtr_portfolio_id': 24828045, 'created_at': datetime.datetime(2025, 7, 11, 7, 29, 29), 'result': '0.004274908960382742', 'result_long': None, 'result_double': None}] Qualite : 0.004274908960382742 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24828045 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24828045_11-07-2025_07_29_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24828045 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_P24828045_11-07-2025_07_29_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24828053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24828054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24828055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24828056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24828057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24828058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24828059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24828060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24828061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24828062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24828063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24828064, 'pht': 3726}}" where mtr_portfolio_id = 24828045 and dashboard_run_id = 1978409 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`=24828045 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420374, 0.004274908960382742, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24828045_11-07-2025_07_29_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24828053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24828054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24828055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24828056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24828057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24828058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24828059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24828060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24828061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24828062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24828063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24828064, '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 = 24828407 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': 3269378, 'mtr_portfolio_id': 24828407, 'created_at': datetime.datetime(2025, 7, 11, 7, 42, 56), 'result': '0.0034131193649633716', 'result_long': None, 'result_double': None}] Qualite : 0.0034131193649633716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24828407 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24828407_11-07-2025_07_42_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24828407 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_P24828407_11-07-2025_07_42_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24828422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24828423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24828424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24828425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24828426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24828427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24828428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24828429, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24828430, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24828431, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24828432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24828433, 'pht': 3726}}" where mtr_portfolio_id = 24828407 and dashboard_run_id = 1978409 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`=24828407 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420375, 0.0034131193649633716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24828407_11-07-2025_07_42_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24828422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24828423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24828424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24828425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24828426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24828427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24828428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24828429, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24828430, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24828431, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24828432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24828433, '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 = 24828837 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': 3269442, 'mtr_portfolio_id': 24828837, 'created_at': datetime.datetime(2025, 7, 11, 7, 56, 58), 'result': '0.0037916756748534158', 'result_long': None, 'result_double': None}] Qualite : 0.0037916756748534158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24828837 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24828837_11-07-2025_07_56_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24828837 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_P24828837_11-07-2025_07_56_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24828840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24828841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24828842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24828843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24828844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24828845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24828846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24828847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24828848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24828849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24828850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24828851, 'pht': 3726}}" where mtr_portfolio_id = 24828837 and dashboard_run_id = 1978409 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`=24828837 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420376, 0.0037916756748534158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24828837_11-07-2025_07_56_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24828840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24828841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24828842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24828843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24828844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24828845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24828846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24828847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24828848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24828849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24828850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24828851, '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 = 24829383 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': 3269501, 'mtr_portfolio_id': 24829383, 'created_at': datetime.datetime(2025, 7, 11, 8, 10, 58), 'result': '0.003834780140890008', 'result_long': None, 'result_double': None}] Qualite : 0.003834780140890008 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24829383 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24829383_11-07-2025_08_10_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24829383 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_P24829383_11-07-2025_08_10_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24829412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24829413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24829414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24829415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24829416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24829417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24829418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24829419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24829420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24829421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24829422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24829423, 'pht': 3726}}" where mtr_portfolio_id = 24829383 and dashboard_run_id = 1978409 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`=24829383 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420377, 0.003834780140890008, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24829383_11-07-2025_08_10_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24829412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24829413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24829414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24829415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24829416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24829417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24829418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24829419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24829420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24829421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24829422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24829423, '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 = 24830294 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': 3269561, 'mtr_portfolio_id': 24830294, 'created_at': datetime.datetime(2025, 7, 11, 8, 26, 58), 'result': '0.0030666019818954902', 'result_long': None, 'result_double': None}] Qualite : 0.0030666019818954902 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24830294 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24830294_11-07-2025_08_26_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24830294 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_P24830294_11-07-2025_08_26_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24830296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24830297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24830298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24830299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24830300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24830301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24830302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24830303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24830304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24830305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24830306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24830307, 'pht': 3726}}" where mtr_portfolio_id = 24830294 and dashboard_run_id = 1978409 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`=24830294 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420378, 0.0030666019818954902, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24830294_11-07-2025_08_26_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24830296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24830297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24830298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24830299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24830300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24830301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24830302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24830303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24830304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24830305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24830306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24830307, '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 = 24830795 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': 3269610, 'mtr_portfolio_id': 24830795, 'created_at': datetime.datetime(2025, 7, 11, 8, 44, 58), 'result': '0.0036977771514825094', 'result_long': None, 'result_double': None}] Qualite : 0.0036977771514825094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24830795 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24830795_11-07-2025_08_44_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24830795 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_P24830795_11-07-2025_08_44_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24830800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24830801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24830802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24830803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24830804, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24830805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24830806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24830807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24830808, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24830809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24830810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24830811, 'pht': 3726}}" where mtr_portfolio_id = 24830795 and dashboard_run_id = 1978409 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`=24830795 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420379, 0.0036977771514825094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24830795_11-07-2025_08_44_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24830800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24830801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24830802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24830803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24830804, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24830805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24830806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24830807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24830808, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24830809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24830810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24830811, '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 = 24831165 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': 3269670, 'mtr_portfolio_id': 24831165, 'created_at': datetime.datetime(2025, 7, 11, 8, 54, 56), 'result': '0.0025960604204904453', 'result_long': None, 'result_double': None}] Qualite : 0.0025960604204904453 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24831165 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24831165_11-07-2025_08_54_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24831165 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_P24831165_11-07-2025_08_54_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24831195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24831196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24831197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24831198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24831199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24831200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24831201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24831202, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24831203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24831204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24831205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24831206, 'pht': 3726}}" where mtr_portfolio_id = 24831165 and dashboard_run_id = 1978409 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`=24831165 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420380, 0.0025960604204904453, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24831165_11-07-2025_08_54_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24831195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24831196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24831197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24831198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24831199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24831200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24831201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24831202, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24831203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24831204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24831205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24831206, '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 = 24831607 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': 3269721, 'mtr_portfolio_id': 24831607, 'created_at': datetime.datetime(2025, 7, 11, 10, 1, 59), 'result': '0.002572864799036099', 'result_long': None, 'result_double': None}] Qualite : 0.002572864799036099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24831607 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24831607_11-07-2025_10_02_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24831607 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_P24831607_11-07-2025_10_02_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24831637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24831638, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24831639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24831640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24831641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24831642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24831643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24831644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24831645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24831646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24831647, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24831648, 'pht': 3726}}" where mtr_portfolio_id = 24831607 and dashboard_run_id = 1978409 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`=24831607 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420381, 0.002572864799036099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24831607_11-07-2025_10_02_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24831637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24831638, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24831639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24831640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24831641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24831642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24831643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24831644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24831645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24831646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24831647, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24831648, '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 = 24832313 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': 3269791, 'mtr_portfolio_id': 24832313, 'created_at': datetime.datetime(2025, 7, 11, 10, 1, 30), 'result': '0.002488656111257574', 'result_long': None, 'result_double': None}] Qualite : 0.002488656111257574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24832313 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24832313_11-07-2025_10_01_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24832313 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_P24832313_11-07-2025_10_01_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24832323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24832324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24832325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24832326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24832327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24832328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24832329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24832330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24832331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24832332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24832333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24832334, 'pht': 3726}}" where mtr_portfolio_id = 24832313 and dashboard_run_id = 1978409 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`=24832313 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420382, 0.002488656111257574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24832313_11-07-2025_10_01_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24832323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24832324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24832325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24832326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24832327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24832328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24832329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24832330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24832331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24832332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24832333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24832334, '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 = 24832723 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': 3269844, 'mtr_portfolio_id': 24832723, 'created_at': datetime.datetime(2025, 7, 11, 10, 0, 58), 'result': '0.0026736872263382195', 'result_long': None, 'result_double': None}] Qualite : 0.0026736872263382195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24832723 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24832723_11-07-2025_10_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24832723 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_P24832723_11-07-2025_10_00_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24832728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24832729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24832730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24832731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24832732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24832733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24832734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24832735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24832736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24832737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24832738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24832739, 'pht': 3726}}" where mtr_portfolio_id = 24832723 and dashboard_run_id = 1978409 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`=24832723 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420383, 0.0026736872263382195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24832723_11-07-2025_10_00_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24832728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24832729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24832730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24832731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24832732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24832733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24832734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24832735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24832736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24832737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24832738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24832739, '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 = 24833156 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': 3269895, 'mtr_portfolio_id': 24833156, 'created_at': datetime.datetime(2025, 7, 11, 10, 0, 28), 'result': '0.0022530643495193687', 'result_long': None, 'result_double': None}] Qualite : 0.0022530643495193687 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24833156 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24833156_11-07-2025_10_00_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24833156 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_P24833156_11-07-2025_10_00_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24833165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24833166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24833167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24833168, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24833169, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24833171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24833172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24833173, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24833174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24833175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24833176, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24833177, 'pht': 3726}}" where mtr_portfolio_id = 24833156 and dashboard_run_id = 1978409 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`=24833156 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420384, 0.0022530643495193687, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24833156_11-07-2025_10_00_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24833165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24833166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24833167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24833168, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24833169, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24833171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24833172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24833173, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24833174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24833175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24833176, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24833177, '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 = 24833688 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': 3269956, 'mtr_portfolio_id': 24833688, 'created_at': datetime.datetime(2025, 7, 11, 10, 12, 58), 'result': '0.0027010020018960463', 'result_long': None, 'result_double': None}] Qualite : 0.0027010020018960463 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24833688 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24833688_11-07-2025_10_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24833688 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_P24833688_11-07-2025_10_12_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24833693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24833694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24833695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24833696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24833697, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24833698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24833699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24833700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24833701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24833702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24833703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24833704, 'pht': 3726}}" where mtr_portfolio_id = 24833688 and dashboard_run_id = 1978409 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`=24833688 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420385, 0.0027010020018960463, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24833688_11-07-2025_10_12_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24833693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24833694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24833695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24833696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24833697, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24833698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24833699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24833700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24833701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24833702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24833703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24833704, '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 = 24834372 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': 3270008, 'mtr_portfolio_id': 24834372, 'created_at': datetime.datetime(2025, 7, 11, 10, 29), 'result': '0.003157804890892258', 'result_long': None, 'result_double': None}] Qualite : 0.003157804890892258 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24834372 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24834372_11-07-2025_10_29_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24834372 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_P24834372_11-07-2025_10_29_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24834378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24834379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24834380, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24834381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24834382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24834383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24834384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24834385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24834386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24834387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24834388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24834389, 'pht': 3726}}" where mtr_portfolio_id = 24834372 and dashboard_run_id = 1978409 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`=24834372 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420386, 0.003157804890892258, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24834372_11-07-2025_10_29_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24834378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24834379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24834380, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24834381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24834382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24834383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24834384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24834385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24834386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24834387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24834388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24834389, '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 = 24834724 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': 3270059, 'mtr_portfolio_id': 24834724, 'created_at': datetime.datetime(2025, 7, 11, 10, 59, 58), 'result': '0.003242060463996192', 'result_long': None, 'result_double': None}] Qualite : 0.003242060463996192 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24834724 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24834724_11-07-2025_10_59_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24834724 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_P24834724_11-07-2025_10_59_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24834755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24834756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24834757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24834758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24834759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24834760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24834761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24834762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24834763, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24834764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24834765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24834766, 'pht': 3726}}" where mtr_portfolio_id = 24834724 and dashboard_run_id = 1978409 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`=24834724 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420387, 0.003242060463996192, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24834724_11-07-2025_10_59_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24834755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24834756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24834757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24834758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24834759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24834760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24834761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24834762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24834763, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24834764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24834765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24834766, '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 = 24835205 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': 3270114, 'mtr_portfolio_id': 24835205, 'created_at': datetime.datetime(2025, 7, 11, 10, 58, 59), 'result': '0.0026849253529505623', 'result_long': None, 'result_double': None}] Qualite : 0.0026849253529505623 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24835205 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24835205_11-07-2025_10_59_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24835205 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_P24835205_11-07-2025_10_59_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24835212, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24835213, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24835214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24835215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24835216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24835217, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24835218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24835219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24835220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24835221, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24835222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24835223, 'pht': 3726}}" where mtr_portfolio_id = 24835205 and dashboard_run_id = 1978409 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`=24835205 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420388, 0.0026849253529505623, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24835205_11-07-2025_10_59_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24835212, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24835213, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24835214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24835215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24835216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24835217, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24835218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24835219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24835220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24835221, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24835222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24835223, '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 = 24835829 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': 3270217, 'mtr_portfolio_id': 24835829, 'created_at': datetime.datetime(2025, 7, 11, 11, 48, 58), 'result': '0.0027813512245662623', 'result_long': None, 'result_double': None}] Qualite : 0.0027813512245662623 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24835829 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24835829_11-07-2025_11_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24835829 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_P24835829_11-07-2025_11_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24835830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24835831, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24835832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24835833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24835834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24835835, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24835836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24835837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24835838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24835839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24835840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24835841, 'pht': 3726}}" where mtr_portfolio_id = 24835829 and dashboard_run_id = 1978409 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`=24835829 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420389, 0.0027813512245662623, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24835829_11-07-2025_11_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24835830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24835831, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24835832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24835833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24835834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24835835, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24835836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24835837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24835838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24835839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24835840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24835841, '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 = 24835926 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': 3270264, 'mtr_portfolio_id': 24835926, 'created_at': datetime.datetime(2025, 7, 11, 13, 0), 'result': '0.003121516389033942', 'result_long': None, 'result_double': None}] Qualite : 0.003121516389033942 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24835926 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24835926_11-07-2025_13_00_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24835926 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_P24835926_11-07-2025_13_00_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24835935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24835936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24835937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24835939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24835940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24835941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24835942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24835943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24835944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24835945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24835946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24835947, 'pht': 3726}}" where mtr_portfolio_id = 24835926 and dashboard_run_id = 1978409 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`=24835926 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420390, 0.003121516389033942, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24835926_11-07-2025_13_00_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24835935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24835936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24835937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24835939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24835940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24835941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24835942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24835943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24835944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24835945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24835946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24835947, '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 = 24836214 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': 3270334, 'mtr_portfolio_id': 24836214, 'created_at': datetime.datetime(2025, 7, 11, 13, 0, 30), 'result': '0.003353158444301895', 'result_long': None, 'result_double': None}] Qualite : 0.003353158444301895 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24836214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24836214_11-07-2025_13_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24836214 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_P24836214_11-07-2025_13_00_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24836215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24836216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24836217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24836218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24836219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24836220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24836221, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24836222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24836223, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24836224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24836225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24836226, 'pht': 3726}}" where mtr_portfolio_id = 24836214 and dashboard_run_id = 1978409 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`=24836214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420391, 0.003353158444301895, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24836214_11-07-2025_13_00_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24836215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24836216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24836217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24836218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24836219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24836220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24836221, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24836222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24836223, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24836224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24836225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24836226, '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 = 24836530 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': 3270386, 'mtr_portfolio_id': 24836530, 'created_at': datetime.datetime(2025, 7, 11, 12, 42, 57), 'result': '0.0031988286683643915', 'result_long': None, 'result_double': None}] Qualite : 0.0031988286683643915 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24836530 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24836530_11-07-2025_12_42_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24836530 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_P24836530_11-07-2025_12_42_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24836534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24836535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24836536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24836537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24836538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24836539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24836540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24836541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24836542, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24836543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24836544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24836545, 'pht': 3726}}" where mtr_portfolio_id = 24836530 and dashboard_run_id = 1978409 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`=24836530 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420392, 0.0031988286683643915, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24836530_11-07-2025_12_42_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24836534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24836535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24836536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24836537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24836538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24836539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24836540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24836541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24836542, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24836543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24836544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24836545, '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 = 24836795 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': 3270425, 'mtr_portfolio_id': 24836795, 'created_at': datetime.datetime(2025, 7, 11, 14, 0), 'result': '0.003546694826382091', 'result_long': None, 'result_double': None}] Qualite : 0.003546694826382091 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24836795 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24836795_11-07-2025_14_00_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24836795 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_P24836795_11-07-2025_14_00_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24836800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24836801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24836802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24836803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24836804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24836805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24836806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24836807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24836808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24836809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24836810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24836811, 'pht': 3726}}" where mtr_portfolio_id = 24836795 and dashboard_run_id = 1978409 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`=24836795 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420393, 0.003546694826382091, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24836795_11-07-2025_14_00_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24836800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24836801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24836802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24836803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24836804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24836805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24836806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24836807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24836808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24836809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24836810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24836811, '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 = 24837202 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': 3270494, 'mtr_portfolio_id': 24837202, 'created_at': datetime.datetime(2025, 7, 11, 14, 0, 29), 'result': '0.003497710637313316', 'result_long': None, 'result_double': None}] Qualite : 0.003497710637313316 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24837202 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24837202_11-07-2025_14_00_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24837202 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_P24837202_11-07-2025_14_00_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24837230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24837231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24837232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24837233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24837234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24837235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24837236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24837237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24837238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24837239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24837240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24837241, 'pht': 3726}}" where mtr_portfolio_id = 24837202 and dashboard_run_id = 1978409 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`=24837202 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420394, 0.003497710637313316, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24837202_11-07-2025_14_00_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24837230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24837231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24837232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24837233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24837234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24837235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24837236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24837237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24837238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24837239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24837240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24837241, '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 = 24837424 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': 3270534, 'mtr_portfolio_id': 24837424, 'created_at': datetime.datetime(2025, 7, 11, 13, 28, 59), 'result': '0.003699115900713153', 'result_long': None, 'result_double': None}] Qualite : 0.003699115900713153 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24837424 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24837424_11-07-2025_13_28_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24837424 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_P24837424_11-07-2025_13_28_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24837428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24837429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24837430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24837431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24837432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24837433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24837434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24837435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24837436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24837437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24837438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24837439, 'pht': 3726}}" where mtr_portfolio_id = 24837424 and dashboard_run_id = 1978409 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`=24837424 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420395, 0.003699115900713153, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24837424_11-07-2025_13_28_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24837428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24837429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24837430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24837431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24837432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24837433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24837434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24837435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24837436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24837437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24837438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24837439, '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 = 24837822 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': 3270586, 'mtr_portfolio_id': 24837822, 'created_at': datetime.datetime(2025, 7, 11, 13, 44, 58), 'result': '0.00376953007467516', 'result_long': None, 'result_double': None}] Qualite : 0.00376953007467516 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24837822 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24837822_11-07-2025_13_44_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24837822 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_P24837822_11-07-2025_13_44_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24837854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24837855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24837856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24837857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24837858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24837859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24837860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24837861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24837862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24837863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24837864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24837865, 'pht': 3726}}" where mtr_portfolio_id = 24837822 and dashboard_run_id = 1978409 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`=24837822 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420396, 0.00376953007467516, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24837822_11-07-2025_13_44_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24837854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24837855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24837856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24837857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24837858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24837859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24837860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24837861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24837862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24837863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24837864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24837865, '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 = 24838225 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': 3270627, 'mtr_portfolio_id': 24838225, 'created_at': datetime.datetime(2025, 7, 11, 13, 58, 30), 'result': '0.0036757909833038172', 'result_long': None, 'result_double': None}] Qualite : 0.0036757909833038172 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24838225 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24838225_11-07-2025_13_58_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24838225 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_P24838225_11-07-2025_13_58_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24838228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24838229, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24838230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24838231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24838232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24838233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24838234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24838235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24838236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24838237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24838238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24838239, 'pht': 3726}}" where mtr_portfolio_id = 24838225 and dashboard_run_id = 1978409 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`=24838225 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420397, 0.0036757909833038172, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24838225_11-07-2025_13_58_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24838228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24838229, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24838230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24838231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24838232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24838233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24838234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24838235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24838236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24838237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24838238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24838239, '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 = 24838679 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': 3270681, 'mtr_portfolio_id': 24838679, 'created_at': datetime.datetime(2025, 7, 11, 15, 1), 'result': '0.004609196784279299', 'result_long': None, 'result_double': None}] Qualite : 0.004609196784279299 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24838679 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24838679_11-07-2025_15_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24838679 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_P24838679_11-07-2025_15_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24838791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24838792, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24838793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24838794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24838795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24838796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24838797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24838798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24838799, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24838800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24838801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24838802, 'pht': 3726}}" where mtr_portfolio_id = 24838679 and dashboard_run_id = 1978409 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`=24838679 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420398, 0.004609196784279299, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24838679_11-07-2025_15_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24838791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24838792, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24838793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24838794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24838795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24838796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24838797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24838798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24838799, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24838800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24838801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24838802, '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 = 24839128 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': 3270729, 'mtr_portfolio_id': 24839128, 'created_at': datetime.datetime(2025, 7, 11, 15, 0, 29), 'result': '0.0043746471949072056', 'result_long': None, 'result_double': None}] Qualite : 0.0043746471949072056 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24839128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24839128_11-07-2025_15_00_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24839128 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_P24839128_11-07-2025_15_00_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24839133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24839134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24839135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24839136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24839137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24839138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24839139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24839140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24839141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24839142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24839143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24839144, 'pht': 3726}}" where mtr_portfolio_id = 24839128 and dashboard_run_id = 1978409 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`=24839128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420399, 0.0043746471949072056, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24839128_11-07-2025_15_00_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24839133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24839134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24839135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24839136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24839137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24839138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24839139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24839140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24839141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24839142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24839143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24839144, '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 = 24839547 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': 3270778, 'mtr_portfolio_id': 24839547, 'created_at': datetime.datetime(2025, 7, 11, 14, 59, 58), 'result': '0.0032305208583914484', 'result_long': None, 'result_double': None}] Qualite : 0.0032305208583914484 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24839547 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24839547_11-07-2025_14_59_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24839547 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_P24839547_11-07-2025_14_59_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24839552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24839553, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24839554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24839555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24839556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24839557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24839558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24839559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24839560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24839561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24839562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24839563, 'pht': 3726}}" where mtr_portfolio_id = 24839547 and dashboard_run_id = 1978409 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`=24839547 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420400, 0.0032305208583914484, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24839547_11-07-2025_14_59_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24839552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24839553, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24839554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24839555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24839556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24839557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24839558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24839559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24839560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24839561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24839562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24839563, '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 = 24839971 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': 3270834, 'mtr_portfolio_id': 24839971, 'created_at': datetime.datetime(2025, 7, 11, 16, 1, 59), 'result': '0.003834408328293565', 'result_long': None, 'result_double': None}] Qualite : 0.003834408328293565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24839971 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24839971_11-07-2025_16_02_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24839971 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_P24839971_11-07-2025_16_02_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24839974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24839975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24839976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24839977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24839978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24839979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24839980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24839981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24839982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24839983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24839984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24839985, 'pht': 3726}}" where mtr_portfolio_id = 24839971 and dashboard_run_id = 1978409 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`=24839971 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420401, 0.003834408328293565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24839971_11-07-2025_16_02_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24839974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24839975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24839976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24839977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24839978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24839979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24839980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24839981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24839982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24839983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24839984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24839985, '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 = 24841386 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 = 24841386 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24841386 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%24841386%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24841386 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'papier': {'hashtag': 'papier', 'sub_port_id': 24841703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24841704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24841705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24841706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24841707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24841708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24841709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24841710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24841711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24841712, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24841713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24841714, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 24841386 and dashboard_run_id = 1978409 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 = 24841391 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 = 24841391 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 = 24841391 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24841391 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 = 24841391 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 = 24841391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24841391_11-07-2025_18_02_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24841391 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24841537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24841538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24841539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24841540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24841541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24841542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24841543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24841545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24841546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24841547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24841548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24841549, 'pht': 3726}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24841391_11-07-2025_18_02_02.pdf'}" where mtr_portfolio_id = 24841391 and dashboard_run_id = 1978409 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 = 24841395 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': 3271194, 'mtr_portfolio_id': 24841395, 'created_at': datetime.datetime(2025, 7, 11, 18, 2, 27), 'result': '0.0029023899132746395', 'result_long': None, 'result_double': None}] Qualite : 0.0029023899132746395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24841395 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24841395_11-07-2025_18_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24841395 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24841451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24841452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24841453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24841454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24841455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24841456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24841457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24841458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24841459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24841460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24841461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24841462, 'pht': 3726}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24841395_11-07-2025_18_02_30.pdf'}" where mtr_portfolio_id = 24841395 and dashboard_run_id = 1978409 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`=24841395 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420404, 0.0029023899132746395, "{'max_time_prod_two_photos': 0, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24841451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24841452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24841453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24841454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24841455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24841456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24841457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24841458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24841459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24841460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24841461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24841462, 'pht': 3726}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24841395_11-07-2025_18_02_30.pdf'}") 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 = 24840651 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': 3270950, 'mtr_portfolio_id': 24840651, 'created_at': datetime.datetime(2025, 7, 11, 18, 0, 59), 'result': '0.00377561403818406', 'result_long': None, 'result_double': None}] Qualite : 0.00377561403818406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24840651 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24840651_11-07-2025_18_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24840651 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_P24840651_11-07-2025_18_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24840936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24840937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24840938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24840939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24840940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24840941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24840942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24840943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24840944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24840945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24840946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24840947, 'pht': 3726}}" where mtr_portfolio_id = 24840651 and dashboard_run_id = 1978409 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`=24840651 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420405, 0.00377561403818406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24840651_11-07-2025_18_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24840936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24840937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24840938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24840939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24840940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24840941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24840942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24840943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24840944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24840945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24840946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24840947, '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 = 24840652 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': 3270951, 'mtr_portfolio_id': 24840652, 'created_at': datetime.datetime(2025, 7, 11, 17, 1, 27), 'result': '0.0038573417269629102', 'result_long': None, 'result_double': None}] Qualite : 0.0038573417269629102 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24840652 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24840652_11-07-2025_17_01_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24840652 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_P24840652_11-07-2025_17_01_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24840902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24840903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24840904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24840905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24840906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24840907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24840908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24840909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24840910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24840911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24840912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24840913, 'pht': 3726}}" where mtr_portfolio_id = 24840652 and dashboard_run_id = 1978409 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`=24840652 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420406, 0.0038573417269629102, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24840652_11-07-2025_17_01_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24840902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24840903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24840904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24840905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24840906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24840907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24840908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24840909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24840910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24840911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24840912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24840913, '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 = 24840653 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': 3270952, 'mtr_portfolio_id': 24840653, 'created_at': datetime.datetime(2025, 7, 11, 16, 18, 58), 'result': '0.0350492294694984', 'result_long': None, 'result_double': None}] Qualite : 0.0350492294694984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24840653 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24840653_11-07-2025_16_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24840653 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_P24840653_11-07-2025_16_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24840688, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24840689, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24840690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24840691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24840692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24840693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24840694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24840695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24840696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24840697, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24840698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24840699, 'pht': 3726}}" where mtr_portfolio_id = 24840653 and dashboard_run_id = 1978409 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`=24840653 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420407, 0.0350492294694984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24840653_11-07-2025_16_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24840688, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24840689, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24840690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24840691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24840692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24840693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24840694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24840695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24840696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24840697, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24840698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24840699, '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 = 24840654 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': 3270953, 'mtr_portfolio_id': 24840654, 'created_at': datetime.datetime(2025, 7, 11, 16, 3, 27), 'result': '0.0377546631436232', 'result_long': None, 'result_double': None}] Qualite : 0.0377546631436232 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24840654 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24840654_11-07-2025_16_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24840654 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_P24840654_11-07-2025_16_03_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24840659, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24840660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24840661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24840662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24840663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24840664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24840665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24840666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24840667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24840668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24840669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24840670, 'pht': 3726}}" where mtr_portfolio_id = 24840654 and dashboard_run_id = 1978409 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`=24840654 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420408, 0.0377546631436232, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24840654_11-07-2025_16_03_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24840659, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24840660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24840661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24840662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24840663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24840664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24840665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24840666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24840667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24840668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24840669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24840670, '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 = 24841729 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': 3271297, 'mtr_portfolio_id': 24841729, 'created_at': datetime.datetime(2025, 7, 11, 16, 17, 28), 'result': '0.04629622422518329', 'result_long': None, 'result_double': None}] Qualite : 0.04629622422518329 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24841729 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24841729_11-07-2025_16_17_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24841729 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_P24841729_11-07-2025_16_17_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24841837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24841838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24841839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24841840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24841841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24841842, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24841843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24841844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24841845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24841846, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24841847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24841848, 'pht': 3726}}" where mtr_portfolio_id = 24841729 and dashboard_run_id = 1978409 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`=24841729 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420409, 0.04629622422518329, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24841729_11-07-2025_16_17_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24841837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24841838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24841839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24841840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24841841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24841842, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24841843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24841844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24841845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24841846, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24841847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24841848, '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 = 24842598 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': 3271593, 'mtr_portfolio_id': 24842598, 'created_at': datetime.datetime(2025, 7, 11, 16, 32, 59), 'result': '0.0358639852982041', 'result_long': None, 'result_double': None}] Qualite : 0.0358639852982041 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24842598 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24842598_11-07-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24842598 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_P24842598_11-07-2025_16_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24842644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24842645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24842646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24842647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24842648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24842649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24842650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24842651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24842652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24842653, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24842654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24842655, 'pht': 3726}}" where mtr_portfolio_id = 24842598 and dashboard_run_id = 1978409 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`=24842598 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420410, 0.0358639852982041, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24842598_11-07-2025_16_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24842644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24842645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24842646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24842647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24842648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24842649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24842650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24842651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24842652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24842653, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24842654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24842655, '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 = 24843375 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': 3271835, 'mtr_portfolio_id': 24843375, 'created_at': datetime.datetime(2025, 7, 11, 16, 46, 58), 'result': '0.01895220273885527', 'result_long': None, 'result_double': None}] Qualite : 0.01895220273885527 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24843375 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24843375_11-07-2025_16_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24843375 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_P24843375_11-07-2025_16_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24843436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24843437, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24843438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24843439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24843440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24843441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24843442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24843443, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24843444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24843445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24843446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24843447, 'pht': 3726}}" where mtr_portfolio_id = 24843375 and dashboard_run_id = 1978409 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`=24843375 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420411, 0.01895220273885527, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24843375_11-07-2025_16_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24843436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24843437, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24843438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24843439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24843440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24843441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24843442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24843443, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24843444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24843445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24843446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24843447, '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 = 24844059 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': 3271960, 'mtr_portfolio_id': 24844059, 'created_at': datetime.datetime(2025, 7, 11, 17, 3), 'result': '0.051470480510573', 'result_long': None, 'result_double': None}] Qualite : 0.051470480510573 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24844059 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24844059_11-07-2025_17_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24844059 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_P24844059_11-07-2025_17_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24844084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24844085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24844086, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24844087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24844088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24844089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24844090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24844091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24844092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24844093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24844094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24844095, 'pht': 3726}}" where mtr_portfolio_id = 24844059 and dashboard_run_id = 1978409 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`=24844059 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420412, 0.051470480510573, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24844059_11-07-2025_17_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24844084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24844085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24844086, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24844087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24844088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24844089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24844090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24844091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24844092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24844093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24844094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24844095, '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 = 24844602 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': 3272036, 'mtr_portfolio_id': 24844602, 'created_at': datetime.datetime(2025, 7, 11, 17, 16, 30), 'result': '0.008537202739607638', 'result_long': None, 'result_double': None}] Qualite : 0.008537202739607638 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24844602 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24844602_11-07-2025_17_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24844602 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_P24844602_11-07-2025_17_16_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24844634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24844635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24844636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24844637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24844638, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24844639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24844640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24844641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24844642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24844643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24844644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24844645, 'pht': 3726}}" where mtr_portfolio_id = 24844602 and dashboard_run_id = 1978409 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`=24844602 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420413, 0.008537202739607638, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24844602_11-07-2025_17_16_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24844634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24844635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24844636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24844637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24844638, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24844639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24844640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24844641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24844642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24844643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24844644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24844645, '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 = 24845214 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': 3272119, 'mtr_portfolio_id': 24845214, 'created_at': datetime.datetime(2025, 7, 11, 17, 32, 58), 'result': '0.010525848268886586', 'result_long': None, 'result_double': None}] Qualite : 0.010525848268886586 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24845214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24845214_11-07-2025_17_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24845214 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_P24845214_11-07-2025_17_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24845244, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24845245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24845246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24845247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24845248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24845249, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24845250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24845251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24845252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24845253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24845254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24845255, 'pht': 3726}}" where mtr_portfolio_id = 24845214 and dashboard_run_id = 1978410 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`=24845214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420414, 0.010525848268886586, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24845214_11-07-2025_17_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24845244, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24845245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24845246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24845247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24845248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24845249, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24845250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24845251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24845252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24845253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24845254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24845255, '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 = 24845813 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': 3272173, 'mtr_portfolio_id': 24845813, 'created_at': datetime.datetime(2025, 7, 11, 17, 48, 58), 'result': '0.023468225101013238', 'result_long': None, 'result_double': None}] Qualite : 0.023468225101013238 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24845813 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24845813_11-07-2025_17_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24845813 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_P24845813_11-07-2025_17_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24845841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24845842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24845843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24845844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24845845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24845846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24845847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24845848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24845849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24845850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24845851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24845852, 'pht': 3726}}" where mtr_portfolio_id = 24845813 and dashboard_run_id = 1978410 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`=24845813 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420415, 0.023468225101013238, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24845813_11-07-2025_17_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24845841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24845842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24845843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24845844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24845845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24845846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24845847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24845848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24845849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24845850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24845851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24845852, '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 = 24846464 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': 3272223, 'mtr_portfolio_id': 24846464, 'created_at': datetime.datetime(2025, 7, 11, 18, 2, 58), 'result': '0.021010002508206733', 'result_long': None, 'result_double': None}] Qualite : 0.021010002508206733 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24846464 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24846464_11-07-2025_18_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24846464 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_P24846464_11-07-2025_18_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24846528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24846529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24846530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24846531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24846532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24846533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24846534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24846535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24846536, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24846537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24846538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24846539, 'pht': 3726}}" where mtr_portfolio_id = 24846464 and dashboard_run_id = 1978410 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`=24846464 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12420416, 0.021010002508206733, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24846464_11-07-2025_18_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24846528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24846529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24846530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24846531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24846532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24846533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24846534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24846535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24846536, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24846537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24846538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24846539, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24815712,24815891,24816337,24816682,24817118,24817531,24819467,24819665,24819958,24820502,24820893,24821283,24821562,24821811,24822776,24823015,24823508,24823872,24824345,24824610,24825008,24825438,24826213,24826670,24827152,24827594,24828045,24828407,24828837,24829383,24830294,24830795,24831165,24831607,24832313,24832723,24833156,24833688,24834372,24834724,24835205,24835829,24835926,24836214,24836530,24836795,24837202,24837424,24837822,24838225,24838679,24839128,24839547,24839971,24841386,24841391,24841395,24840651,24840652,24840653,24840654,24841729,24842598,24843375,24844059,24844602,24845214,24845813,24846464) result : ((1371530413,), (1371530422,), (1371530567,), (1371530570,), (1371530726,), (1371530778,), (1371530779,), (1371530812,), (1371530854,), (1371530855,), (1371530904,), (1371530930,), (1371530933,), (1371530962,), (1371530964,), (1371531023,), (1371531068,), (1371531092,), (1371531135,), (1371531136,), (1371531159,), (1371531234,), (1371531235,), (1371531267,), (1371531269,), (1371531323,), (1371531327,), (1371531359,), (1371531360,), (1371531422,), (1371531435,), (1371531486,), (1371531487,), (1371531524,), (1371531566,), (1371531607,), (1371531614,), (1371531615,), (1371531658,), (1371531663,), (1371531698,), (1371531703,), (1371531707,), (1371531710,), (1371531797,), (1371531840,), (1371531841,), (1371531931,), (1371531935,), (1371532004,), (1371532007,), (1371532019,), (1371532023,), (1371532033,), (1371532118,), (1371532122,), (1371532123,), (1371532129,), (1371532283,), (1371532284,), (1371532381,), (1371532480,), (1371532481,), (1371532482,), (1371532564,), (1371532569,), (1371532573,), (1371532663,), (1371532664,), (1371532667,), (1371532669,), (1371532760,), (1371532868,), (1371532881,), (1371532931,), (1371532933,), (1371532985,), (1371532991,), (1371532996,), (1371533133,), (1371533274,), (1371533388,), (1371533533,), (1371531268,), (1371531313,), (1371531315,), (1371531320,), (1371531421,), (1371531433,), (1371531434,), (1371531565,), (1371531616,), (1371531617,), (1371531660,), (1371531700,), (1371531701,), (1371531702,), (1371531706,), (1371531709,), (1371531798,), (1371531837,), (1371531842,), (1371531843,), (1371531851,), (1371531930,), (1371531933,), (1371532010,), (1371532036,), (1371532079,), (1371532116,), (1371532117,), (1371532125,), (1371532127,), (1371532130,), (1371532132,), (1371532219,), (1371532281,), (1371532282,), (1371532285,), (1371532293,), (1371532382,), (1371532461,), (1371532555,), (1371532566,), (1371532567,), (1371532619,), (1371532658,), (1371532659,), (1371532665,), (1371532668,), (1371532670,), (1371532677,), (1371532736,), (1371532754,), (1371532830,), (1371532831,), (1371532858,), (1371532928,), (1371532930,), (1371532984,), (1371532989,), (1371532992,), (1371532998,), (1371533003,), (1371533081,), (1371533082,), (1371533102,), (1371533147,), (1371533156,), (1371533244,), (1371533273,), (1371533394,), (1371533395,), (1371533398,), (1371533478,), (1371533479,), (1371533493,), (1371533528,), (1371533529,), (1371533531,), (1371533534,), (1371533621,), (1371533653,), (1371533662,), (1371533737,), (1371533771,), (1371533772,), (1371533881,), (1371533959,), (1371533960,), (1371533961,), (1371534085,), (1371534130,), (1371534315,), (1371534319,), (1371534322,), (1371534414,), (1371534452,), (1371534549,), (1371532124,), (1371532163,), (1371532198,), (1371532295,), (1371532479,), (1371532565,), (1371532568,), (1371532620,), (1371532629,), (1371532660,), (1371532662,), (1371532762,), (1371532763,), (1371532829,), (1371532867,), (1371532932,), (1371532936,), (1371532987,), (1371532994,), (1371533030,), (1371533057,), (1371533058,), (1371533073,), (1371533077,), (1371533094,), (1371533100,), (1371533103,), (1371533389,), (1371533393,), (1371533397,), (1371533524,), (1371533527,), (1371533530,), (1371533532,), (1371533535,), (1371533606,), (1371533607,), (1371533608,), (1371533623,), (1371533649,), (1371533848,), (1371533883,), (1371533885,), (1371534047,), (1371534080,), (1371534082,), (1371534083,), (1371534084,), (1371534088,), (1371534092,), (1371534093,), (1371534199,), (1371534201,), (1371534326,), (1371534412,), (1371534415,), (1371534456,), (1371534521,), (1371534535,), (1371534542,), (1371534544,), (1371534546,), (1371534547,), (1371534548,), (1371534767,), (1371534769,), (1371534777,), (1371534995,), (1371534996,), (1371534997,), (1371534998,), (1371535113,), (1371535116,), (1371535119,), (1371535120,), (1371535443,), (1371535591,), (1371535672,), (1371533150,), (1371533271,), (1371533272,), (1371533298,), (1371533390,), (1371533503,), (1371533526,), (1371533650,), (1371533663,), (1371533736,), (1371533768,), (1371533769,), (1371533850,), (1371533879,), (1371533880,), (1371533979,), (1371534086,), (1371534087,), (1371534156,), (1371534198,), (1371534203,), (1371534316,), (1371534317,), (1371534320,), (1371534323,), (1371534328,), (1371534368,), (1371534451,), (1371534453,), (1371534536,), (1371534545,), (1371534550,), (1371534729,), (1371534745,), (1371534770,), (1371534882,), (1371534883,), (1371534884,), (1371534887,), (1371534993,), (1371535001,), (1371535005,), (1371535006,), (1371535117,), (1371535118,), (1371535234,), (1371535320,), (1371535428,), (1371535431,), (1371535444,), (1371535548,), (1371535550,), (1371535665,), (1371535666,), (1371535676,), (1371535678,), (1371535788,), (1371535792,), (1371535794,), (1371536017,), (1371536018,), (1371536022,), (1371536024,), (1371536148,), (1371536152,), (1371536169,), (1371536170,), (1371536268,), (1371536272,), (1371536275,), (1371536292,), (1371536519,), (1371536524,), (1371536671,), (1371536747,), (1371536749,), (1371536878,), (1371536894,), (1371537351,), (1371534314,), (1371534318,), (1371534327,), (1371534455,), (1371534534,), (1371534543,), (1371534726,), (1371534775,), (1371534776,), (1371534866,), (1371534881,), (1371534885,), (1371534999,), (1371535002,), (1371535004,), (1371535114,), (1371535115,), (1371535121,), (1371535231,), (1371535233,), (1371535312,), (1371535381,), (1371535430,), (1371535442,), (1371535445,), (1371535541,), (1371535551,), (1371535671,), (1371535673,), (1371535674,), (1371535764,), (1371535787,), (1371535789,), (1371535795,), (1371535796,), (1371535894,), (1371535969,), (1371536019,), (1371536026,), (1371536027,), (1371536137,), (1371536153,), (1371536269,), (1371536271,), (1371536276,), (1371536290,), (1371536291,), (1371536294,), (1371536295,), (1371536296,), (1371536521,), (1371536522,), (1371536623,), (1371536626,), (1371536628,), (1371536669,), (1371536672,), (1371536775,), (1371536867,), (1371536870,), (1371536873,), (1371536874,), (1371536876,), (1371536877,), (1371536879,), (1371536929,), (1371536953,), (1371537016,), (1371537019,), (1371537021,), (1371537233,), (1371537270,), (1371537357,), (1371537365,), (1371537368,), (1371537371,), (1371537467,), (1371537475,), (1371537484,), (1371537486,), (1371537487,), (1371537588,), (1371537602,), (1371537838,), (1371537842,), (1371537947,), (1371537955,), (1371537961,), (1371538059,), (1371535429,), (1371535549,), (1371535664,), (1371535677,), (1371535790,), (1371535893,), (1371536020,), (1371536021,), (1371536133,), (1371536149,), (1371536151,), (1371536247,), (1371536273,), (1371536288,), (1371536289,), (1371536293,), (1371536401,), (1371536516,), (1371536518,), (1371536520,), (1371536624,), (1371536635,), (1371536670,), (1371536673,), (1371536752,), (1371536753,), (1371536875,), (1371536880,), (1371536881,), (1371536883,), (1371536890,), (1371536892,), (1371536893,), (1371537014,), (1371537020,), (1371537234,), (1371537251,), (1371537272,), (1371537354,), (1371537356,), (1371537366,), (1371537369,), (1371537372,), (1371537373,), (1371537479,), (1371537483,), (1371537497,), (1371537498,), (1371537723,), (1371537724,), (1371537725,), (1371537837,), (1371537839,), (1371537841,), (1371537944,), (1371537945,), (1371537946,), (1371537954,), (1371537957,), (1371537958,), (1371537967,), (1371538288,), (1371538289,), (1371538290,), (1371538349,), (1371538363,), (1371538364,), (1371538434,), (1371538493,), (1371538495,), (1371538502,), (1371538503,), (1371538510,), (1371538669,), (1371538732,), (1371538748,), (1371538811,), (1371538812,), (1371536625,), (1371536668,), (1371536748,), (1371536872,), (1371536885,), (1371536889,), (1371537013,), (1371537017,), (1371537101,), (1371537271,), (1371537350,), (1371537352,), (1371537355,), (1371537370,), (1371537478,), (1371537480,), (1371537485,), (1371537495,), (1371537496,), (1371537599,), (1371537600,), (1371537601,), (1371537716,), (1371537816,), (1371537835,), (1371537836,), (1371537840,), (1371537943,), (1371537953,), (1371537956,), (1371537963,), (1371537964,), (1371537965,), (1371538062,), (1371538064,), (1371538066,), (1371538126,), (1371538291,), (1371538358,), (1371538360,), (1371538365,), (1371538498,), (1371538499,), (1371538509,), (1371538512,), (1371538513,), (1371538514,), (1371538585,), (1371538586,), (1371538587,), (1371538643,), (1371538672,), (1371538744,), (1371538745,), (1371538746,), (1371538808,), (1371538809,), (1371538827,), (1371538828,), (1371538831,), (1371538832,), (1371538833,), (1371538912,), (1371538915,), (1371538919,), (1371538921,), (1371538978,), (1371538986,), (1371538987,), (1371539185,), (1371539186,), (1371539190,), (1371539193,), (1371539198,), (1371539199,), (1371539205,), (1371539211,), (1371539213,), (1371539227,), (1371539231,), (1371539684,), (1371539691,), (1371539699,), (1371539707,), (1371537804,), (1371537820,), (1371537821,), (1371537834,), (1371537941,), (1371538060,), (1371538065,), (1371538286,), (1371538287,), (1371538292,), (1371538293,), (1371538361,), (1371538362,), (1371538496,), (1371538497,), (1371538508,), (1371538582,), (1371538583,), (1371538584,), (1371538644,), (1371538667,), (1371538668,), (1371538670,), (1371538671,), (1371538673,), (1371538675,), (1371538747,), (1371538813,), (1371538824,), (1371538834,), (1371538906,), (1371538907,), (1371538909,), (1371538910,), (1371538911,), (1371538913,), (1371538916,), (1371538917,), (1371538922,), (1371538923,), (1371538985,), (1371539188,), (1371539195,), (1371539197,), (1371539203,), (1371539204,), (1371539207,), (1371539208,), (1371539209,), (1371539212,), (1371539216,), (1371539217,), (1371539219,), (1371539220,), (1371539228,), (1371539605,), (1371539606,), (1371539608,), (1371539680,), (1371539681,), (1371539682,), (1371539683,), (1371539686,), (1371539687,), (1371539689,), (1371539694,), (1371539698,), (1371539706,), (1371539708,), (1371540053,), (1371540054,), (1371540056,), (1371540059,), (1371540060,), (1371540143,), (1371540145,), (1371540149,), (1371540152,), (1371540160,), (1371540501,), (1371540502,), (1371540505,), (1371540510,), (1371540607,), (1371540611,), (1371538674,), (1371538731,), (1371538749,), (1371538826,), (1371538837,), (1371538908,), (1371538914,), (1371538918,), (1371538920,), (1371538924,), (1371538983,), (1371538988,), (1371539187,), (1371539192,), (1371539202,), (1371539206,), (1371539210,), (1371539214,), (1371539218,), (1371539221,), (1371539222,), (1371539229,), (1371539230,), (1371539253,), (1371539254,), (1371539350,), (1371539602,), (1371539604,), (1371539607,), (1371539652,), (1371539685,), (1371539688,), (1371539690,), (1371539696,), (1371539701,), (1371539702,), (1371539703,), (1371539705,), (1371539709,), (1371539779,), (1371540055,), (1371540057,), (1371540058,), (1371540062,), (1371540063,), (1371540141,), (1371540142,), (1371540146,), (1371540147,), (1371540151,), (1371540156,), (1371540158,), (1371540159,), (1371540239,), (1371540504,), (1371540506,), (1371540507,), (1371540508,), (1371540602,), (1371540603,), (1371540606,), (1371540608,), (1371540609,), (1371540612,), (1371540613,), (1371540614,), (1371540702,), (1371540968,), (1371540970,), (1371540971,), (1371541060,), (1371541061,), (1371541062,), (1371541063,), (1371541068,), (1371541069,), (1371541070,), (1371541166,), (1371541465,), (1371541466,), (1371541469,), (1371541551,), (1371541643,), (1371539534,), (1371539603,), (1371539704,), (1371539788,), (1371539789,), (1371539860,), (1371539965,), (1371539968,), (1371539969,), (1371539970,), (1371540034,), (1371540061,), (1371540153,), (1371540154,), (1371540240,), (1371540308,), (1371540309,), (1371540310,), (1371540325,), (1371540406,), (1371540407,), (1371540409,), (1371540411,), (1371540412,), (1371540483,), (1371540503,), (1371540601,), (1371540610,), (1371540701,), (1371540774,), (1371540776,), (1371540777,), (1371540785,), (1371540873,), (1371540874,), (1371540875,), (1371540876,), (1371540877,), (1371540948,), (1371540972,), (1371541066,), (1371541067,), (1371541165,), (1371541183,), (1371541184,), (1371541185,), (1371541271,), (1371541351,), (1371541352,), (1371541369,), (1371541370,), (1371541371,), (1371541372,), (1371541468,), (1371541549,), (1371541556,), (1371541646,), (1371541661,), (1371541663,), (1371541669,), (1371541743,), (1371541750,), (1371541769,), (1371541770,), (1371541771,), (1371541846,), (1371541849,), (1371541953,), (1371542032,), (1371542064,), (1371542138,), (1371542158,), (1371542169,), (1371542170,), (1371542250,), (1371542252,), (1371542254,), (1371542256,), (1371542261,), (1371542285,), (1371542357,), (1371542645,), (1371542664,), (1371542765,), (1371540391,), (1371540481,), (1371540509,), (1371540682,), (1371540703,), (1371540775,), (1371540856,), (1371540857,), (1371540880,), (1371540949,), (1371540950,), (1371540969,), (1371541045,), (1371541064,), (1371541149,), (1371541151,), (1371541167,), (1371541168,), (1371541186,), (1371541275,), (1371541277,), (1371541350,), (1371541367,), (1371541368,), (1371541462,), (1371541467,), (1371541555,), (1371541557,), (1371541567,), (1371541644,), (1371541645,), (1371541662,), (1371541664,), (1371541740,), (1371541749,), (1371541847,), (1371541848,), (1371541955,), (1371541959,), (1371542033,), (1371542034,), (1371542060,), (1371542063,), (1371542137,), (1371542157,), (1371542168,), (1371542221,), (1371542251,), (1371542258,), (1371542260,), (1371542264,), (1371542283,), (1371542358,), (1371542375,), (1371542378,), (1371542457,), (1371542579,), (1371542651,), (1371542652,), (1371542750,), (1371542755,), (1371542757,), (1371542763,), (1371542764,), (1371542768,), (1371542874,), (1371542875,), (1371542876,), (1371542877,), (1371543096,), (1371543158,), (1371543159,), (1371543209,), (1371543220,), (1371543223,), (1371543288,), (1371543354,), (1371543357,), (1371541260,), (1371541273,), (1371541274,), (1371541449,), (1371541464,), (1371541553,), (1371541554,), (1371541666,), (1371541667,), (1371541668,), (1371541742,), (1371541747,), (1371541772,), (1371541864,), (1371541936,), (1371541954,), (1371541957,), (1371541958,), (1371542061,), (1371542062,), (1371542139,), (1371542156,), (1371542165,), (1371542167,), (1371542249,), (1371542257,), (1371542265,), (1371542267,), (1371542281,), (1371542282,), (1371542317,), (1371542377,), (1371542458,), (1371542653,), (1371542654,), (1371542657,), (1371542660,), (1371542751,), (1371542752,), (1371542753,), (1371542754,), (1371542767,), (1371542769,), (1371542864,), (1371542868,), (1371542970,), (1371543097,), (1371543153,), (1371543157,), (1371543162,), (1371543210,), (1371543212,), (1371543213,), (1371543218,), (1371543219,), (1371543225,), (1371543355,), (1371543356,), (1371543448,), (1371543543,), (1371543636,), (1371543642,), (1371543643,), (1371543748,), (1371543749,), (1371543750,), (1371543753,), (1371543754,), (1371543756,), (1371543764,), (1371543765,), (1371543864,), (1371543971,), (1371544197,), (1371544249,), (1371544250,), (1371544309,), (1371544314,), (1371544796,), (1371542136,), (1371542172,), (1371542253,), (1371542262,), (1371542266,), (1371542268,), (1371542360,), (1371542376,), (1371542656,), (1371542658,), (1371542659,), (1371542756,), (1371542761,), (1371542762,), (1371542766,), (1371542770,), (1371542866,), (1371542870,), (1371542871,), (1371542872,), (1371542969,), (1371543063,), (1371543154,), (1371543155,), (1371543160,), (1371543214,), (1371543215,), (1371543216,), (1371543217,), (1371543222,), (1371543286,), (1371543333,), (1371543334,), (1371543335,), (1371543446,), (1371543544,), (1371543634,), (1371543637,), (1371543641,), (1371543731,), (1371543747,), (1371543751,), (1371543757,), (1371543758,), (1371543761,), (1371543762,), (1371543763,), (1371543769,), (1371543863,), (1371543966,), (1371544188,), (1371544189,), (1371544191,), (1371544194,), (1371544297,), (1371544299,), (1371544306,), (1371544308,), (1371544310,), (1371544311,), (1371544312,), (1371544316,), (1371544446,), (1371544495,), (1371544717,), (1371544790,), (1371544791,), (1371544793,), (1371544795,), (1371544800,), (1371544803,), (1371544804,), (1371544805,), (1371544806,), (1371544807,), (1371544924,), (1371545058,), (1371545218,), (1371545222,), (1371545298,), (1371545302,), (1371545334,), (1371545463,), (1371543095,), (1371543196,), (1371543224,), (1371543287,), (1371543289,), (1371543447,), (1371543539,), (1371543540,), (1371543542,), (1371543638,), (1371543639,), (1371543656,), (1371543733,), (1371543752,), (1371543760,), (1371543766,), (1371543767,), (1371543862,), (1371543865,), (1371543956,), (1371543968,), (1371543969,), (1371543970,), (1371544192,), (1371544193,), (1371544195,), (1371544196,), (1371544248,), (1371544300,), (1371544305,), (1371544307,), (1371544365,), (1371544366,), (1371544379,), (1371544443,), (1371544445,), (1371544448,), (1371544711,), (1371544712,), (1371544715,), (1371544718,), (1371544719,), (1371544797,), (1371544799,), (1371544874,), (1371544910,), (1371544911,), (1371544916,), (1371544923,), (1371544925,), (1371544926,), (1371545120,), (1371545219,), (1371545224,), (1371545294,), (1371545295,), (1371545300,), (1371545301,), (1371545329,), (1371545330,), (1371545332,), (1371545333,), (1371545410,), (1371545427,), (1371545429,), (1371545557,), (1371545611,), (1371545654,), (1371545658,), (1371545661,), (1371545671,), (1371545672,), (1371545688,), (1371545689,), (1371545690,), (1371545691,), (1371545738,), (1371545739,), (1371545899,), (1371545903,), (1371545971,), (1371546036,), (1371546037,), (1371546038,), (1371544057,), (1371544190,), (1371544251,), (1371544313,), (1371544442,), (1371544444,), (1371544447,), (1371544496,), (1371544590,), (1371544648,), (1371544792,), (1371544798,), (1371544802,), (1371544808,), (1371544809,), (1371544828,), (1371544835,), (1371544858,), (1371544922,), (1371544963,), (1371544964,), (1371544995,), (1371545118,), (1371545164,), (1371545220,), (1371545223,), (1371545299,), (1371545304,), (1371545325,), (1371545326,), (1371545327,), (1371545328,), (1371545426,), (1371545442,), (1371545445,), (1371545447,), (1371545529,), (1371545613,), (1371545656,), (1371545659,), (1371545662,), (1371545673,), (1371545681,), (1371545683,), (1371545685,), (1371545686,), (1371545742,), (1371545743,), (1371545795,), (1371545800,), (1371545803,), (1371545955,), (1371545963,), (1371545964,), (1371545965,), (1371545968,), (1371545969,), (1371545973,), (1371545974,), (1371545975,), (1371546035,), (1371546084,), (1371546086,), (1371546102,), (1371546153,), (1371546234,), (1371546238,), (1371546239,), (1371546240,), (1371546241,), (1371546243,), (1371546244,), (1371546245,), (1371546289,), (1371546313,), (1371546322,), (1371546368,), (1371546370,), (1371546605,), (1371546607,), (1371546611,), (1371546654,), (1371546655,), (1371546658,), (1371545059,), (1371545153,), (1371545196,), (1371545303,), (1371545331,), (1371545411,), (1371545425,), (1371545446,), (1371545545,), (1371545586,), (1371545604,), (1371545605,), (1371545612,), (1371545657,), (1371545674,), (1371545687,), (1371545692,), (1371545740,), (1371545741,), (1371545794,), (1371545799,), (1371545848,), (1371545849,), (1371545898,), (1371545900,), (1371545902,), (1371545957,), (1371545967,), (1371546025,), (1371546039,), (1371546041,), (1371546085,), (1371546100,), (1371546150,), (1371546155,), (1371546211,), (1371546212,), (1371546216,), (1371546217,), (1371546247,), (1371546248,), (1371546288,), (1371546324,), (1371546326,), (1371546363,), (1371546364,), (1371546369,), (1371546374,), (1371546377,), (1371546378,), (1371546379,), (1371546386,), (1371546606,), (1371546609,), (1371546610,), (1371546632,), (1371546661,), (1371546662,), (1371546664,), (1371546666,), (1371546696,), (1371546698,), (1371546726,), (1371546727,), (1371546729,), (1371546942,), (1371546943,), (1371546948,), (1371546988,), (1371547009,), (1371547018,), (1371547033,), (1371547039,), (1371547040,), (1371547215,), (1371547218,), (1371547279,), (1371547348,), (1371547362,), (1371545802,), (1371545904,), (1371545962,), (1371545970,), (1371546083,), (1371546101,), (1371546103,), (1371546152,), (1371546154,), (1371546213,), (1371546214,), (1371546215,), (1371546242,), (1371546246,), (1371546290,), (1371546315,), (1371546323,), (1371546325,), (1371546365,), (1371546366,), (1371546367,), (1371546371,), (1371546372,), (1371546375,), (1371546376,), (1371546382,), (1371546387,), (1371546608,), (1371546629,), (1371546630,), (1371546631,), (1371546649,), (1371546659,), (1371546665,), (1371546671,), (1371546694,), (1371546699,), (1371546700,), (1371546723,), (1371546724,), (1371546728,), (1371546763,), (1371546944,), (1371546945,), (1371546947,), (1371546989,), (1371547000,), (1371547007,), (1371547010,), (1371547011,), (1371547012,), (1371547017,), (1371547028,), (1371547032,), (1371547034,), (1371547037,), (1371547083,), (1371547214,), (1371547216,), (1371547219,), (1371547278,), (1371547280,), (1371547281,), (1371547283,), (1371547330,), (1371547345,), (1371547346,), (1371547352,), (1371547353,), (1371547363,), (1371547366,), (1371547494,), (1371547538,), (1371547541,), (1371547542,), (1371547544,), (1371547565,), (1371547610,), (1371547619,), (1371547623,), (1371547677,), (1371547683,), (1371547688,), (1371547690,), (1371547830,), (1371547838,), (1371547941,), (1371547943,), (1371547944,), (1371546381,), (1371546436,), (1371546695,), (1371546697,), (1371546722,), (1371546725,), (1371546730,), (1371546764,), (1371546820,), (1371546923,), (1371546946,), (1371547014,), (1371547015,), (1371547029,), (1371547030,), (1371547031,), (1371547036,), (1371547038,), (1371547041,), (1371547081,), (1371547105,), (1371547145,), (1371547160,), (1371547161,), (1371547217,), (1371547230,), (1371547282,), (1371547327,), (1371547347,), (1371547350,), (1371547351,), (1371547360,), (1371547364,), (1371547367,), (1371547407,), (1371547427,), (1371547466,), (1371547467,), (1371547469,), (1371547486,), (1371547545,), (1371547564,), (1371547566,), (1371547620,), (1371547622,), (1371547625,), (1371547691,), (1371547692,), (1371547693,), (1371547694,), (1371547741,), (1371547753,), (1371547794,), (1371547796,), (1371547805,), (1371547833,), (1371547836,), (1371547840,), (1371547883,), (1371547938,), (1371547942,), (1371547947,), (1371547949,), (1371547950,), (1371547953,), (1371547961,), (1371547962,), (1371548016,), (1371548019,), (1371548020,), (1371548024,), (1371548039,), (1371548101,), (1371548159,), (1371548185,), (1371548186,), (1371548187,), (1371548203,), (1371548205,), (1371548256,), (1371548257,), (1371548273,), (1371548331,), (1371548344,), (1371548487,), (1371548497,), (1371548560,), (1371548581,), (1371548649,), (1371548660,), (1371547211,), (1371547231,), (1371547326,), (1371547361,), (1371547365,), (1371547409,), (1371547468,), (1371547485,), (1371547493,), (1371547537,), (1371547539,), (1371547543,), (1371547567,), (1371547684,), (1371547685,), (1371547686,), (1371547687,), (1371547689,), (1371547752,), (1371547795,), (1371547831,), (1371547832,), (1371547834,), (1371547835,), (1371547837,), (1371547874,), (1371547948,), (1371547951,), (1371547954,), (1371547958,), (1371547959,), (1371548017,), (1371548022,), (1371548025,), (1371548040,), (1371548041,), (1371548043,), (1371548088,), (1371548100,), (1371548158,), (1371548182,), (1371548188,), (1371548202,), (1371548272,), (1371548328,), (1371548405,), (1371548417,), (1371548418,), (1371548419,), (1371548421,), (1371548425,), (1371548485,), (1371548495,), (1371548559,), (1371548562,), (1371548584,), (1371548650,), (1371548662,), (1371548729,), (1371548793,), (1371548806,), (1371548815,), (1371548817,), (1371548869,), (1371548870,), (1371548892,), (1371548897,), (1371548948,), (1371549026,), (1371549099,), (1371549100,), (1371549184,), (1371549190,), (1371549194,), (1371549270,), (1371549274,), (1371549341,), (1371549411,), (1371547806,), (1371547841,), (1371547939,), (1371547946,), (1371547956,), (1371547960,), (1371548014,), (1371548021,), (1371548023,), (1371548042,), (1371548105,), (1371548154,), (1371548160,), (1371548184,), (1371548189,), (1371548190,), (1371548258,), (1371548330,), (1371548346,), (1371548347,), (1371548404,), (1371548420,), (1371548484,), (1371548496,), (1371548557,), (1371548558,), (1371548561,), (1371548563,), (1371548564,), (1371548582,), (1371548661,), (1371548730,), (1371548731,), (1371548794,), (1371548795,), (1371548891,), (1371548895,), (1371548896,), (1371548947,), (1371548950,), (1371548962,), (1371548963,), (1371548967,), (1371549033,), (1371549143,), (1371549185,), (1371549192,), (1371549228,), (1371549305,), (1371549306,), (1371549342,), (1371549344,), (1371549346,), (1371549347,), (1371549383,), (1371549404,), (1371549407,), (1371549543,), (1371549575,), (1371549579,), (1371549580,), (1371549660,), (1371549690,), (1371549734,), (1371549740,), (1371549746,), (1371549779,), (1371549781,), (1371549800,), (1371549934,), (1371549994,), (1371550027,), (1371550035,), (1371550049,), (1371550104,), (1371550106,), (1371550204,), (1371550452,), (1371548580,), (1371548592,), (1371548648,), (1371548663,), (1371548732,), (1371548812,), (1371548868,), (1371548890,), (1371548951,), (1371548966,), (1371549030,), (1371549035,), (1371549080,), (1371549097,), (1371549129,), (1371549130,), (1371549193,), (1371549222,), (1371549229,), (1371549268,), (1371549272,), (1371549273,), (1371549348,), (1371549352,), (1371549384,), (1371549405,), (1371549406,), (1371549409,), (1371549499,), (1371549502,), (1371549577,), (1371549578,), (1371549625,), (1371549626,), (1371549628,), (1371549629,), (1371549706,), (1371549770,), (1371549778,), (1371549799,), (1371549854,), (1371549855,), (1371549930,), (1371549931,), (1371549987,), (1371549989,), (1371549990,), (1371549992,), (1371549995,), (1371550031,), (1371550033,), (1371550111,), (1371550113,), (1371550139,), (1371550191,), (1371550192,), (1371550201,), (1371550203,), (1371550205,), (1371550208,), (1371550209,), (1371550213,), (1371550235,), (1371550237,), (1371550290,), (1371550387,), (1371550388,), (1371550471,), (1371550477,), (1371550547,), (1371550549,), (1371550553,), (1371550554,), (1371550557,), (1371550560,), (1371550562,), (1371550627,), (1371550630,), (1371550715,), (1371550731,), (1371550799,), (1371550801,), (1371550825,), (1371550939,), (1371549343,), (1371549410,), (1371549501,), (1371549503,), (1371549576,), (1371549627,), (1371549665,), (1371549737,), (1371549744,), (1371549745,), (1371549777,), (1371549863,), (1371549864,), (1371549933,), (1371549936,), (1371549988,), (1371549993,), (1371549996,), (1371550028,), (1371550032,), (1371550048,), (1371550114,), (1371550137,), (1371550140,), (1371550193,), (1371550195,), (1371550196,), (1371550198,), (1371550202,), (1371550210,), (1371550236,), (1371550239,), (1371550240,), (1371550316,), (1371550386,), (1371550469,), (1371550472,), (1371550473,), (1371550535,), (1371550550,), (1371550555,), (1371550558,), (1371550559,), (1371550561,), (1371550629,), (1371550640,), (1371550641,), (1371550699,), (1371550792,), (1371550793,), (1371550794,), (1371550795,), (1371550798,), (1371550802,), (1371550804,), (1371550805,), (1371550826,), (1371550827,), (1371550941,), (1371550942,), (1371550946,), (1371551032,), (1371551141,), (1371551142,), (1371551143,), (1371551205,), (1371551206,), (1371551214,), (1371551216,), (1371551217,), (1371551223,), (1371551224,), (1371551301,), (1371551302,), (1371551303,), (1371551361,), (1371551428,), (1371551505,), (1371551507,), (1371551530,), (1371551563,), (1371551577,), (1371551651,), (1371551835,), (1371550034,), (1371550112,), (1371550188,), (1371550199,), (1371550212,), (1371550238,), (1371550315,), (1371550467,), (1371550468,), (1371550470,), (1371550476,), (1371550479,), (1371550548,), (1371550628,), (1371550631,), (1371550639,), (1371550643,), (1371550700,), (1371550714,), (1371550717,), (1371550787,), (1371550788,), (1371550790,), (1371550791,), (1371550797,), (1371550820,), (1371550925,), (1371550943,), (1371550944,), (1371550945,), (1371551031,), (1371551033,), (1371551076,), (1371551139,), (1371551145,), (1371551215,), (1371551218,), (1371551221,), (1371551222,), (1371551294,), (1371551297,), (1371551298,), (1371551299,), (1371551307,), (1371551359,), (1371551422,), (1371551452,), (1371551456,), (1371551508,), (1371551564,), (1371551566,), (1371551567,), (1371551568,), (1371551569,), (1371551570,), (1371551571,), (1371551573,), (1371551576,), (1371551720,), (1371551772,), (1371551773,), (1371551851,), (1371551852,), (1371551853,), (1371551854,), (1371551897,), (1371551898,), (1371551900,), (1371551902,), (1371551903,), (1371551987,), (1371552043,), (1371552062,), (1371552122,), (1371552152,), (1371552189,), (1371552219,), (1371552275,), (1371550786,), (1371550803,), (1371550894,), (1371550995,), (1371551034,), (1371551144,), (1371551219,), (1371551226,), (1371551227,), (1371551295,), (1371551300,), (1371551304,), (1371551308,), (1371551389,), (1371551390,), (1371551426,), (1371551429,), (1371551460,), (1371551461,), (1371551506,), (1371551528,), (1371551529,), (1371551565,), (1371551574,), (1371551575,), (1371551629,), (1371551636,), (1371551649,), (1371551723,), (1371551771,), (1371551783,), (1371551784,), (1371551833,), (1371551834,), (1371551836,), (1371551899,), (1371551925,), (1371551926,), (1371551928,), (1371551931,), (1371551934,), (1371551984,), (1371552063,), (1371552083,), (1371552112,), (1371552115,), (1371552116,), (1371552123,), (1371552151,), (1371552220,), (1371552222,), (1371552224,), (1371552225,), (1371552323,), (1371552345,), (1371552393,), (1371552394,), (1371552413,), (1371552437,), (1371552438,), (1371552439,), (1371552499,), (1371552551,), (1371552557,), (1371552558,), (1371552559,), (1371552564,), (1371552571,), (1371552585,), (1371552692,), (1371552792,), (1371552794,), (1371552795,), (1371552798,), (1371552868,), (1371552870,), (1371552878,), (1371553113,), (1371551572,), (1371551650,), (1371551710,), (1371551785,), (1371551838,), (1371551929,), (1371551930,), (1371551932,), (1371551936,), (1371551979,), (1371551983,), (1371552003,), (1371552061,), (1371552085,), (1371552102,), (1371552119,), (1371552121,), (1371552153,), (1371552190,), (1371552226,), (1371552227,), (1371552228,), (1371552229,), (1371552230,), (1371552321,), (1371552322,), (1371552410,), (1371552412,), (1371552414,), (1371552416,), (1371552429,), (1371552491,), (1371552500,), (1371552550,), (1371552552,), (1371552554,), (1371552556,), (1371552560,), (1371552567,), (1371552569,), (1371552644,), (1371552646,), (1371552647,), (1371552659,), (1371552691,), (1371552768,), (1371552799,), (1371552852,), (1371552854,), (1371552865,), (1371552866,), (1371552867,), (1371552873,), (1371552874,), (1371552876,), (1371552880,), (1371552883,), (1371552949,), (1371552950,), (1371553055,), (1371553119,), (1371553183,), (1371553185,), (1371553190,), (1371553205,), (1371553212,), (1371553214,), (1371553215,), (1371553216,), (1371553217,), (1371553219,), (1371553263,), (1371553265,), (1371553351,), (1371553481,), (1371553483,), (1371553488,), (1371553491,), (1371553492,), (1371553494,), (1371553549,), (1371553550,), (1371553816,), (1371553885,), (1371552274,), (1371552409,), (1371552411,), (1371552501,), (1371552555,), (1371552561,), (1371552562,), (1371552565,), (1371552570,), (1371552645,), (1371552680,), (1371552690,), (1371552767,), (1371552791,), (1371552793,), (1371552856,), (1371552857,), (1371552872,), (1371552875,), (1371552879,), (1371552881,), (1371552933,), (1371552937,), (1371552947,), (1371552948,), (1371553002,), (1371553054,), (1371553115,), (1371553116,), (1371553118,), (1371553186,), (1371553187,), (1371553209,), (1371553211,), (1371553213,), (1371553218,), (1371553264,), (1371553284,), (1371553285,), (1371553334,), (1371553395,), (1371553412,), (1371553413,), (1371553465,), (1371553482,), (1371553484,), (1371553487,), (1371553495,), (1371553553,), (1371553555,), (1371553556,), (1371553560,), (1371553563,), (1371553564,), (1371553566,), (1371553635,), (1371553692,), (1371553693,), (1371553809,), (1371553814,), (1371553817,), (1371553821,), (1371553841,), (1371553842,), (1371553888,), (1371553889,), (1371553892,), (1371553893,), (1371553894,), (1371553964,), (1371553965,), (1371553989,), (1371554133,), (1371554134,), (1371554138,), (1371554142,), (1371554194,), (1371554197,), (1371554199,), (1371554231,), (1371554309,), (1371554496,), (1371554537,), (1371554617,), (1371553001,), (1371553117,), (1371553188,), (1371553210,), (1371553286,), (1371553333,), (1371553335,), (1371553336,), (1371553350,), (1371553462,), (1371553463,), (1371553464,), (1371553489,), (1371553490,), (1371553493,), (1371553554,), (1371553557,), (1371553559,), (1371553561,), (1371553562,), (1371553565,), (1371553567,), (1371553637,), (1371553807,), (1371553808,), (1371553812,), (1371553818,), (1371553819,), (1371553820,), (1371553822,), (1371553840,), (1371553887,), (1371553890,), (1371553891,), (1371553895,), (1371553917,), (1371554067,), (1371554135,), (1371554137,), (1371554139,), (1371554143,), (1371554145,), (1371554146,), (1371554195,), (1371554227,), (1371554228,), (1371554229,), (1371554230,), (1371554232,), (1371554441,), (1371554495,), (1371554531,), (1371554533,), (1371554534,), (1371554536,), (1371554538,), (1371554544,), (1371554610,), (1371554614,), (1371554615,), (1371554621,), (1371554639,), (1371554849,), (1371554926,), (1371554993,), (1371554996,), (1371554997,), (1371554999,), (1371555002,), (1371555004,), (1371555015,), (1371555019,), (1371555020,), (1371555094,), (1371555352,), (1371555395,), (1371555406,), (1371555469,), (1371553558,), (1371553568,), (1371553636,), (1371553690,), (1371553811,), (1371553813,), (1371553843,), (1371553846,), (1371553886,), (1371553896,), (1371553916,), (1371553918,), (1371553963,), (1371553986,), (1371554066,), (1371554115,), (1371554136,), (1371554141,), (1371554144,), (1371554147,), (1371554198,), (1371554200,), (1371554225,), (1371554233,), (1371554234,), (1371554235,), (1371554310,), (1371554392,), (1371554442,), (1371554465,), (1371554520,), (1371554535,), (1371554539,), (1371554541,), (1371554542,), (1371554543,), (1371554608,), (1371554618,), (1371554619,), (1371554640,), (1371554667,), (1371554785,), (1371554851,), (1371554921,), (1371554922,), (1371554923,), (1371554994,), (1371554995,), (1371554998,), (1371555000,), (1371555001,), (1371555005,), (1371555006,), (1371555095,), (1371555097,), (1371555191,), (1371555339,), (1371555386,), (1371555388,), (1371555389,), (1371555391,), (1371555392,), (1371555393,), (1371555412,), (1371555425,), (1371555441,), (1371555442,), (1371555470,), (1371555524,), (1371555527,), (1371555675,), (1371555678,), (1371555707,), (1371555714,), (1371555723,), (1371555763,), (1371555764,), (1371555805,), (1371555806,), (1371555859,), (1371556053,), (1371556114,), (1371556115,), (1371556141,), (1371556396,), (1371554390,), (1371554391,), (1371554439,), (1371554464,), (1371554532,), (1371554616,), (1371554620,), (1371554681,), (1371554787,), (1371554788,), (1371554840,), (1371554850,), (1371554920,), (1371554924,), (1371554925,), (1371555003,), (1371555016,), (1371555017,), (1371555018,), (1371555093,), (1371555096,), (1371555175,), (1371555189,), (1371555198,), (1371555199,), (1371555387,), (1371555390,), (1371555394,), (1371555396,), (1371555397,), (1371555483,), (1371555484,), (1371555485,), (1371555521,), (1371555522,), (1371555525,), (1371555529,), (1371555579,), (1371555581,), (1371555676,), (1371555677,), (1371555681,), (1371555682,), (1371555762,), (1371555776,), (1371555777,), (1371555807,), (1371555861,), (1371555862,), (1371555863,), (1371555888,), (1371555964,), (1371555966,), (1371556047,), (1371556048,), (1371556097,), (1371556100,), (1371556140,), (1371556143,), (1371556225,), (1371556239,), (1371556242,), (1371556244,), (1371556245,), (1371556246,), (1371556342,), (1371556482,), (1371556513,), (1371556514,), (1371556516,), (1371556524,), (1371556583,), (1371556626,), (1371556628,), (1371556639,), (1371556641,), (1371556668,), (1371556777,), (1371556878,), (1371556947,), (1371556952,), (1371556964,), (1371557211,), (1371555188,), (1371555261,), (1371555285,), (1371555351,), (1371555398,), (1371555486,), (1371555526,), (1371555545,), (1371555547,), (1371555582,), (1371555661,), (1371555672,), (1371555673,), (1371555674,), (1371555680,), (1371555779,), (1371555780,), (1371555854,), (1371555860,), (1371555889,), (1371555891,), (1371555962,), (1371556001,), (1371556045,), (1371556046,), (1371556052,), (1371556054,), (1371556098,), (1371556116,), (1371556117,), (1371556217,), (1371556240,), (1371556243,), (1371556248,), (1371556249,), (1371556302,), (1371556393,), (1371556397,), (1371556401,), (1371556472,), (1371556483,), (1371556485,), (1371556517,), (1371556519,), (1371556521,), (1371556625,), (1371556629,), (1371556632,), (1371556633,), (1371556638,), (1371556705,), (1371556793,), (1371556801,), (1371556802,), (1371556863,), (1371556864,), (1371556872,), (1371556949,), (1371556950,), (1371556962,), (1371557034,), (1371557049,), (1371557070,), (1371557072,), (1371557105,), (1371557131,), (1371557208,), (1371557210,), (1371557212,), (1371557213,), (1371557229,), (1371557309,), (1371557315,), (1371557366,), (1371557389,), (1371557455,), (1371557465,), (1371557466,), (1371557473,), (1371557509,), (1371557527,), (1371557538,), (1371557560,), (1371557565,), (1371557613,), (1371557711,), (1371557771,), (1371557835,), (1371557844,), (1371558019,), (1371556099,), (1371556241,), (1371556341,), (1371556402,), (1371556515,), (1371556518,), (1371556520,), (1371556585,), (1371556586,), (1371556627,), (1371556630,), (1371556660,), (1371556711,), (1371556720,), (1371556800,), (1371556803,), (1371556951,), (1371556953,), (1371556954,), (1371556963,), (1371556994,), (1371557035,), (1371557039,), (1371557051,), (1371557069,), (1371557099,), (1371557134,), (1371557135,), (1371557196,), (1371557209,), (1371557294,), (1371557373,), (1371557374,), (1371557388,), (1371557401,), (1371557448,), (1371557450,), (1371557452,), (1371557454,), (1371557464,), (1371557519,), (1371557537,), (1371557567,), (1371557569,), (1371557686,), (1371557742,), (1371557743,), (1371557758,), (1371557769,), (1371557770,), (1371557826,), (1371557827,), (1371557828,), (1371557831,), (1371557833,), (1371557840,), (1371557907,), (1371557953,), (1371558052,), (1371558054,), (1371558055,), (1371558085,), (1371558086,), (1371558105,), (1371558132,), (1371558137,), (1371558138,), (1371558142,), (1371558144,), (1371558147,), (1371558237,), (1371558238,), (1371558361,), (1371558387,), (1371558388,), (1371558419,), (1371558426,), (1371558441,), (1371558466,), (1371558467,), (1371558475,), (1371558501,), (1371558661,), (1371558726,), (1371557106,), (1371557132,), (1371557242,), (1371557243,), (1371557285,), (1371557316,), (1371557447,), (1371557468,), (1371557474,), (1371557475,), (1371557520,), (1371557561,), (1371557564,), (1371557586,), (1371557610,), (1371557687,), (1371557688,), (1371557741,), (1371557795,), (1371557824,), (1371557825,), (1371557829,), (1371557830,), (1371557838,), (1371557879,), (1371557922,), (1371557926,), (1371557928,), (1371557987,), (1371558051,), (1371558088,), (1371558108,), (1371558119,), (1371558135,), (1371558139,), (1371558141,), (1371558143,), (1371558191,), (1371558233,), (1371558234,), (1371558239,), (1371558274,), (1371558325,), (1371558420,), (1371558421,), (1371558423,), (1371558424,), (1371558463,), (1371558464,), (1371558465,), (1371558479,), (1371558524,), (1371558525,), (1371558526,), (1371558584,), (1371558585,), (1371558666,), (1371558667,), (1371558668,), (1371558673,), (1371558738,), (1371558742,), (1371558748,), (1371558760,), (1371558770,), (1371558775,), (1371558787,), (1371558903,), (1371558905,), (1371558930,), (1371558940,), (1371558980,), (1371559003,), (1371559007,), (1371559084,), (1371559203,), (1371559266,), (1371559454,), (1371559455,), (1371557924,), (1371557986,), (1371558050,), (1371558053,), (1371558087,), (1371558140,), (1371558149,), (1371558150,), (1371558235,), (1371558240,), (1371558265,), (1371558267,), (1371558291,), (1371558360,), (1371558362,), (1371558386,), (1371558417,), (1371558418,), (1371558425,), (1371558470,), (1371558471,), (1371558477,), (1371558481,), (1371558521,), (1371558527,), (1371558588,), (1371558589,), (1371558641,), (1371558660,), (1371558664,), (1371558665,), (1371558669,), (1371558675,), (1371558737,), (1371558744,), (1371558745,), (1371558750,), (1371558774,), (1371558785,), (1371558823,), (1371558841,), (1371558900,), (1371558904,), (1371558925,), (1371558931,), (1371559001,), (1371559004,), (1371559005,), (1371559008,), (1371559024,), (1371559026,), (1371559056,), (1371559081,), (1371559083,), (1371559086,), (1371559147,), (1371559148,), (1371559219,), (1371559263,), (1371559264,), (1371559328,), (1371559331,), (1371559333,), (1371559334,), (1371559338,), (1371559339,), (1371559340,), (1371559458,), (1371559462,), (1371559482,), (1371559483,), (1371559520,), (1371559555,), (1371559558,), (1371559559,), (1371559608,), (1371559610,), (1371559636,), (1371559638,), (1371559639,), (1371559641,), (1371559764,), (1371559776,), (1371559778,), (1371559848,), (1371559922,), (1371559926,), (1371559928,), (1371559929,), (1371558528,), (1371558662,), (1371558663,), (1371558671,), (1371558736,), (1371558746,), (1371558752,), (1371558822,), (1371558898,), (1371558924,), (1371558935,), (1371558936,), (1371559002,), (1371559006,), (1371559051,), (1371559053,), (1371559054,), (1371559055,), (1371559080,), (1371559144,), (1371559146,), (1371559204,), (1371559205,), (1371559206,), (1371559218,), (1371559221,), (1371559265,), (1371559326,), (1371559327,), (1371559329,), (1371559330,), (1371559332,), (1371559337,), (1371559422,), (1371559457,), (1371559463,), (1371559486,), (1371559487,), (1371559490,), (1371559519,), (1371559556,), (1371559560,), (1371559562,), (1371559565,), (1371559607,), (1371559612,), (1371559640,), (1371559642,), (1371559699,), (1371559760,), (1371559777,), (1371559779,), (1371559780,), (1371559791,), (1371559794,), (1371559850,), (1371559905,), (1371559910,), (1371559925,), (1371559927,), (1371559931,), (1371559989,), (1371559997,), (1371560053,), (1371560103,), (1371560104,), (1371560106,), (1371560108,), (1371560109,), (1371560110,), (1371560143,), (1371560211,), (1371560214,), (1371560215,), (1371560218,), (1371560273,), (1371560276,), (1371560415,), (1371560480,), (1371560482,), (1371560483,), (1371560486,), (1371560490,), (1371560492,), (1371560564,), (1371560645,), (1371560767,), (1371560812,), (1371560872,), (1371560873,), (1371559274,), (1371559335,), (1371559336,), (1371559421,), (1371559459,), (1371559488,), (1371559489,), (1371559561,), (1371559563,), (1371559564,), (1371559609,), (1371559611,), (1371559643,), (1371559644,), (1371559698,), (1371559719,), (1371559761,), (1371559775,), (1371559781,), (1371559782,), (1371559836,), (1371559849,), (1371559907,), (1371559908,), (1371559921,), (1371559923,), (1371559930,), (1371559991,), (1371560054,), (1371560057,), (1371560111,), (1371560114,), (1371560115,), (1371560116,), (1371560139,), (1371560206,), (1371560212,), (1371560216,), (1371560219,), (1371560274,), (1371560275,), (1371560277,), (1371560416,), (1371560418,), (1371560484,), (1371560487,), (1371560488,), (1371560491,), (1371560562,), (1371560595,), (1371560596,), (1371560598,), (1371560603,), (1371560643,), (1371560647,), (1371560675,), (1371560762,), (1371560764,), (1371560849,), (1371560868,), (1371560871,), (1371560879,), (1371560884,), (1371560886,), (1371560890,), (1371560892,), (1371560893,), (1371560944,), (1371560946,), (1371560948,), (1371561068,), (1371561077,), (1371561171,), (1371561173,), (1371561228,), (1371561230,), (1371561233,), (1371561242,), (1371561281,), (1371561286,), (1371561287,), (1371561365,), (1371561548,), (1371561617,), (1371559847,), (1371559909,), (1371559994,), (1371560040,), (1371560042,), (1371560112,), (1371560141,), (1371560207,), (1371560208,), (1371560213,), (1371560217,), (1371560278,), (1371560338,), (1371560413,), (1371560414,), (1371560417,), (1371560479,), (1371560495,), (1371560541,), (1371560563,), (1371560593,), (1371560599,), (1371560600,), (1371560602,), (1371560642,), (1371560703,), (1371560765,), (1371560766,), (1371560769,), (1371560877,), (1371560880,), (1371560881,), (1371560883,), (1371560888,), (1371560894,), (1371560895,), (1371560898,), (1371560949,), (1371561013,), (1371561015,), (1371561016,), (1371561017,), (1371561160,), (1371561161,), (1371561227,), (1371561229,), (1371561234,), (1371561246,), (1371561247,), (1371561248,), (1371561288,), (1371561293,), (1371561359,), (1371561361,), (1371561366,), (1371561507,), (1371561510,), (1371561551,), (1371561616,), (1371561619,), (1371561628,), (1371561629,), (1371561630,), (1371561634,), (1371561638,), (1371561696,), (1371561697,), (1371561701,), (1371561825,), (1371561890,), (1371561955,), (1371561959,), (1371561962,), (1371561967,), (1371562040,), (1371562044,), (1371562131,), (1371562290,), (1371560644,), (1371560646,), (1371560701,), (1371560737,), (1371560810,), (1371560811,), (1371560878,), (1371560885,), (1371560896,), (1371560943,), (1371560945,), (1371560947,), (1371560968,), (1371561014,), (1371561018,), (1371561085,), (1371561135,), (1371561137,), (1371561170,), (1371561174,), (1371561235,), (1371561241,), (1371561244,), (1371561245,), (1371561284,), (1371561289,), (1371561291,), (1371561292,), (1371561360,), (1371561364,), (1371561429,), (1371561432,), (1371561508,), (1371561549,), (1371561553,), (1371561615,), (1371561626,), (1371561627,), (1371561631,), (1371561632,), (1371561633,), (1371561635,), (1371561637,), (1371561700,), (1371561702,), (1371561764,), (1371561776,), (1371561823,), (1371561888,), (1371561956,), (1371561957,), (1371561963,), (1371561966,), (1371561969,), (1371561971,), (1371561972,), (1371561973,), (1371561974,), (1371562036,), (1371562037,), (1371562068,), (1371562075,), (1371562132,), (1371562140,), (1371562142,), (1371562205,), (1371562208,), (1371562212,), (1371562214,), (1371562229,), (1371562231,), (1371562293,), (1371562294,), (1371562319,), (1371562320,), (1371562328,), (1371562385,), (1371562393,), (1371562446,), (1371562448,), (1371562457,), (1371562459,), (1371562466,), (1371562529,), (1371562540,), (1371562553,), (1371562704,), (1371562741,), (1371562849,), (1371562911,), (1371561239,), (1371561362,), (1371561367,), (1371561368,), (1371561431,), (1371561469,), (1371561555,), (1371561621,), (1371561622,), (1371561625,), (1371561694,), (1371561695,), (1371561698,), (1371561699,), (1371561762,), (1371561763,), (1371561768,), (1371561821,), (1371561824,), (1371561889,), (1371561892,), (1371561893,), (1371561961,), (1371561964,), (1371561970,), (1371561975,), (1371561991,), (1371562039,), (1371562041,), (1371562042,), (1371562067,), (1371562070,), (1371562071,), (1371562076,), (1371562138,), (1371562141,), (1371562197,), (1371562201,), (1371562211,), (1371562213,), (1371562233,), (1371562292,), (1371562295,), (1371562296,), (1371562297,), (1371562322,), (1371562329,), (1371562380,), (1371562382,), (1371562383,), (1371562444,), (1371562445,), (1371562462,), (1371562464,), (1371562465,), (1371562467,), (1371562539,), (1371562543,), (1371562545,), (1371562546,), (1371562554,), (1371562572,), (1371562676,), (1371562679,), (1371562702,), (1371562707,), (1371562781,), (1371562782,), (1371562837,), (1371562839,), (1371562841,), (1371562846,), (1371562905,), (1371562906,), (1371562907,), (1371562908,), (1371562909,), (1371562967,), (1371562971,), (1371562975,), (1371563012,), (1371563015,), (1371563085,), (1371563089,), (1371563136,), (1371563143,), (1371563144,), (1371563146,), (1371563195,), (1371563212,), (1371563257,), (1371563296,), (1371563309,), (1371563348,), (1371563422,), (1371563427,), (1371561960,), (1371562038,), (1371562060,), (1371562066,), (1371562139,), (1371562199,), (1371562203,), (1371562206,), (1371562228,), (1371562230,), (1371562321,), (1371562324,), (1371562376,), (1371562377,), (1371562384,), (1371562392,), (1371562447,), (1371562453,), (1371562460,), (1371562461,), (1371562469,), (1371562541,), (1371562542,), (1371562555,), (1371562675,), (1371562680,), (1371562701,), (1371562705,), (1371562706,), (1371562773,), (1371562783,), (1371562838,), (1371562844,), (1371562845,), (1371562851,), (1371562904,), (1371562910,), (1371562942,), (1371562966,), (1371562974,), (1371563009,), (1371563010,), (1371563011,), (1371563084,), (1371563090,), (1371563133,), (1371563137,), (1371563141,), (1371563142,), (1371563190,), (1371563193,), (1371563194,), (1371563258,), (1371563310,), (1371563311,), (1371563336,), (1371563345,), (1371563367,), (1371563373,), (1371563420,), (1371563423,), (1371563425,), (1371563429,), (1371563455,), (1371563489,), (1371563493,), (1371563566,), (1371563603,), (1371563624,), (1371563625,), (1371563658,), (1371563663,), (1371563664,), (1371563670,), (1371563672,), (1371563673,), (1371563729,), (1371563732,), (1371563733,), (1371563906,), (1371563909,), (1371563925,), (1371563971,), (1371564042,), (1371562544,), (1371562625,), (1371562774,), (1371562780,), (1371562821,), (1371562850,), (1371562943,), (1371562968,), (1371562969,), (1371562970,), (1371562976,), (1371563013,), (1371563086,), (1371563088,), (1371563091,), (1371563098,), (1371563134,), (1371563139,), (1371563189,), (1371563191,), (1371563253,), (1371563255,), (1371563260,), (1371563261,), (1371563294,), (1371563368,), (1371563369,), (1371563372,), (1371563375,), (1371563421,), (1371563426,), (1371563490,), (1371563492,), (1371563547,), (1371563548,), (1371563549,), (1371563568,), (1371563598,), (1371563657,), (1371563660,), (1371563661,), (1371563665,), (1371563667,), (1371563669,), (1371563730,), (1371563735,), (1371563764,), (1371563765,), (1371563766,), (1371563808,), (1371563856,), (1371563903,), (1371563904,), (1371563907,), (1371563924,), (1371563968,), (1371563970,), (1371564032,), (1371564033,), (1371564036,), (1371564037,), (1371564038,), (1371564086,), (1371564144,), (1371564185,), (1371564186,), (1371564187,), (1371564189,), (1371564249,), (1371564250,), (1371564312,), (1371564359,), (1371564361,), (1371564387,), (1371564433,), (1371564558,), (1371564559,), (1371564691,), (1371564722,), (1371563254,), (1371563295,), (1371563344,), (1371563428,), (1371563451,), (1371563454,), (1371563491,), (1371563545,), (1371563546,), (1371563567,), (1371563599,), (1371563601,), (1371563602,), (1371563620,), (1371563626,), (1371563668,), (1371563728,), (1371563734,), (1371563736,), (1371563737,), (1371563738,), (1371563762,), (1371563763,), (1371563767,), (1371563810,), (1371563857,), (1371563858,), (1371563892,), (1371563902,), (1371563905,), (1371563923,), (1371564034,), (1371564035,), (1371564039,), (1371564040,), (1371564041,), (1371564044,), (1371564045,), (1371564083,), (1371564085,), (1371564138,), (1371564139,), (1371564147,), (1371564184,), (1371564190,), (1371564246,), (1371564300,), (1371564309,), (1371564310,), (1371564311,), (1371564316,), (1371564358,), (1371564384,), (1371564385,), (1371564388,), (1371564389,), (1371564435,), (1371564437,), (1371564555,), (1371564556,), (1371564574,), (1371564624,), (1371564643,), (1371564647,), (1371564649,), (1371564651,), (1371564690,), (1371564719,), (1371564720,), (1371564723,), (1371564760,), (1371564762,), (1371564853,), (1371564910,), (1371564930,), (1371564934,), (1371564937,), (1371564938,), (1371564939,), (1371565004,), (1371565005,), (1371565069,), (1371565070,), (1371565076,), (1371565168,), (1371565177,), (1371565214,), (1371565246,), (1371565252,), (1371565448,), (1371565459,), (1371565470,), (1371565480,), (1371565481,), (1371565501,), (1371565502,), (1371565518,), (1371565520,), (1371565522,), (1371565531,), (1371565539,), (1371565540,), (1371565550,), (1371565551,), (1371565552,), (1371565563,), (1371565564,), (1371565575,), (1371565579,), (1371565580,), (1371565601,), (1371565602,), (1371565603,), (1371565610,), (1371565618,), (1371565619,), (1371565620,), (1371565621,), (1371565623,), (1371565626,), (1371565636,), (1371565637,), (1371565658,), (1371565665,), (1371565666,), (1371565683,), (1371565684,), (1371565688,), (1371565689,), (1371565690,), (1371565692,), (1371565693,), (1371565700,), (1371565702,), (1371565722,), (1371565753,), (1371565754,), (1371565765,), (1371565775,), (1371565779,), (1371565780,), (1371565782,), (1371565783,), (1371565789,), (1371565790,), (1371565792,), (1371565842,), (1371565843,), (1371565859,), (1371565860,), (1371565869,), (1371565872,), (1371565877,), (1371565903,), (1371565906,), (1371565993,), (1371566005,), (1371566010,), (1371566047,), (1371566190,), (1371566192,), (1371565634,), (1371565635,), (1371565667,), (1371565682,), (1371565701,), (1371565704,), (1371565705,), (1371565717,), (1371565755,), (1371565756,), (1371565763,), (1371565764,), (1371565776,), (1371565777,), (1371565794,), (1371565796,), (1371565798,), (1371565799,), (1371565829,), (1371565840,), (1371565841,), (1371565844,), (1371565868,), (1371565870,), (1371565871,), (1371565874,), (1371565878,), (1371565896,), (1371565898,), (1371565904,), (1371565905,), (1371565957,), (1371565992,), (1371565995,), (1371565996,), (1371565997,), (1371565998,), (1371566001,), (1371566003,), (1371566006,), (1371566007,), (1371566008,), (1371566011,), (1371566012,), (1371566057,), (1371566160,), (1371566161,), (1371566163,), (1371566165,), (1371566166,), (1371566168,), (1371566169,), (1371566170,), (1371566174,), (1371566178,), (1371566184,), (1371566185,), (1371566186,), (1371566368,), (1371566369,), (1371566373,), (1371566379,), (1371566398,), (1371566399,), (1371566402,), (1371566404,), (1371566409,), (1371566410,), (1371566412,), (1371566563,), (1371566567,), (1371566572,), (1371566579,), (1371566611,), (1371566616,), (1371566620,), (1371566795,), (1371566880,), (1371565876,), (1371565900,), (1371565929,), (1371565956,), (1371565994,), (1371565999,), (1371566009,), (1371566049,), (1371566050,), (1371566051,), (1371566053,), (1371566056,), (1371566058,), (1371566094,), (1371566155,), (1371566156,), (1371566162,), (1371566164,), (1371566167,), (1371566171,), (1371566175,), (1371566180,), (1371566182,), (1371566183,), (1371566189,), (1371566194,), (1371566214,), (1371566215,), (1371566372,), (1371566374,), (1371566377,), (1371566378,), (1371566396,), (1371566397,), (1371566401,), (1371566405,), (1371566406,), (1371566408,), (1371566411,), (1371566413,), (1371566418,), (1371566419,), (1371566564,), (1371566565,), (1371566568,), (1371566575,), (1371566576,), (1371566577,), (1371566612,), (1371566613,), (1371566615,), (1371566617,), (1371566619,), (1371566621,), (1371566642,), (1371566646,), (1371566752,), (1371566754,), (1371566794,), (1371566823,), (1371566830,), (1371566833,), (1371566870,), (1371566871,), (1371566873,), (1371566874,), (1371566878,), (1371566881,), (1371566909,), (1371566919,), (1371566969,), (1371567065,), (1371567067,), (1371567069,), (1371567094,), (1371567106,), (1371567110,), (1371567111,), (1371567152,), (1371567161,), (1371567373,), (1371567397,), (1371567439,), (1371567463,), (1371566289,), (1371566371,), (1371566439,), (1371566440,), (1371566443,), (1371566473,), (1371566475,), (1371566526,), (1371566527,), (1371566528,), (1371566529,), (1371566530,), (1371566531,), (1371566532,), (1371566570,), (1371566618,), (1371566622,), (1371566644,), (1371566688,), (1371566695,), (1371566697,), (1371566700,), (1371566701,), (1371566703,), (1371566718,), (1371566719,), (1371566720,), (1371566791,), (1371566876,), (1371566882,), (1371566883,), (1371566916,), (1371566918,), (1371566942,), (1371566944,), (1371566946,), (1371566948,), (1371566949,), (1371566963,), (1371566964,), (1371567066,), (1371567107,), (1371567151,), (1371567154,), (1371567162,), (1371567238,), (1371567242,), (1371567244,), (1371567247,), (1371567250,), (1371567252,), (1371567257,), (1371567288,), (1371567353,), (1371567383,), (1371567420,), (1371567427,), (1371567461,), (1371567462,), (1371567465,), (1371567503,), (1371567505,), (1371567506,), (1371567507,), (1371567526,), (1371567528,), (1371567549,), (1371567624,), (1371567709,), (1371567710,), (1371567713,), (1371567754,), (1371567761,), (1371567771,), (1371567772,), (1371567773,), (1371567841,), (1371567848,), (1371566573,), (1371566647,), (1371566650,), (1371566687,), (1371566690,), (1371566693,), (1371566751,), (1371566826,), (1371566879,), (1371566886,), (1371566911,), (1371566912,), (1371566920,), (1371566943,), (1371566950,), (1371566952,), (1371566965,), (1371566968,), (1371566970,), (1371567026,), (1371567068,), (1371567071,), (1371567103,), (1371567108,), (1371567109,), (1371567155,), (1371567156,), (1371567239,), (1371567241,), (1371567245,), (1371567248,), (1371567249,), (1371567255,), (1371567258,), (1371567321,), (1371567371,), (1371567372,), (1371567379,), (1371567399,), (1371567418,), (1371567424,), (1371567438,), (1371567440,), (1371567464,), (1371567471,), (1371567475,), (1371567476,), (1371567504,), (1371567529,), (1371567552,), (1371567621,), (1371567625,), (1371567648,), (1371567649,), (1371567711,), (1371567717,), (1371567720,), (1371567765,), (1371567767,), (1371567769,), (1371567770,), (1371567777,), (1371567780,), (1371567794,), (1371567850,), (1371567899,), (1371567904,), (1371567956,), (1371567961,), (1371567976,), (1371567977,), (1371568014,), (1371568017,), (1371568046,), (1371568047,), (1371568051,), (1371568052,), (1371568059,), (1371568090,), (1371568121,), (1371568173,), (1371568253,), (1371568283,), (1371568288,), (1371568330,), (1371568352,), (1371568361,), (1371568399,), (1371568413,), (1371568591,), (1371567165,), (1371567240,), (1371567251,), (1371567289,), (1371567323,), (1371567350,), (1371567351,), (1371567400,), (1371567434,), (1371567441,), (1371567468,), (1371567473,), (1371567477,), (1371567502,), (1371567532,), (1371567548,), (1371567551,), (1371567553,), (1371567598,), (1371567601,), (1371567651,), (1371567653,), (1371567654,), (1371567706,), (1371567714,), (1371567715,), (1371567768,), (1371567775,), (1371567781,), (1371567840,), (1371567846,), (1371567847,), (1371567852,), (1371567898,), (1371567900,), (1371567955,), (1371567958,), (1371567962,), (1371568003,), (1371568011,), (1371568016,), (1371568054,), (1371568055,), (1371568064,), (1371568116,), (1371568117,), (1371568120,), (1371568122,), (1371568169,), (1371568172,), (1371568248,), (1371568249,), (1371568280,), (1371568281,), (1371568287,), (1371568292,), (1371568354,), (1371568363,), (1371568364,), (1371568371,), (1371568373,), (1371568400,), (1371568405,), (1371568409,), (1371568411,), (1371568470,), (1371568475,), (1371568605,), (1371568607,), (1371568615,), (1371568616,), (1371568642,), (1371568644,), (1371568648,), (1371568666,), (1371568669,), (1371568671,), (1371568723,), (1371568725,), (1371568739,), (1371568745,), (1371568749,), (1371568959,), (1371568960,), (1371569021,), (1371569024,), (1371569025,), (1371569040,), (1371569091,), (1371569273,), (1371567753,), (1371567764,), (1371567779,), (1371567844,), (1371567874,), (1371567897,), (1371567960,), (1371567974,), (1371568002,), (1371568013,), (1371568053,), (1371568057,), (1371568061,), (1371568063,), (1371568123,), (1371568124,), (1371568140,), (1371568167,), (1371568168,), (1371568251,), (1371568254,), (1371568257,), (1371568286,), (1371568289,), (1371568290,), (1371568294,), (1371568357,), (1371568358,), (1371568359,), (1371568366,), (1371568397,), (1371568401,), (1371568404,), (1371568414,), (1371568417,), (1371568448,), (1371568449,), (1371568469,), (1371568603,), (1371568604,), (1371568609,), (1371568610,), (1371568646,), (1371568651,), (1371568662,), (1371568663,), (1371568665,), (1371568726,), (1371568728,), (1371568733,), (1371568736,), (1371568738,), (1371568740,), (1371568747,), (1371568963,), (1371568965,), (1371568966,), (1371568970,), (1371568971,), (1371568973,), (1371569019,), (1371569023,), (1371569029,), (1371569084,), (1371569085,), (1371569089,), (1371569090,), (1371569092,), (1371569093,), (1371569095,), (1371569206,), (1371569209,), (1371569210,), (1371569211,), (1371569254,), (1371569268,), (1371569351,), (1371569353,), (1371569359,), (1371569404,), (1371569407,), (1371569416,), (1371569419,), (1371569421,), (1371569433,), (1371569434,), (1371569553,), (1371569555,), (1371569565,), (1371569616,), (1371569735,), (1371569736,), (1371569746,), (1371569785,), (1371569789,), (1371569792,), (1371568299,), (1371568365,), (1371568367,), (1371568398,), (1371568412,), (1371568415,), (1371568494,), (1371568600,), (1371568602,), (1371568643,), (1371568647,), (1371568670,), (1371568720,), (1371568724,), (1371568735,), (1371568743,), (1371568804,), (1371568805,), (1371568845,), (1371568895,), (1371568946,), (1371568961,), (1371568972,), (1371568974,), (1371569028,), (1371569078,), (1371569079,), (1371569080,), (1371569086,), (1371569097,), (1371569107,), (1371569134,), (1371569138,), (1371569203,), (1371569213,), (1371569266,), (1371569272,), (1371569347,), (1371569349,), (1371569398,), (1371569405,), (1371569408,), (1371569410,), (1371569430,), (1371569435,), (1371569496,), (1371569572,), (1371569573,), (1371569620,), (1371569621,), (1371569738,), (1371569743,), (1371569747,), (1371569771,), (1371569777,), (1371569780,), (1371569781,), (1371569793,), (1371569795,), (1371569908,), (1371569915,), (1371569967,), (1371569981,), (1371570118,), (1371570120,), (1371570157,), (1371570158,), (1371570159,), (1371570184,), (1371570190,), (1371570195,), (1371570203,), (1371570343,), (1371570424,), (1371570448,), (1371570530,), (1371570572,), (1371570576,), (1371570619,), (1371568894,), (1371568978,), (1371569030,), (1371569099,), (1371569101,), (1371569132,), (1371569201,), (1371569204,), (1371569255,), (1371569274,), (1371569326,), (1371569348,), (1371569409,), (1371569418,), (1371569424,), (1371569431,), (1371569494,), (1371569495,), (1371569556,), (1371569564,), (1371569566,), (1371569567,), (1371569569,), (1371569645,), (1371569691,), (1371569733,), (1371569748,), (1371569776,), (1371569788,), (1371569790,), (1371569839,), (1371569841,), (1371569907,), (1371569914,), (1371569916,), (1371569917,), (1371569920,), (1371569983,), (1371570084,), (1371570112,), (1371570162,), (1371570186,), (1371570197,), (1371570198,), (1371570202,), (1371570205,), (1371570269,), (1371570270,), (1371570272,), (1371570273,), (1371570300,), (1371570348,), (1371570420,), (1371570427,), (1371570441,), (1371570508,), (1371570510,), (1371570512,), (1371570536,), (1371570558,), (1371570570,), (1371570621,), (1371570623,), (1371570634,), (1371570747,), (1371570810,), (1371570813,), (1371570819,), (1371570929,), (1371570930,), (1371570936,), (1371570938,), (1371570943,), (1371570945,), (1371570947,), (1371570951,), (1371570999,), (1371571084,), (1371571190,), (1371571264,), (1371571308,), (1371571313,), (1371571321,), (1371569692,), (1371569694,), (1371569695,), (1371569791,), (1371569843,), (1371569844,), (1371569909,), (1371569911,), (1371569969,), (1371570085,), (1371570110,), (1371570115,), (1371570116,), (1371570117,), (1371570121,), (1371570124,), (1371570194,), (1371570211,), (1371570263,), (1371570264,), (1371570271,), (1371570274,), (1371570297,), (1371570299,), (1371570342,), (1371570417,), (1371570421,), (1371570426,), (1371570429,), (1371570430,), (1371570431,), (1371570449,), (1371570559,), (1371570573,), (1371570613,), (1371570618,), (1371570620,), (1371570622,), (1371570635,), (1371570638,), (1371570751,), (1371570754,), (1371570802,), (1371570807,), (1371570808,), (1371570815,), (1371570818,), (1371570820,), (1371570876,), (1371570932,), (1371570939,), (1371570940,), (1371570941,), (1371570949,), (1371571023,), (1371571029,), (1371571030,), (1371571032,), (1371571082,), (1371571086,), (1371571131,), (1371571132,), (1371571134,), (1371571165,), (1371571180,), (1371571260,), (1371571307,), (1371571310,), (1371571312,), (1371571315,), (1371571393,), (1371571395,), (1371571406,), (1371571409,), (1371571410,), (1371571432,), (1371571475,), (1371571477,), (1371571548,), (1371571551,), (1371571558,), (1371571609,), (1371571681,), (1371571685,), (1371571687,), (1371571692,), (1371571732,), (1371571743,), (1371571751,), (1371571761,), (1371571823,), (1371571915,), (1371571916,), (1371571993,), (1371572123,), (1371572128,), (1371570346,), (1371570416,), (1371570446,), (1371570497,), (1371570569,), (1371570640,), (1371570705,), (1371570706,), (1371570752,), (1371570753,), (1371570805,), (1371570809,), (1371570812,), (1371570814,), (1371570816,), (1371570933,), (1371570937,), (1371571020,), (1371571024,), (1371571025,), (1371571027,), (1371571031,), (1371571033,), (1371571035,), (1371571077,), (1371571080,), (1371571088,), (1371571127,), (1371571133,), (1371571179,), (1371571309,), (1371571311,), (1371571392,), (1371571399,), (1371571400,), (1371571401,), (1371571402,), (1371571403,), (1371571405,), (1371571407,), (1371571408,), (1371571411,), (1371571473,), (1371571476,), (1371571537,), (1371571680,), (1371571688,), (1371571749,), (1371571752,), (1371571753,), (1371571756,), (1371571757,), (1371571758,), (1371571759,), (1371571760,), (1371571762,), (1371571763,), (1371571808,), (1371571819,), (1371571820,), (1371571994,), (1371571996,), (1371572075,), (1371572076,), (1371572077,), (1371572081,), (1371572084,), (1371572085,), (1371572124,), (1371572126,), (1371572131,), (1371572134,), (1371572167,), (1371572203,), (1371572204,), (1371572307,), (1371572308,), (1371572429,), (1371572430,), (1371572432,), (1371572433,), (1371572434,), (1371572494,), (1371572526,), (1371572530,), (1371572531,), (1371572732,), (1371572790,), (1371572833,), (1371572834,), (1371571083,), (1371571130,), (1371571189,), (1371571244,), (1371571261,), (1371571330,), (1371571404,), (1371571469,), (1371571472,), (1371571474,), (1371571538,), (1371571545,), (1371571546,), (1371571547,), (1371571611,), (1371571612,), (1371571613,), (1371571686,), (1371571689,), (1371571744,), (1371571764,), (1371571813,), (1371571814,), (1371571816,), (1371571821,), (1371571822,), (1371571828,), (1371571829,), (1371571872,), (1371571921,), (1371571925,), (1371572000,), (1371572001,), (1371572078,), (1371572127,), (1371572155,), (1371572156,), (1371572157,), (1371572161,), (1371572162,), (1371572163,), (1371572202,), (1371572206,), (1371572253,), (1371572261,), (1371572306,), (1371572315,), (1371572431,), (1371572490,), (1371572493,), (1371572498,), (1371572506,), (1371572510,), (1371572524,), (1371572525,), (1371572528,), (1371572575,), (1371572577,), (1371572591,), (1371572646,), (1371572653,), (1371572831,), (1371572847,), (1371572852,), (1371572854,), (1371572856,), (1371572858,), (1371572913,), (1371572916,), (1371572920,), (1371572924,), (1371572927,), (1371572941,), (1371572947,), (1371573047,), (1371573180,), (1371573227,), (1371573232,), (1371573233,), (1371573304,), (1371573319,), (1371573320,), (1371573322,), (1371573615,), (1371571746,), (1371571809,), (1371571826,), (1371571864,), (1371571917,), (1371571920,), (1371571998,), (1371572125,), (1371572129,), (1371572133,), (1371572153,), (1371572154,), (1371572164,), (1371572208,), (1371572256,), (1371572259,), (1371572260,), (1371572262,), (1371572312,), (1371572313,), (1371572374,), (1371572437,), (1371572492,), (1371572496,), (1371572502,), (1371572504,), (1371572508,), (1371572565,), (1371572574,), (1371572580,), (1371572581,), (1371572589,), (1371572592,), (1371572648,), (1371572701,), (1371572725,), (1371572830,), (1371572837,), (1371572845,), (1371572848,), (1371572917,), (1371572918,), (1371572929,), (1371572938,), (1371572939,), (1371572942,), (1371572945,), (1371573004,), (1371573040,), (1371573082,), (1371573122,), (1371573151,), (1371573188,), (1371573229,), (1371573230,), (1371573293,), (1371573298,), (1371573307,), (1371573308,), (1371573312,), (1371573316,), (1371573321,), (1371573326,), (1371573422,), (1371573442,), (1371573499,), (1371573502,), (1371573559,), (1371573564,), (1371573623,), (1371573675,), (1371573694,), (1371573695,), (1371573698,), (1371573700,), (1371573702,), (1371573705,), (1371573706,), (1371573776,), (1371573831,), (1371573932,), (1371574063,), (1371574110,), (1371574175,), (1371574190,), (1371574252,), (1371574802,), (1371579539,), (1371582935,), (1371583291,), (1371577059,), (1371577472,), (1371577559,), (1371578115,), (1371578334,), (1371578456,), (1371578470,), (1371578472,), (1371578519,), (1371578651,), (1371578739,), (1371578867,), (1371579009,), (1371579088,), (1371579656,), (1371582199,), (1371582894,), (1371582943,), (1371582976,), (1371583855,), (1371584029,), (1371584167,), (1371584398,), (1371584466,), (1371584747,), (1371584923,), (1371585374,), (1371585576,), (1371585859,), (1371585985,), (1371586177,), (1371586302,), (1371586369,), (1371586604,), (1371586865,), (1371587455,), (1371587512,), (1371587854,), (1371587872,), (1371587892,), (1371587918,), (1371588029,), (1371588311,), (1371588682,), (1371588814,), (1371588863,), (1371589114,), (1371589157,), (1371589170,), (1371589176,), (1371589764,), (1371590637,), (1371590767,), (1371590851,), (1371590924,), (1371591001,), (1371591161,), (1371591190,), (1371591286,), (1371591287,), (1371591309,), (1371591340,), (1371591440,), (1371591591,), (1371591632,), (1371591740,), (1371591918,), (1371591919,), (1371591972,), (1371592077,), (1371592097,), (1371592099,), (1371592135,), (1371592176,), (1371592187,), (1371592222,), (1371592233,), (1371592332,), (1371592337,), (1371592363,), (1371592414,), (1371592465,), (1371592468,), (1371592470,), (1371592492,), (1371592512,), (1371592526,), (1371592531,), (1371592559,), (1371609370,), (1371609880,), (1371609886,), (1371609889,), (1371609896,), (1371609900,), (1371609939,), (1371609985,), (1371609995,), (1371610000,), (1371610005,), (1371610011,), (1371610017,), (1371610070,), (1371610076,), (1371610082,), (1371610085,), (1371610088,), (1371610092,), (1371610145,), (1371610155,), (1371610165,), (1371610169,), (1371610174,), (1371610177,), (1371610284,), (1371610291,), (1371610298,), (1371610305,), (1371610308,), (1371610313,), (1371610354,), (1371610358,), (1371610367,), (1371610376,), (1371610382,), (1371610390,), (1371610468,), (1371610474,), (1371610478,), (1371610482,), (1371610490,), (1371610499,), (1371611259,), (1371611287,), (1371611316,), (1371611361,), (1371611385,), (1371611412,), (1371611486,), (1371611534,), (1371611583,), (1371611644,), (1371611697,), (1371611753,), (1371612532,), (1371612559,), (1371612589,), (1371612617,), (1371612646,), (1371612671,), (1371613224,), (1371613304,), (1371613382,), (1371613425,), (1371613455,), (1371613507,), (1371614322,), (1371615089,), (1371615142,), (1371615186,), (1371615238,), (1371615486,), (1371615538,), (1371616385,), (1371616415,), (1371616441,), (1371616466,), (1371616493,), (1371616527,), (1371617106,), (1371617123,), (1371617125,), (1371617131,), (1371617146,), (1371617173,), (1371617261,), (1371617268,), (1371617273,), (1371617276,), (1371617279,), (1371617281,), (1371617332,), (1371617340,), (1371617347,), (1371574177,), (1371576269,), (1371576564,), (1371576606,), (1371577493,), (1371577592,), (1371578426,), (1371578441,), (1371578473,), (1371578503,), (1371578776,), (1371578942,), (1371579014,), (1371579279,), (1371582345,), (1371582917,), (1371583864,), (1371584027,), (1371584186,), (1371584343,), (1371584631,), (1371584695,), (1371584701,), (1371585062,), (1371585075,), (1371585610,), (1371585618,), (1371585917,), (1371586600,), (1371586673,), (1371586875,), (1371587155,), (1371587277,), (1371587467,), (1371587479,), (1371587746,), (1371587897,), (1371588364,), (1371588501,), (1371588656,), (1371588680,), (1371589128,), (1371589291,), (1371589910,), (1371590278,), (1371590282,), (1371590346,), (1371590384,), (1371590441,), (1371590756,), (1371591060,), (1371591115,), (1371591278,), (1371591294,), (1371591295,), (1371591548,), (1371591657,), (1371591717,), (1371591813,), (1371591814,), (1371591904,), (1371591923,), (1371591991,), (1371592008,), (1371592017,), (1371592103,), (1371592174,), (1371592247,), (1371592249,), (1371592344,), (1371592361,), (1371592418,), (1371592436,), (1371592439,), (1371592461,), (1371592463,), (1371592487,), (1371592503,), (1371592505,), (1371592535,), (1371592551,), (1371592566,), (1371592568,), (1371592656,), (1371604421,), (1371605173,), (1371605222,), (1371605259,), (1371605310,), (1371605377,), (1371605413,), (1371605810,), (1371605840,), (1371605870,), (1371605882,), (1371605885,), (1371605889,), (1371606111,), (1371606126,), (1371606129,), (1371606134,), (1371606140,), (1371606145,), (1371606227,), (1371606235,), (1371606241,), (1371606244,), (1371606247,), (1371606252,), (1371606539,), (1371606590,), (1371606621,), (1371606652,), (1371606680,), (1371606708,), (1371607017,), (1371607049,), (1371607079,), (1371607110,), (1371607143,), (1371607176,), (1371607329,), (1371607332,), (1371607335,), (1371607338,), (1371607342,), (1371607348,), (1371607623,), (1371607626,), (1371607628,), (1371607646,), (1371607654,), (1371607668,), (1371607881,), (1371607886,), (1371607892,), (1371607897,), (1371607906,), (1371607910,), (1371607952,), (1371607956,), (1371607959,), (1371607965,), (1371607973,), (1371607980,), (1371608104,), (1371608111,), (1371608121,), (1371608124,), (1371608127,), (1371608131,), (1371608189,), (1371608193,), (1371608197,), (1371608204,), (1371608209,), (1371608215,), (1371608344,), (1371608379,), (1371608410,), (1371608436,), (1371608464,), (1371608489,), (1371609005,), (1371609015,), (1371609020,), (1371609028,), (1371609041,), (1371609047,), (1371609328,), (1371609352,), (1371609358,), (1371609362,), (1371609365,), (1371574645,), (1371575575,), (1371575594,), (1371576133,), (1371576397,), (1371576713,), (1371576927,), (1371576965,), (1371577122,), (1371577128,), (1371577452,), (1371577455,), (1371577502,), (1371578405,), (1371579854,), (1371580846,), (1371582221,), (1371582322,), (1371582504,), (1371582717,), (1371582883,), (1371582936,), (1371583263,), (1371583451,), (1371584336,), (1371584337,), (1371584389,), (1371585042,), (1371585076,), (1371585380,), (1371585393,), (1371586091,), (1371586128,), (1371586386,), (1371586436,), (1371586756,), (1371586872,), (1371587266,), (1371587369,), (1371587413,), (1371587488,), (1371587606,), (1371587618,), (1371587711,), (1371588377,), (1371588539,), (1371588668,), (1371588669,), (1371589815,), (1371589951,), (1371590247,), (1371590420,), (1371590422,), (1371590425,), (1371590470,), (1371590480,), (1371590667,), (1371590761,), (1371590763,), (1371590995,), (1371591059,), (1371591281,), (1371591283,), (1371591640,), (1371591686,), (1371591688,), (1371591723,), (1371591736,), (1371591785,), (1371591829,), (1371591846,), (1371591957,), (1371591961,), (1371592102,), (1371592223,), (1371592257,), (1371592353,), (1371592355,), (1371592370,), (1371592373,), (1371592388,), (1371592392,), (1371592404,), (1371592466,), (1371592471,), (1371592520,), (1371592552,), (1371592589,), (1371592610,), (1371592781,), (1371596200,), (1371596203,), (1371596205,), (1371596208,), (1371596210,), (1371596215,), (1371596295,), (1371596297,), (1371596300,), (1371596303,), (1371596307,), (1371596309,), (1371596358,), (1371596362,), (1371596364,), (1371596367,), (1371596370,), (1371596375,), (1371596520,), (1371596546,), (1371596592,), (1371596664,), (1371596744,), (1371596831,), (1371600023,), (1371600466,), (1371600498,), (1371600548,), (1371600593,), (1371600606,), (1371600613,), (1371601011,), (1371601038,), (1371601075,), (1371601105,), (1371601134,), (1371601161,), (1371601498,), (1371601527,), (1371601555,), (1371601583,), (1371601609,), (1371601635,), (1371601936,), (1371601962,), (1371601987,), (1371602015,), (1371602058,), (1371602112,), (1371603065,), (1371603069,), (1371603073,), (1371603078,), (1371603083,), (1371603086,), (1371603232,), (1371603260,), (1371603293,), (1371603328,), (1371603359,), (1371603385,), (1371603524,), (1371603528,), (1371603533,), (1371603538,), (1371603544,), (1371603551,), (1371603927,), (1371603944,), (1371603977,), (1371604005,), (1371604031,), (1371604059,), (1371604153,), (1371604157,), (1371604163,), (1371604168,), (1371604174,), (1371604178,), (1371604256,), (1371604267,), (1371604274,), (1371604279,), (1371604287,), (1371604296,), (1371604386,), (1371604399,), (1371604403,), (1371604412,), (1371604418,), (1371592219,), (1371592662,), (1371592732,), (1371592797,), (1371592926,), (1371592984,), (1371594008,), (1371594187,), (1371594387,), (1371594470,), (1371594562,), (1371594612,), (1371594814,), (1371594864,), (1371594909,), (1371594952,), (1371594986,), (1371595036,), (1371595263,), (1371595308,), (1371595340,), (1371595366,), (1371595394,), (1371595445,), (1371595582,), (1371595614,), (1371595646,), (1371595674,), (1371595714,), (1371595761,), (1371595858,), (1371595881,), (1371595883,), (1371595887,), (1371595910,), (1371595936,), (1371596051,), (1371596054,), (1371596065,), (1371596067,), (1371596071,), (1371596073,), (1371596075,), (1371596077,), (1371596080,), (1371596081,), (1371596084,), (1371596085,), (1371596089,), (1371596094,), (1371596100,), (1371596104,), (1371596109,), (1371596114,), (1371596123,), (1371596127,), (1371596133,), (1371596138,), (1371596141,), (1371596145,), (1371596158,), (1371596162,), (1371596167,), (1371596173,), (1371596179,), (1371596185,), (1371596228,), (1371596231,), (1371596236,), (1371596239,), (1371596242,), (1371596245,), (1371596254,), (1371596260,), (1371596266,), (1371596269,), (1371596275,), (1371596281,), (1371596321,), (1371596324,), (1371596328,), (1371596333,), (1371596336,), (1371596340,), (1371596388,), (1371596392,), (1371596395,), (1371596401,), (1371596405,), (1371596415,), (1371597228,), (1371597230,), (1371597331,), (1371597332,), (1371597454,), (1371597517,), (1371597576,), (1371597642,), (1371597698,), (1371597744,), (1371597802,), (1371597847,), (1371599224,), (1371599278,), (1371599332,), (1371599397,), (1371599460,), (1371599559,), (1371599826,), (1371599852,), (1371599895,), (1371599938,), (1371599976,), (1371572497,), (1371572501,), (1371572590,), (1371572649,), (1371572652,), (1371572729,), (1371572835,), (1371572836,), (1371572915,), (1371572926,), (1371572950,), (1371573009,), (1371573010,), (1371573044,), (1371573048,), (1371573050,), (1371573083,), (1371573125,), (1371573126,), (1371573179,), (1371573182,), (1371573189,), (1371573211,), (1371573296,), (1371573299,), (1371573300,), (1371573311,), (1371573390,), (1371573416,), (1371573417,), (1371573425,), (1371573439,), (1371573497,), (1371573501,), (1371573569,), (1371573570,), (1371573611,), (1371573614,), (1371573625,), (1371573674,), (1371573687,), (1371573703,), (1371573718,), (1371573762,), (1371573763,), (1371573773,), (1371573828,), (1371573901,), (1371573937,), (1371573968,), (1371574018,), (1371574034,), (1371574068,), (1371574094,), (1371574112,), (1371574117,), (1371574179,), (1371574216,), (1371574827,), (1371574828,), (1371577524,), (1371579238,), (1371579653,), (1371580659,), (1371580671,), (1371580681,), (1371580873,), (1371580878,), (1371581600,), (1371581730,), (1371582466,), (1371582780,), (1371582938,), (1371583473,), (1371583720,), (1371584347,), (1371584384,), (1371585761,), (1371585877,), (1371586058,), (1371586137,), (1371586235,), (1371586439,), (1371586570,), (1371586833,), (1371587356,), (1371589112,), (1371589331,), (1371589421,), (1371590139,), (1371573228,), (1371573305,), (1371573315,), (1371573443,), (1371573444,), (1371573503,), (1371573547,), (1371573627,), (1371573628,), (1371573682,), (1371573685,), (1371573696,), (1371573701,), (1371573764,), (1371573827,), (1371573830,), (1371573871,), (1371573967,), (1371573969,), (1371574032,), (1371574049,), (1371574108,), (1371574171,), (1371574176,), (1371574259,), (1371574638,), (1371574640,), (1371574804,), (1371578934,), (1371579103,), (1371579584,), (1371579597,), (1371580658,), (1371580694,), (1371580862,), (1371581605,), (1371581752,), (1371581876,), (1371582351,), (1371583164,), (1371583320,), (1371584324,), (1371584776,), (1371585080,), (1371585386,), (1371585387,), (1371585433,), (1371585738,), (1371586122,), (1371586329,), (1371586445,), (1371586460,), (1371586571,), (1371587134,), (1371587247,), (1371587745,), (1371587781,), (1371587898,), (1371588251,), (1371588258,), (1371588371,), (1371588374,), (1371588667,), (1371588797,), (1371589012,), (1371589716,), (1371589915,), (1371590229,), (1371590260,), (1371590421,), (1371590769,), (1371590922,), (1371590973,), (1371591280,), (1371591288,), (1371591369,), (1371591561,), (1371591575,), (1371591831,), (1371591862,), (1371591976,), (1371592040,), (1371592346,), (1371592398,), (1371622482,), (1371622512,), (1371622543,), (1371622930,), (1371622988,), (1371623025,), (1371623056,), (1371623065,), (1371623081,), (1371623449,), (1371623479,), (1371623508,), (1371623545,), (1371623572,), (1371623610,), (1371623910,), (1371623955,), (1371624014,), (1371624091,), (1371624151,), (1371624192,), (1371624801,), (1371624813,), (1371624830,), (1371624840,), (1371624844,), (1371624852,), (1371624918,), (1371624920,), (1371624923,), (1371624928,), (1371624933,), (1371624937,), (1371626014,), (1371626022,), (1371626066,), (1371626105,), (1371626141,), (1371626214,), (1371626766,), (1371626780,), (1371626789,), (1371626795,), (1371626798,), (1371626801,), (1371626936,), (1371626967,), (1371626998,), (1371627041,), (1371627077,), (1371627103,), (1371627343,), (1371627348,), (1371627352,), (1371627357,), (1371627363,), (1371627365,), (1371627451,), (1371627455,), (1371627458,), (1371627462,), (1371627466,), (1371627468,), (1371627812,), (1371627843,), (1371627874,), (1371627921,), (1371627956,), (1371627987,), (1371628173,), (1371628176,), (1371628181,), (1371628183,), (1371628192,), (1371628206,), (1371628508,), (1371628559,), (1371628611,), (1371628663,), (1371628713,), (1371628740,), (1371573949,), (1371574022,), (1371574253,), (1371574452,), (1371574639,), (1371578000,), (1371578464,), (1371578896,), (1371579050,), (1371579353,), (1371579382,), (1371579495,), (1371579688,), (1371580103,), (1371581712,), (1371581871,), (1371583173,), (1371583449,), (1371584321,), (1371584341,), (1371584394,), (1371584700,), (1371584704,), (1371585128,), (1371585358,), (1371585737,), (1371586120,), (1371586240,), (1371586734,), (1371587029,), (1371587291,), (1371587567,), (1371587650,), (1371587874,), (1371587917,), (1371588007,), (1371588517,), (1371588540,), (1371588638,), (1371588694,), (1371589563,), (1371589879,), (1371590168,), (1371590381,), (1371590505,), (1371590703,), (1371591064,), (1371591127,), (1371591164,), (1371591255,), (1371591285,), (1371591312,), (1371591351,), (1371591428,), (1371591454,), (1371591655,), (1371591899,), (1371591933,), (1371591992,), (1371592019,), (1371592071,), (1371592155,), (1371592177,), (1371592217,), (1371592226,), (1371592239,), (1371592345,), (1371592378,), (1371592426,), (1371592449,), (1371592454,), (1371592483,), (1371592485,), (1371592497,), (1371592513,), (1371592518,), (1371592521,), (1371592529,), (1371592655,), (1371617351,), (1371617356,), (1371617360,), (1371618208,), (1371618238,), (1371618267,), (1371618302,), (1371618334,), (1371618369,), (1371618720,), (1371618740,), (1371618753,), (1371618781,), (1371618832,), (1371618882,), (1371619646,), (1371619678,), (1371619708,), (1371619748,), (1371619798,), (1371619840,), (1371620169,), (1371620172,), (1371620178,), (1371620182,), (1371620186,), (1371620188,), (1371620281,), (1371620284,), (1371620292,), (1371620298,), (1371620302,), (1371620307,), (1371620358,), (1371620361,), (1371620365,), (1371620370,), (1371620375,), (1371620381,), (1371620469,), (1371620470,), (1371620475,), (1371620481,), (1371620487,), (1371620491,), (1371620539,), (1371620545,), (1371620553,), (1371620557,), (1371620562,), (1371620567,), (1371620616,), (1371620619,), (1371620624,), (1371620630,), (1371620634,), (1371620638,), (1371620748,), (1371620757,), (1371620769,), (1371620774,), (1371620778,), (1371620782,), (1371621185,), (1371621188,), (1371621193,), (1371621196,), (1371621198,), (1371621199,), (1371621595,), (1371621636,), (1371621664,), (1371621694,), (1371621723,), (1371621752,), (1371621999,), (1371622025,), (1371622033,), (1371622038,), (1371622043,), (1371622047,), (1371622389,), (1371622418,), (1371622445,), (1371600221,), (1371600273,), (1371600330,), (1371600370,), (1371600386,), (1371600388,), (1371600737,), (1371600787,), (1371600816,), (1371600843,), (1371600869,), (1371600902,), (1371601265,), (1371601271,), (1371601295,), (1371601299,), (1371601322,), (1371601327,), (1371601353,), (1371601357,), (1371601380,), (1371601386,), (1371601399,), (1371601400,), (1371601412,), (1371601417,), (1371601422,), (1371601427,), (1371601431,), (1371601438,), (1371601728,), (1371601755,), (1371601765,), (1371601771,), (1371601796,), (1371601829,), (1371602331,), (1371602389,), (1371602438,), (1371602487,), (1371602533,), (1371602569,), (1371602712,), (1371602743,), (1371602771,), (1371602819,), (1371602866,), (1371602916,), (1371603095,), (1371603097,), (1371603103,), (1371603106,), (1371603110,), (1371603116,), (1371603475,), (1371603500,), (1371603506,), (1371603511,), (1371603515,), (1371603516,), (1371603607,), (1371603636,), (1371603672,), (1371603698,), (1371603727,), (1371603754,), (1371603865,), (1371603893,), (1371603902,), (1371603905,), (1371603907,), (1371603912,), (1371604125,), (1371604129,), (1371604133,), (1371604137,), (1371604139,), (1371604141,), (1371604182,), (1371604185,), (1371604188,), (1371604192,), (1371604196,), (1371604202,), (1371604224,), (1371604231,), (1371604234,), (1371604239,), (1371604243,), (1371604245,), (1371604309,), (1371604311,), (1371604315,), (1371604320,), (1371604325,), (1371604331,), (1371604352,), (1371604355,), (1371604358,), (1371604362,), (1371604370,), (1371604374,), (1371604431,), (1371604435,), (1371604442,), (1371604472,), (1371604499,), (1371604532,), (1371604709,), (1371604768,), (1371604827,), (1371604883,), (1371604932,), (1371604967,), (1371605573,), (1371605598,), (1371605627,), (1371605661,), (1371605693,), (1371605723,), (1371605968,), (1371605998,), (1371606013,), (1371606018,), (1371606022,), (1371606027,), (1371606157,), (1371606160,), (1371606166,), (1371606168,), (1371606173,), (1371606178,), (1371606191,), (1371606197,), (1371606204,), (1371606210,), (1371606215,), (1371606218,), (1371606303,), (1371606331,), (1371606366,), (1371606392,), (1371606417,), (1371606443,), (1371606796,), (1371606824,), (1371606855,), (1371606884,), (1371606914,), (1371606942,), (1371606978,), (1371606983,), (1371606987,), (1371606992,), (1371606996,), (1371607002,), (1371607281,), (1371607285,), (1371607308,), (1371607312,), (1371607314,), (1371607317,), (1371607462,), (1371607488,), (1371607518,), (1371607544,), (1371607573,), (1371607599,), (1371607787,), (1371607789,), (1371607816,), (1371607826,), (1371607830,), (1371607834,), (1371607836,), (1371607837,), (1371607839,), (1371607841,), (1371607842,), (1371607843,), (1371607854,), (1371607860,), (1371607864,), (1371607868,), (1371607871,), (1371607875,), (1371607924,), (1371607927,), (1371607931,), (1371607934,), (1371607936,), (1371607943,), (1371608021,), (1371608023,), (1371608025,), (1371608027,), (1371608030,), (1371608047,), (1371608074,), (1371608079,), (1371608081,), (1371608085,), (1371608088,), (1371608091,), (1371608160,), (1371608172,), (1371608176,), (1371608181,), (1371608184,), (1371608185,), (1371608226,), (1371608229,), (1371608234,), (1371608238,), (1371608244,), (1371608262,), (1371608605,), (1371608635,), (1371608662,), (1371608692,), (1371608717,), (1371608743,), (1371608854,), (1371608885,), (1371608913,), (1371608943,), (1371608972,), (1371608997,), (1371609113,), (1371609143,), (1371609170,), (1371609197,), (1371609224,), (1371609253,), (1371609380,), (1371609400,), (1371609456,), (1371609520,), (1371609580,), (1371609642,), (1371609652,), (1371609656,), (1371609659,), (1371609681,), (1371609709,), (1371609734,), (1371609825,), (1371609829,), (1371609835,), (1371609839,), (1371609843,), (1371609849,), (1371609870,), (1371609912,), (1371609916,), (1371609921,), (1371609927,), (1371609932,), (1371609957,), (1371609963,), (1371609967,), (1371609969,), (1371609971,), (1371609974,), (1371610035,), (1371610039,), (1371610041,), (1371610044,), (1371610048,), (1371610050,), (1371610103,), (1371610106,), (1371610111,), (1371610116,), (1371610122,), (1371610125,), (1371610189,), (1371610190,), (1371610193,), (1371610195,), (1371610199,), (1371610200,), (1371610204,), (1371610207,), (1371610211,), (1371610213,), (1371610217,), (1371610219,), (1371610242,), (1371610255,), (1371610259,), (1371610263,), (1371610267,), (1371610271,), (1371610320,), (1371610324,), (1371610326,), (1371610330,), (1371610336,), (1371610341,), (1371610402,), (1371610405,), (1371610407,), (1371610410,), (1371610418,), (1371610426,), (1371610445,), (1371610448,), (1371610453,), (1371610457,), (1371610462,), (1371610463,), (1371610515,), (1371610536,), (1371610560,), (1371610575,), (1371610581,), (1371610590,), (1371610602,), (1371610606,), (1371610610,), (1371610616,), (1371610620,), (1371610624,), (1371610643,), (1371610646,), (1371610651,), (1371610654,), (1371610659,), (1371610663,), (1371610684,), (1371610690,), (1371610695,), (1371610701,), (1371610708,), (1371610711,), (1371610730,), (1371610734,), (1371610762,), (1371610763,), (1371610792,), (1371610793,), (1371610822,), (1371610825,), (1371610850,), (1371610856,), (1371610878,), (1371610886,), (1371610998,), (1371611026,), (1371611052,), (1371611081,), (1371611110,), (1371611141,), (1371611447,), (1371611453,), (1371611458,), (1371611464,), (1371611468,), (1371611472,), (1371611948,), (1371611983,), (1371612022,), (1371612060,), (1371612092,), (1371612118,), (1371612234,), (1371612264,), (1371612290,), (1371612330,), (1371612358,), (1371612389,), (1371612715,), (1371612719,), (1371612771,), (1371612824,), (1371612876,), (1371612954,), (1371613853,), (1371613884,), (1371613915,), (1371613954,), (1371614007,), (1371614063,), (1371614191,), (1371614204,), (1371614216,), (1371614260,), (1371614296,), (1371614547,), (1371614620,), (1371614699,), (1371614771,), (1371614824,), (1371614881,), (1371615747,), (1371615799,), (1371615860,), (1371615907,), (1371615955,), (1371616016,), (1371616145,), (1371616171,), (1371616199,), (1371616224,), (1371616251,), (1371616280,), (1371616632,), (1371616648,), (1371616654,), (1371616661,), (1371616670,), (1371616719,), (1371616879,), (1371616925,), (1371616977,), (1371617016,), (1371617047,), (1371617059,), (1371617227,), (1371617231,), (1371617234,), (1371617237,), (1371617241,), (1371617243,), (1371617290,), (1371617295,), (1371617300,), (1371617306,), (1371617313,), (1371617318,), (1371617370,), (1371617371,), (1371617373,), (1371617375,), (1371617378,), (1371617379,), (1371617383,), (1371617385,), (1371617387,), (1371617392,), (1371617395,), (1371617397,), (1371617407,), (1371617413,), (1371617421,), (1371617426,), (1371617432,), (1371617437,), (1371617455,), (1371617459,), (1371617463,), (1371617467,), (1371617471,), (1371617473,), (1371617535,), (1371617540,), (1371617546,), (1371617552,), (1371617560,), (1371617564,), (1371617572,), (1371617573,), (1371617581,), (1371617582,), (1371617588,), (1371617589,), (1371617598,), (1371617601,), (1371617630,), (1371617631,), (1371617637,), (1371617642,), (1371617650,), (1371617657,), (1371617661,), (1371617665,), (1371617671,), (1371617677,), (1371617689,), (1371617691,), (1371617699,), (1371617704,), (1371617709,), (1371617717,), (1371617736,), (1371617739,), (1371617741,), (1371617748,), (1371617751,), (1371617753,), (1371617767,), (1371617769,), (1371617777,), (1371617807,), (1371617834,), (1371617860,), (1371617961,), (1371617993,), (1371618023,), (1371618051,), (1371618082,), (1371618107,), (1371618435,), (1371618437,), (1371618439,), (1371618443,), (1371618447,), (1371618450,), (1371618495,), (1371618524,), (1371618555,), (1371618584,), (1371618613,), (1371618642,), (1371619102,), (1371619152,), (1371619206,), (1371619300,), (1371619372,), (1371619443,), (1371619915,), (1371619970,), (1371620036,), (1371620073,), (1371620113,), (1371620140,), (1371620197,), (1371620201,), (1371620204,), (1371620222,), (1371620226,), (1371620229,), (1371620244,), (1371620251,), (1371620255,), (1371620260,), (1371620266,), (1371620269,), (1371620323,), (1371620325,), (1371620329,), (1371620332,), (1371620335,), (1371620341,), (1371620392,), (1371620397,), (1371620402,), (1371620408,), (1371620412,), (1371620417,), (1371620431,), (1371620437,), (1371620442,), (1371620446,), (1371620451,), (1371620455,), (1371620505,), (1371620507,), (1371620510,), (1371620513,), (1371620518,), (1371620522,), (1371620574,), (1371620577,), (1371620580,), (1371620584,), (1371620591,), (1371620600,), (1371620650,), (1371620651,), (1371620656,), (1371620657,), (1371620660,), (1371620662,), (1371620666,), (1371620667,), (1371620672,), (1371620673,), (1371620680,), (1371620681,), (1371620696,), (1371620700,), (1371620703,), (1371620706,), (1371620707,), (1371620713,), (1371620796,), (1371620800,), (1371620806,), (1371620812,), (1371620875,), (1371620895,), (1371620928,), (1371620929,), (1371620934,), (1371620967,), (1371620970,), (1371621038,), (1371621121,), (1371621125,), (1371621128,), (1371621130,), (1371621132,), (1371621136,), (1371621079,), (1371621083,), (1371621088,), (1371621094,), (1371621100,), (1371621105,), (1371621151,), (1371621154,), (1371621158,), (1371621161,), (1371621165,), (1371621169,), (1371621208,), (1371621209,), (1371621214,), (1371621217,), (1371621222,), (1371621224,), (1371621231,), (1371621232,), (1371621241,), (1371621242,), (1371621247,), (1371621250,), (1371621326,), (1371621353,), (1371621379,), (1371621408,), (1371621449,), (1371621480,), (1371621843,), (1371621871,), (1371621900,), (1371621920,), (1371621924,), (1371621928,), (1371622129,), (1371622130,), (1371622137,), (1371622139,), (1371622182,), (1371622186,), (1371622211,), (1371622213,), (1371622217,), (1371622219,), (1371622232,), (1371622233,), (1371622277,), (1371622305,), (1371622326,), (1371622331,), (1371622336,), (1371622339,), (1371622650,), (1371622681,), (1371622709,), (1371622740,), (1371622769,), (1371622799,), (1371623100,), (1371623115,), (1371623120,), (1371623125,), (1371623155,), (1371623171,), (1371623201,), (1371623203,), (1371623212,), (1371623224,), (1371623272,), (1371623324,), (1371623775,), (1371623789,), (1371623796,), (1371623812,), (1371623822,), (1371623830,), (1371624311,), (1371624339,), (1371624375,), (1371624386,), (1371624390,), (1371624409,), (1371624494,), (1371624539,), (1371624595,), (1371624635,), (1371624662,), (1371624690,), (1371624865,), (1371624868,), (1371624875,), (1371624879,), (1371624885,), (1371624891,), (1371624953,), (1371624956,), (1371624959,), (1371624964,), (1371624967,), (1371624974,), (1371625004,), (1371625032,), (1371625065,), (1371625097,), (1371625106,), (1371625114,), (1371625147,), (1371625148,), (1371625149,), (1371625156,), (1371625157,), (1371625174,), (1371625251,), (1371625279,), (1371625309,), (1371625363,), (1371625415,), (1371625464,), (1371625681,), (1371625726,), (1371625757,), (1371625786,), (1371625817,), (1371625857,), (1371626444,), (1371626447,), (1371626493,), (1371626494,), (1371626537,), (1371626539,), (1371626589,), (1371626591,), (1371626625,), (1371626629,), (1371626657,), (1371626660,), (1371626722,), (1371626727,), (1371626731,), (1371626735,), (1371626738,), (1371626741,), (1371626839,), (1371626842,), (1371626846,), (1371626848,), (1371626852,), (1371626857,), (1371627210,), (1371627240,), (1371627259,), (1371627265,), (1371627271,), (1371627278,), (1371627288,), (1371627315,), (1371627322,), (1371627325,), (1371627327,), (1371627329,), (1371627388,), (1371627390,), (1371627394,), (1371627399,), (1371627405,), (1371627411,), (1371627475,), (1371627480,), (1371627486,), (1371627491,), (1371627496,), (1371627501,), (1371627572,), (1371627603,), (1371627629,), (1371627655,), (1371627680,), (1371627708,), (1371628090,), (1371628114,), (1371628142,), (1371628148,), (1371628152,), (1371628155,), (1371628228,), (1371628258,), (1371628288,), (1371628324,), (1371628354,), (1371628387,), (1371629561,), (1371629657,), (1371629733,), (1371629813,), (1371629887,), (1371629968,), (1371630184,), (1371630245,), (1371630308,), (1371630384,), (1371630417,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11072025': {'nb_upload': 101, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24846464]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371630417, 1371630384, 1371630308, 1371630245, 1371630184] map_info['map_portfolio_photo'] : {24846464: [1371630417, 1371630384, 1371630308, 1371630245, 1371630184, 1371629968, 1371629887, 1371629813, 1371629733, 1371629657, 1371629561, 1371628387, 1371628354, 1371628324, 1371628288, 1371628258, 1371628228, 1371628155, 1371628152, 1371628148, 1371628142, 1371628114, 1371628090, 1371627708, 1371627680, 1371627655, 1371627629, 1371627603, 1371627572, 1371627501, 1371627496, 1371627491, 1371627486, 1371627480, 1371627475, 1371627411, 1371627405, 1371627399, 1371627394, 1371627390, 1371627388, 1371627329, 1371627327, 1371627325, 1371627322, 1371627315, 1371627288, 1371627278, 1371627271, 1371627265, 1371627259, 1371627240, 1371627210, 1371626857, 1371626852, 1371626848, 1371626846, 1371626842, 1371626839, 1371626741, 1371626738, 1371626735, 1371626731, 1371626727, 1371626722, 1371626660, 1371626657, 1371626629, 1371626625, 1371626591, 1371626589, 1371626539, 1371626537, 1371626494, 1371626493, 1371626447, 1371626444, 1371625857, 1371625817, 1371625786, 1371625757, 1371625726, 1371625681, 1371625464, 1371625415, 1371625363, 1371625309, 1371625279, 1371625251, 1371625174, 1371625157, 1371625156, 1371625149, 1371625148, 1371625147, 1371625114, 1371625106, 1371625097, 1371625065, 1371625032, 1371625004]} final : True mtd_id 4302 list_pids : [1371630417, 1371630384, 1371630308, 1371630245, 1371630184] Looping around the photos to save general results len do output : 1 /24846464Didn'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, '3272223') ('4302', '24846464', '1371630417', None, None, None, None, None, '3272223') ('4302', None, None, None, None, None, None, None, '3272223') ('4302', '24846464', '1371630384', None, None, None, None, None, '3272223') ('4302', None, None, None, None, None, None, None, '3272223') ('4302', '24846464', '1371630308', None, None, None, None, None, '3272223') ('4302', None, None, None, None, None, None, None, '3272223') ('4302', '24846464', '1371630245', None, None, None, None, None, '3272223') ('4302', None, None, None, None, None, None, None, '3272223') ('4302', '24846464', '1371630184', None, None, None, None, None, '3272223') 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', None, '24846464', 'None', None, None, None, None, '3272223'), ('4302', '24846464', '1371630417', None, None, None, None, None, '3272223'), ('4302', '24846464', '1371630384', None, None, None, None, None, '3272223'), ('4302', '24846464', '1371630308', None, None, None, None, None, '3272223'), ('4302', '24846464', '1371630245', None, None, None, None, None, '3272223'), ('4302', '24846464', '1371630184', None, None, None, None, None, '3272223')] time used for this insertion : 0.011846065521240234 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.068948745727539 time spend to save output : 0.012039661407470703 total time spend for step 5 : 5.08098840713501 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 (3272223) 2.18user 2.45system 0:12.44elapsed 37%CPU (0avgtext+0avgdata 160840maxresident)k 296inputs+8096outputs (18major+73684minor)pagefaults 0swaps